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:
@@ -86,16 +86,16 @@ class OSG_EXPORT BlendColor : public StateAttribute
|
||||
void setBlendColorSupported(bool flag) { _isBlendColorSupported=flag; }
|
||||
bool isBlendColorSupported() const { return _isBlendColorSupported; }
|
||||
|
||||
void setBlendColorProc(void* ptr) { _glBlendColor = ptr; }
|
||||
void glBlendColor(GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha) const;
|
||||
|
||||
protected:
|
||||
|
||||
~Extensions() {}
|
||||
|
||||
bool _isBlendColorSupported;
|
||||
|
||||
void* _glBlendColor;
|
||||
typedef void (APIENTRY * GLBlendColorProc) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||
bool _isBlendColorSupported;
|
||||
GLBlendColorProc _glBlendColor;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user