Warning fixes

This commit is contained in:
Robert Osfield 2008-12-17 13:14:17 +00:00
parent 8a6e04b84d
commit 26c57f125d
2 changed files with 575 additions and 478 deletions

View File

@ -395,131 +395,250 @@ class OSG_EXPORT GL2Extensions : public osg::Referenced
bool _isGeometryShader4Supported;
bool _isGpuShader4Supported;
void* _glBlendEquationSeparate;
void* _glDrawBuffers;
void* _glStencilOpSeparate;
void* _glStencilFuncSeparate;
void* _glStencilMaskSeparate;
void* _glAttachShader;
void* _glBindAttribLocation;
void* _glCompileShader;
void* _glCreateProgram;
void* _glCreateShader;
void* _glDeleteProgram;
void* _glDeleteShader;
void* _glDetachShader;
void* _glDisableVertexAttribArray;
void* _glEnableVertexAttribArray;
void* _glGetActiveAttrib;
void* _glGetActiveUniform;
void* _glGetAttachedShaders;
void* _glGetAttribLocation;
void* _glGetProgramiv;
void* _glGetProgramInfoLog;
void* _glGetShaderiv;
void* _glGetShaderInfoLog;
void* _glGetShaderSource;
void* _glGetUniformLocation;
void* _glGetUniformfv;
void* _glGetUniformiv;
void* _glGetVertexAttribdv;
void* _glGetVertexAttribfv;
void* _glGetVertexAttribiv;
void* _glGetVertexAttribPointerv;
void* _glIsProgram;
void* _glIsShader;
void* _glLinkProgram;
void* _glShaderSource;
void* _glUseProgram;
void* _glUniform1f;
void* _glUniform2f;
void* _glUniform3f;
void* _glUniform4f;
void* _glUniform1i;
void* _glUniform2i;
void* _glUniform3i;
void* _glUniform4i;
void* _glUniform1fv;
void* _glUniform2fv;
void* _glUniform3fv;
void* _glUniform4fv;
void* _glUniform1iv;
void* _glUniform2iv;
void* _glUniform3iv;
void* _glUniform4iv;
void* _glUniformMatrix2fv;
void* _glUniformMatrix3fv;
void* _glUniformMatrix4fv;
void* _glValidateProgram;
void* _glVertexAttrib1d;
void* _glVertexAttrib1dv;
void* _glVertexAttrib1f;
void* _glVertexAttrib1fv;
void* _glVertexAttrib1s;
void* _glVertexAttrib1sv;
void* _glVertexAttrib2d;
void* _glVertexAttrib2dv;
void* _glVertexAttrib2f;
void* _glVertexAttrib2fv;
void* _glVertexAttrib2s;
void* _glVertexAttrib2sv;
void* _glVertexAttrib3d;
void* _glVertexAttrib3dv;
void* _glVertexAttrib3f;
void* _glVertexAttrib3fv;
void* _glVertexAttrib3s;
void* _glVertexAttrib3sv;
void* _glVertexAttrib4Nbv;
void* _glVertexAttrib4Niv;
void* _glVertexAttrib4Nsv;
void* _glVertexAttrib4Nub;
void* _glVertexAttrib4Nubv;
void* _glVertexAttrib4Nuiv;
void* _glVertexAttrib4Nusv;
void* _glVertexAttrib4bv;
void* _glVertexAttrib4d;
void* _glVertexAttrib4dv;
void* _glVertexAttrib4f;
void* _glVertexAttrib4fv;
void* _glVertexAttrib4iv;
void* _glVertexAttrib4s;
void* _glVertexAttrib4sv;
void* _glVertexAttrib4ubv;
void* _glVertexAttrib4uiv;
void* _glVertexAttrib4usv;
void* _glVertexAttribPointer;
typedef void (APIENTRY * BlendEquationSeparateProc)(GLenum modeRGB, GLenum modeAlpha);
typedef void (APIENTRY * DrawBuffersProc)(GLsizei n, const GLenum *bufs);
typedef void (APIENTRY * StencilOpSeparateProc)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
typedef void (APIENTRY * StencilFuncSeparateProc)(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
typedef void (APIENTRY * StencilMaskSeparateProc)(GLenum face, GLuint mask);
typedef void (APIENTRY * AttachShaderProc)(GLuint program, GLuint shader);
typedef void (APIENTRY * BindAttribLocationProc)(GLuint program, GLuint index, const GLchar *name);
typedef void (APIENTRY * CompileShaderProc)(GLuint shader);
typedef GLuint (APIENTRY * CreateProgramProc)(void);
typedef GLuint (APIENTRY * CreateShaderProc)(GLenum type);
typedef void (APIENTRY * DeleteProgramProc)(GLuint program);
typedef void (APIENTRY * DeleteObjectARBProc)(GLuint program);
typedef void (APIENTRY * DeleteShaderProc)(GLuint shader);
typedef void (APIENTRY * DetachShaderProc)(GLuint program, GLuint shader);
typedef void (APIENTRY * DisableVertexAttribArrayProc)(GLuint index);
typedef void (APIENTRY * EnableVertexAttribArrayProc)(GLuint index);
typedef void (APIENTRY * GetActiveAttribProc)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
typedef void (APIENTRY * GetActiveUniformProc)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
typedef void (APIENTRY * GetAttachedShadersProc)(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
typedef GLint (APIENTRY * GetAttribLocationProc)(GLuint program, const GLchar *name);
typedef void (APIENTRY * GetProgramivProc)(GLuint program, GLenum pname, GLint *params);
typedef void (APIENTRY * GetObjectParameterivARBProc)(GLuint program, GLenum pname, GLint *params);
typedef void (APIENTRY * GetProgramInfoLogProc)(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
typedef void (APIENTRY * GetInfoLogARBProc)(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
typedef void (APIENTRY * GetShaderivProc)(GLuint shader, GLenum pname, GLint *params);
typedef void (APIENTRY * GetShaderInfoLogProc)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
typedef void (APIENTRY * GetShaderSourceProc)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
typedef GLint (APIENTRY * GetUniformLocationProc)(GLuint program, const GLchar *name);
typedef void (APIENTRY * GetUniformfvProc)(GLuint program, GLint location, GLfloat *params);
typedef void (APIENTRY * GetUniformivProc)(GLuint program, GLint location, GLint *params);
typedef void (APIENTRY * GetVertexAttribdvProc)(GLuint index, GLenum pname, GLdouble *params);
typedef void (APIENTRY * GetVertexAttribfvProc)(GLuint index, GLenum pname, GLfloat *params);
typedef void (APIENTRY * GetVertexAttribivProc)(GLuint index, GLenum pname, GLint *params);
typedef void (APIENTRY * GetVertexAttribPointervProc)(GLuint index, GLenum pname, GLvoid* *pointer);
typedef GLboolean (APIENTRY * IsProgramProc)(GLuint program);
typedef GLboolean (APIENTRY * IsShaderProc)(GLuint shader);
typedef void (APIENTRY * LinkProgramProc)(GLuint program);
typedef void (APIENTRY * ShaderSourceProc)(GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
typedef void (APIENTRY * UseProgramProc)(GLuint program);
typedef void (APIENTRY * Uniform1fProc)(GLint location, GLfloat v0);
typedef void (APIENTRY * Uniform2fProc)(GLint location, GLfloat v0, GLfloat v1);
typedef void (APIENTRY * Uniform3fProc)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
typedef void (APIENTRY * Uniform4fProc)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
typedef void (APIENTRY * Uniform1iProc)(GLint location, GLint v0);
typedef void (APIENTRY * Uniform2iProc)(GLint location, GLint v0, GLint v1);
typedef void (APIENTRY * Uniform3iProc)(GLint location, GLint v0, GLint v1, GLint v2);
typedef void (APIENTRY * Uniform4iProc)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
typedef void (APIENTRY * Uniform1fvProc)(GLint location, GLsizei count, const GLfloat *value);
typedef void (APIENTRY * Uniform2fvProc)(GLint location, GLsizei count, const GLfloat *value);
typedef void (APIENTRY * Uniform3fvProc)(GLint location, GLsizei count, const GLfloat *value);
typedef void (APIENTRY * Uniform4fvProc)(GLint location, GLsizei count, const GLfloat *value);
typedef void (APIENTRY * Uniform1ivProc)(GLint location, GLsizei count, const GLint *value);
typedef void (APIENTRY * Uniform2ivProc)(GLint location, GLsizei count, const GLint *value);
typedef void (APIENTRY * Uniform3ivProc)(GLint location, GLsizei count, const GLint *value);
typedef void (APIENTRY * Uniform4ivProc)(GLint location, GLsizei count, const GLint *value);
typedef void (APIENTRY * UniformMatrix2fvProc)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
typedef void (APIENTRY * UniformMatrix3fvProc)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
typedef void (APIENTRY * UniformMatrix4fvProc)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
typedef void (APIENTRY * ValidateProgramProc)(GLuint program);
typedef void (APIENTRY * VertexAttrib1dProc)(GLuint index, GLdouble x);
typedef void (APIENTRY * VertexAttrib1dvProc)(GLuint index, const GLdouble *v);
typedef void (APIENTRY * VertexAttrib1fProc)(GLuint index, GLfloat x);
typedef void (APIENTRY * VertexAttrib1fvProc)(GLuint index, const GLfloat *v);
typedef void (APIENTRY * VertexAttrib1sProc)(GLuint index, GLshort x);
typedef void (APIENTRY * VertexAttrib1svProc)(GLuint index, const GLshort *v);
typedef void (APIENTRY * VertexAttrib2dProc)(GLuint index, GLdouble x, GLdouble y);
typedef void (APIENTRY * VertexAttrib2dvProc)(GLuint index, const GLdouble *v);
typedef void (APIENTRY * VertexAttrib2fProc)(GLuint index, GLfloat x, GLfloat y);
typedef void (APIENTRY * VertexAttrib2fvProc)(GLuint index, const GLfloat *v);
typedef void (APIENTRY * VertexAttrib2sProc)(GLuint index, GLshort x, GLshort y);
typedef void (APIENTRY * VertexAttrib2svProc)(GLuint index, const GLshort *v);
typedef void (APIENTRY * VertexAttrib3dProc)(GLuint index, GLdouble x, GLdouble y, GLdouble z);
typedef void (APIENTRY * VertexAttrib3dvProc)(GLuint index, const GLdouble *v);
typedef void (APIENTRY * VertexAttrib3fProc)(GLuint index, GLfloat x, GLfloat y, GLfloat z);
typedef void (APIENTRY * VertexAttrib3fvProc)(GLuint index, const GLfloat *v);
typedef void (APIENTRY * VertexAttrib3sProc)(GLuint index, GLshort x, GLshort y, GLshort z);
typedef void (APIENTRY * VertexAttrib3svProc)(GLuint index, const GLshort *v);
typedef void (APIENTRY * VertexAttrib4NbvProc)(GLuint index, const GLbyte *v);
typedef void (APIENTRY * VertexAttrib4NivProc)(GLuint index, const GLint *v);
typedef void (APIENTRY * VertexAttrib4NsvProc)(GLuint index, const GLshort *v);
typedef void (APIENTRY * VertexAttrib4NubProc)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
typedef void (APIENTRY * VertexAttrib4NubvProc)(GLuint index, const GLubyte *v);
typedef void (APIENTRY * VertexAttrib4NuivProc)(GLuint index, const GLuint *v);
typedef void (APIENTRY * VertexAttrib4NusvProc)(GLuint index, const GLushort *v);
typedef void (APIENTRY * VertexAttrib4bvProc)(GLuint index, const GLbyte *v);
typedef void (APIENTRY * VertexAttrib4dProc)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
typedef void (APIENTRY * VertexAttrib4dvProc)(GLuint index, const GLdouble *v);
typedef void (APIENTRY * VertexAttrib4fProc)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
typedef void (APIENTRY * VertexAttrib4fvProc)(GLuint index, const GLfloat *v);
typedef void (APIENTRY * VertexAttrib4ivProc)(GLuint index, const GLint *v);
typedef void (APIENTRY * VertexAttrib4sProc)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
typedef void (APIENTRY * VertexAttrib4svProc)(GLuint index, const GLshort *v);
typedef void (APIENTRY * VertexAttrib4ubvProc)(GLuint index, const GLubyte *v);
typedef void (APIENTRY * VertexAttrib4uivProc)(GLuint index, const GLuint *v);
typedef void (APIENTRY * VertexAttrib4usvProc)(GLuint index, const GLushort *v);
typedef void (APIENTRY * VertexAttribPointerProc)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
typedef void (APIENTRY * UniformMatrix2x3fvProc)( GLint location, GLsizei count, GLboolean transpose, const GLfloat* value );
typedef void (APIENTRY * UniformMatrix3x2fvProc)( GLint location, GLsizei count, GLboolean transpose, const GLfloat* value );
typedef void (APIENTRY * UniformMatrix2x4fvProc)( GLint location, GLsizei count, GLboolean transpose, const GLfloat* value );
typedef void (APIENTRY * UniformMatrix4x2fvProc)( GLint location, GLsizei count, GLboolean transpose, const GLfloat* value );
typedef void (APIENTRY * UniformMatrix3x4fvProc)( GLint location, GLsizei count, GLboolean transpose, const GLfloat* value );
typedef void (APIENTRY * UniformMatrix4x3fvProc)( GLint location, GLsizei count, GLboolean transpose, const GLfloat* value );
typedef void (APIENTRY * ProgramParameteriProc)( GLuint program, GLenum pname, GLint value );
typedef void (APIENTRY * FramebufferTextureProc)( GLenum target, GLenum attachment, GLuint texture, GLint level );
typedef void (APIENTRY * FramebufferTextureLayerProc)( GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer );
typedef void (APIENTRY * FramebufferTextureFaceProc)( GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face );
typedef void (APIENTRY * GetUniformuivProc)( GLuint program, GLint location, GLuint* params );
typedef void (APIENTRY * BindFragDataLocationProc)( GLuint program, GLuint color, const GLchar* name );
typedef GLint (APIENTRY * GetFragDataLocationProc)( GLuint program, const GLchar* name );
typedef void (APIENTRY * Uniform1uiProc)( GLint location, GLuint v0 );
typedef void (APIENTRY * Uniform2uiProc)( GLint location, GLuint v0, GLuint v1 );
typedef void (APIENTRY * Uniform3uiProc)( GLint location, GLuint v0, GLuint v1, GLuint v2 );
typedef void (APIENTRY * Uniform4uiProc)( GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3 );
typedef void (APIENTRY * Uniform1uivProc)( GLint location, GLsizei count, const GLuint *value );
typedef void (APIENTRY * Uniform2uivProc)( GLint location, GLsizei count, const GLuint *value );
typedef void (APIENTRY * Uniform3uivProc)( GLint location, GLsizei count, const GLuint *value );
typedef void (APIENTRY * Uniform4uivProc)( GLint location, GLsizei count, const GLuint *value );
typedef GLuint (APIENTRY * GetHandleProc) (GLenum pname);
void* _glGetInfoLogARB;
void* _glGetObjectParameterivARB;
void* _glDeleteObjectARB;
void* _glGetHandleARB;
BlendEquationSeparateProc _glBlendEquationSeparate;
DrawBuffersProc _glDrawBuffers;
StencilOpSeparateProc _glStencilOpSeparate;
StencilFuncSeparateProc _glStencilFuncSeparate;
StencilMaskSeparateProc _glStencilMaskSeparate;
AttachShaderProc _glAttachShader;
BindAttribLocationProc _glBindAttribLocation;
CompileShaderProc _glCompileShader;
CreateProgramProc _glCreateProgram;
CreateShaderProc _glCreateShader;
DeleteProgramProc _glDeleteProgram;
DeleteShaderProc _glDeleteShader;
DetachShaderProc _glDetachShader;
DisableVertexAttribArrayProc _glDisableVertexAttribArray;
EnableVertexAttribArrayProc _glEnableVertexAttribArray;
GetActiveAttribProc _glGetActiveAttrib;
GetActiveUniformProc _glGetActiveUniform;
GetAttachedShadersProc _glGetAttachedShaders;
GetAttribLocationProc _glGetAttribLocation;
GetProgramivProc _glGetProgramiv;
GetProgramInfoLogProc _glGetProgramInfoLog;
GetShaderivProc _glGetShaderiv;
GetShaderInfoLogProc _glGetShaderInfoLog;
GetShaderSourceProc _glGetShaderSource;
GetUniformLocationProc _glGetUniformLocation;
GetUniformfvProc _glGetUniformfv;
GetUniformivProc _glGetUniformiv;
GetVertexAttribdvProc _glGetVertexAttribdv;
GetVertexAttribfvProc _glGetVertexAttribfv;
GetVertexAttribivProc _glGetVertexAttribiv;
GetVertexAttribPointervProc _glGetVertexAttribPointerv;
IsProgramProc _glIsProgram;
IsShaderProc _glIsShader;
LinkProgramProc _glLinkProgram;
ShaderSourceProc _glShaderSource;
UseProgramProc _glUseProgram;
Uniform1fProc _glUniform1f;
Uniform2fProc _glUniform2f;
Uniform3fProc _glUniform3f;
Uniform4fProc _glUniform4f;
Uniform1iProc _glUniform1i;
Uniform2iProc _glUniform2i;
Uniform3iProc _glUniform3i;
Uniform4iProc _glUniform4i;
Uniform1fvProc _glUniform1fv;
Uniform2fvProc _glUniform2fv;
Uniform3fvProc _glUniform3fv;
Uniform4fvProc _glUniform4fv;
Uniform1ivProc _glUniform1iv;
Uniform2ivProc _glUniform2iv;
Uniform3ivProc _glUniform3iv;
Uniform4ivProc _glUniform4iv;
UniformMatrix2fvProc _glUniformMatrix2fv;
UniformMatrix3fvProc _glUniformMatrix3fv;
UniformMatrix4fvProc _glUniformMatrix4fv;
ValidateProgramProc _glValidateProgram;
VertexAttrib1dProc _glVertexAttrib1d;
VertexAttrib1dvProc _glVertexAttrib1dv;
VertexAttrib1fProc _glVertexAttrib1f;
VertexAttrib1fvProc _glVertexAttrib1fv;
VertexAttrib1sProc _glVertexAttrib1s;
VertexAttrib1svProc _glVertexAttrib1sv;
VertexAttrib2dProc _glVertexAttrib2d;
VertexAttrib2dvProc _glVertexAttrib2dv;
VertexAttrib2fProc _glVertexAttrib2f;
VertexAttrib2fvProc _glVertexAttrib2fv;
VertexAttrib2sProc _glVertexAttrib2s;
VertexAttrib2svProc _glVertexAttrib2sv;
VertexAttrib3dProc _glVertexAttrib3d;
VertexAttrib3dvProc _glVertexAttrib3dv;
VertexAttrib3fProc _glVertexAttrib3f;
VertexAttrib3fvProc _glVertexAttrib3fv;
VertexAttrib3sProc _glVertexAttrib3s;
VertexAttrib3svProc _glVertexAttrib3sv;
VertexAttrib4NbvProc _glVertexAttrib4Nbv;
VertexAttrib4NivProc _glVertexAttrib4Niv;
VertexAttrib4NsvProc _glVertexAttrib4Nsv;
VertexAttrib4NubProc _glVertexAttrib4Nub;
VertexAttrib4NubvProc _glVertexAttrib4Nubv;
VertexAttrib4NuivProc _glVertexAttrib4Nuiv;
VertexAttrib4NusvProc _glVertexAttrib4Nusv;
VertexAttrib4bvProc _glVertexAttrib4bv;
VertexAttrib4dProc _glVertexAttrib4d;
VertexAttrib4dvProc _glVertexAttrib4dv;
VertexAttrib4fProc _glVertexAttrib4f;
VertexAttrib4fvProc _glVertexAttrib4fv;
VertexAttrib4ivProc _glVertexAttrib4iv;
VertexAttrib4sProc _glVertexAttrib4s;
VertexAttrib4svProc _glVertexAttrib4sv;
VertexAttrib4ubvProc _glVertexAttrib4ubv;
VertexAttrib4uivProc _glVertexAttrib4uiv;
VertexAttrib4usvProc _glVertexAttrib4usv;
VertexAttribPointerProc _glVertexAttribPointer;
GetInfoLogARBProc _glGetInfoLogARB;
GetObjectParameterivARBProc _glGetObjectParameterivARB;
DeleteObjectARBProc _glDeleteObjectARB;
GetHandleProc _glGetHandleARB;
// GL 2.1
void* _glUniformMatrix2x3fv;
void* _glUniformMatrix3x2fv;
void* _glUniformMatrix2x4fv;
void* _glUniformMatrix4x2fv;
void* _glUniformMatrix3x4fv;
void* _glUniformMatrix4x3fv;
UniformMatrix2x3fvProc _glUniformMatrix2x3fv;
UniformMatrix3x2fvProc _glUniformMatrix3x2fv;
UniformMatrix2x4fvProc _glUniformMatrix2x4fv;
UniformMatrix4x2fvProc _glUniformMatrix4x2fv;
UniformMatrix3x4fvProc _glUniformMatrix3x4fv;
UniformMatrix4x3fvProc _glUniformMatrix4x3fv;
// EXT_geometry_shader4
void* _glProgramParameteri;
void* _glFramebufferTexture;
void* _glFramebufferTextureLayer;
void* _glFramebufferTextureFace;
ProgramParameteriProc _glProgramParameteri;
FramebufferTextureProc _glFramebufferTexture;
FramebufferTextureLayerProc _glFramebufferTextureLayer;
FramebufferTextureFaceProc _glFramebufferTextureFace;
// EXT_gpu_shader4
void* _glGetUniformuiv;
void* _glBindFragDataLocation;
void* _glGetFragDataLocation;
void* _glUniform1ui;
void* _glUniform2ui;
void* _glUniform3ui;
void* _glUniform4ui;
void* _glUniform1uiv;
void* _glUniform2uiv;
void* _glUniform3uiv;
void* _glUniform4uiv;
GetUniformuivProc _glGetUniformuiv;
BindFragDataLocationProc _glBindFragDataLocation;
GetFragDataLocationProc _glGetFragDataLocation;
Uniform1uiProc _glUniform1ui;
Uniform2uiProc _glUniform2ui;
Uniform3uiProc _glUniform3ui;
Uniform4uiProc _glUniform4ui;
Uniform1uivProc _glUniform1uiv;
Uniform2uivProc _glUniform2uiv;
Uniform3uivProc _glUniform3uiv;
Uniform4uivProc _glUniform4uiv;
};
}

File diff suppressed because it is too large Load Diff