Final Platform Layer 0.9.8-beta
|
To initialize a legacy OpenGL (up to GL version 2.1) rendering context you simply set the fplInitFlags_Video flag in the fplPlatformInit() call and change the video backend type to fplVideoBackendType_OpenGL and set the fplOpenGLSettings::compabilityFlags to fplOpenGLCompabilityFlags_Legacy .
This will work in ~99% on all supported platforms - if not please post an issue for that platform/configuration/video-card ;-)
To use features of OpenGL 1.2 or later you need some sort of an OpenGL extension loader which gives you access to the constants and functions like glMultiTexCoord2f().
For more details please check the modern OpenGL Extensions loader section.
Call fplVideoFlip() to present the frame to the screen.
Its recommend to call this after each draw call of your frame at the end of the main-loop.