OPENGL: Allow engines to detect OpenGL info without switching
For now only OpenGL type and shaders support are available
This commit is contained in:
parent
06bc7a25fa
commit
b978cd1caa
7 changed files with 52 additions and 9 deletions
|
@ -95,6 +95,7 @@ public:
|
|||
|
||||
#if defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS)
|
||||
Common::Array<uint> getSupportedAntiAliasingLevels() const override;
|
||||
OpenGL::ContextOGLType getOpenGLType() const override { return _oglType; }
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
@ -139,10 +140,12 @@ protected:
|
|||
|
||||
#if defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS)
|
||||
// Graphics capabilities
|
||||
void detectFramebufferSupport();
|
||||
void detectOpenGLFeaturesSupport();
|
||||
void detectAntiAliasingSupport();
|
||||
|
||||
OpenGL::ContextOGLType _oglType;
|
||||
bool _supportsFrameBuffer;
|
||||
bool _supportsShaders;
|
||||
Common::Array<uint> _antiAliasLevels;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue