Intoduced a new setGLExtensions template method to do a copy of void* pointer to
local function pointer to avoid compiler warnings related to case void*. Moved various OSG classes across to using setGLExtensions instead of getGLExtensions, and changed them to use typedef declarations in the headers rather than casts in the .cpp. Updated wrappers
This commit is contained in:
@@ -108,9 +108,13 @@ class OSG_EXPORT Point : public StateAttribute
|
||||
bool _isPointParametersSupported;
|
||||
bool _isPointSpriteCoordOriginSupported;
|
||||
|
||||
void* _glPointParameteri;
|
||||
void* _glPointParameterf;
|
||||
void* _glPointParameterfv;
|
||||
typedef void (APIENTRY * GLPointParameteriProc) (GLenum pname, GLint param);
|
||||
typedef void (APIENTRY * GLPointParameterfProc) (GLenum pname, GLfloat param);
|
||||
typedef void (APIENTRY * GLPointParameterfvProc) (GLenum pname, const GLfloat *params);
|
||||
|
||||
GLPointParameteriProc _glPointParameteri;
|
||||
GLPointParameterfProc _glPointParameterf;
|
||||
GLPointParameterfvProc _glPointParameterfv;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user