mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 08:10:26 +02:00
OpenGL3: Add driver-dependent feature checks
This commit is contained in:
@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user