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(); }
//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); }