OpenGL3: Add driver-dependent feature checks

This commit is contained in:
numzero
2023-04-15 18:11:08 +03:00
committed by sfan5
parent ab628e641c
commit 4ee1ab261e
8 changed files with 102 additions and 45 deletions

View File

@ -24,7 +24,8 @@ namespace video
public:
COpenGL3ExtensionHandler() : COGLESCoreExtensionHandler() {}
void initExtensions();
void initExtensionsOld();
void initExtensionsNew();
bool queryFeature(video::E_VIDEO_DRIVER_FEATURE feature) const
{
@ -80,6 +81,12 @@ namespace video
};
}
static GLint GetInteger(GLenum key) {
GLint val = 0;
glGetIntegerv(key, &val);
return val;
};
inline void irrGlActiveTexture(GLenum texture)
{
glActiveTexture(texture);
@ -181,6 +188,9 @@ namespace video
inline void irrGlBlendEquationSeparateIndexed(GLuint buf, GLenum modeRGB, GLenum modeAlpha)
{
}
private:
void addExtension(const char *name);
};
}