----- "Erik Hofman" a écrit : > 3. in the code test if the extension is supported: > > if (SGIsOpenGLExtensionSupported("GL_EXT_framebuffer_object")) > { > pglGenRenderbuffers = > SGGetGLProcAddress("glGenRenderbuffersEXT"); > pglBindFramebuffer = > SGGetGLProcAddress("glBindFramebufferEXT"); > framebuffer_object_support = true; > }
The portable way is to use SGLookupFunction. SGGetGLProcAddress is only available under Unix -Fred -- Frédéric Bouvier http://my.fotolia.com/frfoto/ Photo gallery - album photo http://www.youtube.com/user/fgfred64 Videos ------------------------------------------------------------------------------ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel