Exemplo n.º 1
0
void	
AGLViewer::initializeGL()
{
	soglu::initOpenGL();
	soglu::initializeCg();
	glClearColor( mViewerState->backgroundColor.redF(), mViewerState->backgroundColor.greenF(), mViewerState->backgroundColor.blueF(), mViewerState->backgroundColor.alphaF() );
	
	mFrameBufferObject.Initialize( width(), height() );

	mPickManager.initialize( 150 );D_PRINT("REMOVE THIS" );
	
	initializeRenderingEnvironment();
}
Exemplo n.º 2
0
 //create a window and establish an OpenGL context for rendering in
 bool init(bool debug_context) {
   return initializeRenderingEnvironment(debug_context) &&
     ((debug_context && initGLDebug()) || !debug_context);
 }