Graphics Reference
In-Depth Information
Ovals->SetGstap( true );
bool good = Ovals->Create( “ovalnoise.vert”, “ovalnoise.frag” );
if( ! good )
{
fprintf( stderr, “GLSL Program Ovals wasn't created.\n” );
. . .
}
. . .
// do this in the display callback:
Ovals->Use( );
Ovals->SetUniform( “uAd”, Ad );
Ovals->SetUniform( “uBd”, Bd );
Ovals->SetUniform( “uNoiseAmp”, NoiseAmp );
Ovals->SetUniform( “uNoiseFreq”, NoiseFreq );
Ovals->SetUniform( “uTol”, Tol );
glColor3f( 0., 1., 0. );
glutSolidTeapot( 1. );
Ovals->UseFixedFunction( );
. . .
Search WWH ::




Custom Search