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:
@@ -149,19 +149,12 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendColor::Extensions)
|
||||
__bool__isBlendColorSupported,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setBlendColorProc, IN, void *, ptr,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setBlendColorProc__void_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method4(void, glBlendColor, IN, GLclampf, red, IN, GLclampf, green, IN, GLclampf, blue, IN, GLclampf, alpha,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__glBlendColor__GLclampf__GLclampf__GLclampf__GLclampf,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(void *, BlendColorProc,
|
||||
0,
|
||||
__void__setBlendColorProc__void_P1);
|
||||
|
||||
I_SimpleProperty(bool, BlendColorSupported,
|
||||
0,
|
||||
__void__setBlendColorSupported__bool);
|
||||
|
||||
@@ -165,19 +165,12 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendEquation::Extensions)
|
||||
__bool__isLogicOpSupported,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setBlendEquationProc, IN, void *, ptr,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setBlendEquationProc__void_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, glBlendEquation, IN, GLenum, mode,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__glBlendEquation__GLenum,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(void *, BlendEquationProc,
|
||||
0,
|
||||
__void__setBlendEquationProc__void_P1);
|
||||
|
||||
I_SimpleProperty(bool, BlendEquationSupported,
|
||||
0,
|
||||
__void__setBlendEquationSupported__bool);
|
||||
|
||||
@@ -240,19 +240,12 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendFunc::Extensions)
|
||||
__bool__isBlendFuncSeparateSupported,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setBlendFuncSeparateProc, IN, void *, ptr,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setBlendFuncSeparateProc__void_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method4(void, glBlendFuncSeparate, IN, GLenum, sfactorRGB, IN, GLenum, dfactorRGB, IN, GLenum, sfactorAlpha, IN, GLenum, dfactorAlpha,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__glBlendFuncSeparate__GLenum__GLenum__GLenum__GLenum,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(void *, BlendFuncSeparateProc,
|
||||
0,
|
||||
__void__setBlendFuncSeparateProc__void_P1);
|
||||
|
||||
I_SimpleProperty(bool, BlendFuncSeparateSupported,
|
||||
0,
|
||||
__void__setBlendFuncSeparateSupported__bool);
|
||||
|
||||
@@ -163,19 +163,12 @@ BEGIN_OBJECT_REFLECTOR(osg::ClampColor::Extensions)
|
||||
__bool__isClampColorSupported,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setClampColorProc, IN, void *, ptr,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setClampColorProc__void_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method2(void, glClampColor, IN, GLenum, target, IN, GLenum, mode,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__glClampColor__GLenum__GLenum,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(void *, ClampColorProc,
|
||||
0,
|
||||
__void__setClampColorProc__void_P1);
|
||||
|
||||
I_SimpleProperty(bool, ClampColorSupported,
|
||||
0,
|
||||
__void__setClampColorSupported__bool);
|
||||
|
||||
@@ -253,6 +253,11 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram::Extensions)
|
||||
__void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1,
|
||||
"",
|
||||
"");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
I_SimpleProperty(bool, FragmentProgramSupported,
|
||||
0,
|
||||
__void__setFragmentProgramSupported__bool);
|
||||
|
||||
@@ -181,24 +181,17 @@ BEGIN_OBJECT_REFLECTOR(osg::Multisample::Extensions)
|
||||
__bool__isMultisampleFilterHintSupported,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setSampleCoverageProc, IN, void *, ptr,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setSampleCoverageProc__void_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method2(void, glSampleCoverage, IN, GLclampf, value, IN, GLboolean, invert,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__glSampleCoverage__GLclampf__GLboolean,
|
||||
"",
|
||||
"");
|
||||
|
||||
I_SimpleProperty(bool, MultisampleFilterHintSupported,
|
||||
0,
|
||||
__void__setMultisampleFilterHintSupported__bool);
|
||||
I_SimpleProperty(bool, MultisampleSupported,
|
||||
0,
|
||||
__void__setMultisampleSupported__bool);
|
||||
I_SimpleProperty(void *, SampleCoverageProc,
|
||||
0,
|
||||
__void__setSampleCoverageProc__void_P1);
|
||||
END_REFLECTOR
|
||||
|
||||
|
||||
@@ -216,6 +216,9 @@ BEGIN_OBJECT_REFLECTOR(osg::Point::Extensions)
|
||||
__void__glPointParameterfv__GLenum__C5_GLfloat_P1,
|
||||
"",
|
||||
"");
|
||||
|
||||
|
||||
|
||||
I_SimpleProperty(bool, PointParametersSupported,
|
||||
0,
|
||||
__void__setPointParametersSupported__bool);
|
||||
|
||||
@@ -725,9 +725,9 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture::Extensions)
|
||||
__bool__isCompressedTexImage2DSupported,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setCompressedTexImage2DProc, IN, void *, ptr,
|
||||
I_Method0(bool, isCompressedTexSubImage2DSupported,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setCompressedTexImage2DProc__void_P1,
|
||||
__bool__isCompressedTexSubImage2DSupported,
|
||||
"",
|
||||
"");
|
||||
I_Method8(void, glCompressedTexImage2D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data,
|
||||
@@ -735,26 +735,11 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture::Extensions)
|
||||
__void__glCompressedTexImage2D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, isCompressedTexSubImage2DSupported,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__isCompressedTexSubImage2DSupported,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setCompressedTexSubImage2DProc, IN, void *, ptr,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setCompressedTexSubImage2DProc__void_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method9(void, glCompressedTexSubImage2D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLenum, format, IN, GLsizei, type, IN, const GLvoid *, data,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__glCompressedTexSubImage2D__GLenum__GLint__GLint__GLint__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setGetCompressedTexImageProc, IN, void *, ptr,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setGetCompressedTexImageProc__void_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method3(void, glGetCompressedTexImage, IN, GLenum, target, IN, GLint, level, IN, GLvoid *, data,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__glGetCompressedTexImage__GLenum__GLint__GLvoid_P1,
|
||||
@@ -770,18 +755,12 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture::Extensions)
|
||||
__bool__isNonPowerOfTwoTextureSupported__GLenum,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(void *, CompressedTexImage2DProc,
|
||||
0,
|
||||
__void__setCompressedTexImage2DProc__void_P1);
|
||||
I_SimpleProperty(void *, CompressedTexSubImage2DProc,
|
||||
0,
|
||||
__void__setCompressedTexSubImage2DProc__void_P1);
|
||||
|
||||
|
||||
|
||||
I_SimpleProperty(bool, GenerateMipMapSupported,
|
||||
0,
|
||||
__void__setGenerateMipMapSupported__bool);
|
||||
I_SimpleProperty(void *, GetCompressedTexImageProc,
|
||||
0,
|
||||
__void__setGetCompressedTexImageProc__void_P1);
|
||||
I_SimpleProperty(GLint, MaxTextureSize,
|
||||
0,
|
||||
__void__setMaxTextureSize__GLint);
|
||||
|
||||
Reference in New Issue
Block a user