Components that have access to OpenGL through the ILcdGLDrawable
interface can test the compatibility of that ILcdGLDrawable
against a
certain OpenGL profile through the TLspOpenGLProfile
class.
The TLspOpenGLProfile
class allows you to define an OpenGL profile with a required version number and required extensions
through its constructor. Furthermore, you can set up another
TLspOpenGLProfile
to serve as the baseline for the current profile.
TLspOpenGLProfile
reports whether a given ILcdGLDrawable
is compatible through the isCompatible
method.
A number of ready-made profiles are available as static constants in
TLspOpenGLProfile
. This includes the
TLspOpenGLProfile.LIGHTSPEED_MINIMUM
profile, which defines the minimum
OpenGL profile needed to run LuciadLightspeed .