mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
glbuild support for ARB_vertex_shader
git-svn-id: https://svn.eduke32.com/eduke32@1140 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
fa6d8548aa
commit
ebe4165204
2 changed files with 192 additions and 0 deletions
|
@ -232,6 +232,54 @@ extern void (APIENTRY * bglGetUniformfvARB)(GLhandleARB, GLint, GLfloat *);
|
||||||
extern void (APIENTRY * bglGetUniformivARB)(GLhandleARB, GLint, GLint *);
|
extern void (APIENTRY * bglGetUniformivARB)(GLhandleARB, GLint, GLint *);
|
||||||
extern void (APIENTRY * bglGetShaderSourceARB)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *);
|
extern void (APIENTRY * bglGetShaderSourceARB)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *);
|
||||||
|
|
||||||
|
// Vertex Shaders
|
||||||
|
extern void (APIENTRY * bglVertexAttrib1dARB)(GLuint, GLdouble);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib1dvARB)(GLuint, const GLdouble *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib1fARB)(GLuint, GLfloat);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib1fvARB)(GLuint, const GLfloat *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib1sARB)(GLuint, GLshort);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib1svARB)(GLuint, const GLshort *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib2dARB)(GLuint, GLdouble, GLdouble);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib2dvARB)(GLuint, const GLdouble *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib2fARB)(GLuint, GLfloat, GLfloat);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib2fvARB)(GLuint, const GLfloat *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib2sARB)(GLuint, GLshort, GLshort);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib2svARB)(GLuint, const GLshort *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib3dARB)(GLuint, GLdouble, GLdouble, GLdouble);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib3dvARB)(GLuint, const GLdouble *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib3fARB)(GLuint, GLfloat, GLfloat, GLfloat);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib3fvARB)(GLuint, const GLfloat *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib3sARB)(GLuint, GLshort, GLshort, GLshort);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib3svARB)(GLuint, const GLshort *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4NbvARB)(GLuint, const GLbyte *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4NivARB)(GLuint, const GLint *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4NsvARB)(GLuint, const GLshort *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4NubARB)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4NubvARB)(GLuint, const GLubyte *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4NuivARB)(GLuint, const GLuint *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4NusvARB)(GLuint, const GLushort *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4bvARB)(GLuint, const GLbyte *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4dARB)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4dvARB)(GLuint, const GLdouble *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4fARB)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4fvARB)(GLuint, const GLfloat *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4ivARB)(GLuint, const GLint *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4sARB)(GLuint, GLshort, GLshort, GLshort, GLshort);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4svARB)(GLuint, const GLshort *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4ubvARB)(GLuint, const GLubyte *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4uivARB)(GLuint, const GLuint *);
|
||||||
|
extern void (APIENTRY * bglVertexAttrib4usvARB)(GLuint, const GLushort *);
|
||||||
|
extern void (APIENTRY * bglVertexAttribPointerARB)(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *);
|
||||||
|
extern void (APIENTRY * bglEnableVertexAttribArrayARB)(GLuint);
|
||||||
|
extern void (APIENTRY * bglDisableVertexAttribArrayARB)(GLuint);
|
||||||
|
extern void (APIENTRY * bglGetVertexAttribdvARB)(GLuint, GLenum, GLdouble *);
|
||||||
|
extern void (APIENTRY * bglGetVertexAttribfvARB)(GLuint, GLenum, GLfloat *);
|
||||||
|
extern void (APIENTRY * bglGetVertexAttribivARB)(GLuint, GLenum, GLint *);
|
||||||
|
extern void (APIENTRY * bglGetVertexAttribPointervARB)(GLuint, GLenum, GLvoid* *);
|
||||||
|
extern void (APIENTRY * bglBindAttribLocationARB)(GLhandleARB, GLuint, const GLcharARB *);
|
||||||
|
extern void (APIENTRY * bglGetActiveAttribARB)(GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *);
|
||||||
|
extern GLint (APIENTRY * bglGetAttribLocationARB)(GLhandleARB, const GLcharARB *);
|
||||||
|
|
||||||
// GLU
|
// GLU
|
||||||
extern void (APIENTRY * bgluTessBeginContour) (GLUtesselator* tess);
|
extern void (APIENTRY * bgluTessBeginContour) (GLUtesselator* tess);
|
||||||
extern void (APIENTRY * bgluTessBeginPolygon) (GLUtesselator* tess, GLvoid* data);
|
extern void (APIENTRY * bgluTessBeginPolygon) (GLUtesselator* tess, GLvoid* data);
|
||||||
|
|
|
@ -199,6 +199,54 @@ void (APIENTRY * bglGetUniformfvARB)(GLhandleARB, GLint, GLfloat *);
|
||||||
void (APIENTRY * bglGetUniformivARB)(GLhandleARB, GLint, GLint *);
|
void (APIENTRY * bglGetUniformivARB)(GLhandleARB, GLint, GLint *);
|
||||||
void (APIENTRY * bglGetShaderSourceARB)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *);
|
void (APIENTRY * bglGetShaderSourceARB)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *);
|
||||||
|
|
||||||
|
// Vertex Shaders
|
||||||
|
void (APIENTRY * bglVertexAttrib1dARB)(GLuint, GLdouble);
|
||||||
|
void (APIENTRY * bglVertexAttrib1dvARB)(GLuint, const GLdouble *);
|
||||||
|
void (APIENTRY * bglVertexAttrib1fARB)(GLuint, GLfloat);
|
||||||
|
void (APIENTRY * bglVertexAttrib1fvARB)(GLuint, const GLfloat *);
|
||||||
|
void (APIENTRY * bglVertexAttrib1sARB)(GLuint, GLshort);
|
||||||
|
void (APIENTRY * bglVertexAttrib1svARB)(GLuint, const GLshort *);
|
||||||
|
void (APIENTRY * bglVertexAttrib2dARB)(GLuint, GLdouble, GLdouble);
|
||||||
|
void (APIENTRY * bglVertexAttrib2dvARB)(GLuint, const GLdouble *);
|
||||||
|
void (APIENTRY * bglVertexAttrib2fARB)(GLuint, GLfloat, GLfloat);
|
||||||
|
void (APIENTRY * bglVertexAttrib2fvARB)(GLuint, const GLfloat *);
|
||||||
|
void (APIENTRY * bglVertexAttrib2sARB)(GLuint, GLshort, GLshort);
|
||||||
|
void (APIENTRY * bglVertexAttrib2svARB)(GLuint, const GLshort *);
|
||||||
|
void (APIENTRY * bglVertexAttrib3dARB)(GLuint, GLdouble, GLdouble, GLdouble);
|
||||||
|
void (APIENTRY * bglVertexAttrib3dvARB)(GLuint, const GLdouble *);
|
||||||
|
void (APIENTRY * bglVertexAttrib3fARB)(GLuint, GLfloat, GLfloat, GLfloat);
|
||||||
|
void (APIENTRY * bglVertexAttrib3fvARB)(GLuint, const GLfloat *);
|
||||||
|
void (APIENTRY * bglVertexAttrib3sARB)(GLuint, GLshort, GLshort, GLshort);
|
||||||
|
void (APIENTRY * bglVertexAttrib3svARB)(GLuint, const GLshort *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4NbvARB)(GLuint, const GLbyte *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4NivARB)(GLuint, const GLint *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4NsvARB)(GLuint, const GLshort *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4NubARB)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte);
|
||||||
|
void (APIENTRY * bglVertexAttrib4NubvARB)(GLuint, const GLubyte *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4NuivARB)(GLuint, const GLuint *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4NusvARB)(GLuint, const GLushort *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4bvARB)(GLuint, const GLbyte *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4dARB)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
|
||||||
|
void (APIENTRY * bglVertexAttrib4dvARB)(GLuint, const GLdouble *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4fARB)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
|
||||||
|
void (APIENTRY * bglVertexAttrib4fvARB)(GLuint, const GLfloat *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4ivARB)(GLuint, const GLint *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4sARB)(GLuint, GLshort, GLshort, GLshort, GLshort);
|
||||||
|
void (APIENTRY * bglVertexAttrib4svARB)(GLuint, const GLshort *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4ubvARB)(GLuint, const GLubyte *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4uivARB)(GLuint, const GLuint *);
|
||||||
|
void (APIENTRY * bglVertexAttrib4usvARB)(GLuint, const GLushort *);
|
||||||
|
void (APIENTRY * bglVertexAttribPointerARB)(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *);
|
||||||
|
void (APIENTRY * bglEnableVertexAttribArrayARB)(GLuint);
|
||||||
|
void (APIENTRY * bglDisableVertexAttribArrayARB)(GLuint);
|
||||||
|
void (APIENTRY * bglGetVertexAttribdvARB)(GLuint, GLenum, GLdouble *);
|
||||||
|
void (APIENTRY * bglGetVertexAttribfvARB)(GLuint, GLenum, GLfloat *);
|
||||||
|
void (APIENTRY * bglGetVertexAttribivARB)(GLuint, GLenum, GLint *);
|
||||||
|
void (APIENTRY * bglGetVertexAttribPointervARB)(GLuint, GLenum, GLvoid* *);
|
||||||
|
void (APIENTRY * bglBindAttribLocationARB)(GLhandleARB, GLuint, const GLcharARB *);
|
||||||
|
void (APIENTRY * bglGetActiveAttribARB)(GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *);
|
||||||
|
GLint (APIENTRY * bglGetAttribLocationARB)(GLhandleARB, const GLcharARB *);
|
||||||
|
|
||||||
// GLU
|
// GLU
|
||||||
void (APIENTRY * bgluTessBeginContour)(GLUtesselator* tess);
|
void (APIENTRY * bgluTessBeginContour)(GLUtesselator* tess);
|
||||||
void (APIENTRY * bgluTessBeginPolygon)(GLUtesselator* tess, GLvoid* data);
|
void (APIENTRY * bgluTessBeginPolygon)(GLUtesselator* tess, GLvoid* data);
|
||||||
|
@ -508,6 +556,54 @@ int loadglextensions(void)
|
||||||
bglGetUniformivARB = GETPROCEXTSOFT("glGetUniformivARB");
|
bglGetUniformivARB = GETPROCEXTSOFT("glGetUniformivARB");
|
||||||
bglGetShaderSourceARB = GETPROCEXTSOFT("glGetShaderSourceARB");
|
bglGetShaderSourceARB = GETPROCEXTSOFT("glGetShaderSourceARB");
|
||||||
|
|
||||||
|
// Vertex Shaders
|
||||||
|
bglVertexAttrib1dARB = GETPROCEXTSOFT("glVertexAttrib1dARB");
|
||||||
|
bglVertexAttrib1dvARB = GETPROCEXTSOFT("glVertexAttrib1dvARB");
|
||||||
|
bglVertexAttrib1fARB = GETPROCEXTSOFT("glVertexAttrib1fARB");
|
||||||
|
bglVertexAttrib1fvARB = GETPROCEXTSOFT("glVertexAttrib1fvARB");
|
||||||
|
bglVertexAttrib1sARB = GETPROCEXTSOFT("glVertexAttrib1sARB");
|
||||||
|
bglVertexAttrib1svARB = GETPROCEXTSOFT("glVertexAttrib1svARB");
|
||||||
|
bglVertexAttrib2dARB = GETPROCEXTSOFT("glVertexAttrib2dARB");
|
||||||
|
bglVertexAttrib2dvARB = GETPROCEXTSOFT("glVertexAttrib2dvARB");
|
||||||
|
bglVertexAttrib2fARB = GETPROCEXTSOFT("glVertexAttrib2fARB");
|
||||||
|
bglVertexAttrib2fvARB = GETPROCEXTSOFT("glVertexAttrib2fvARB");
|
||||||
|
bglVertexAttrib2sARB = GETPROCEXTSOFT("glVertexAttrib2sARB");
|
||||||
|
bglVertexAttrib2svARB = GETPROCEXTSOFT("glVertexAttrib2svARB");
|
||||||
|
bglVertexAttrib3dARB = GETPROCEXTSOFT("glVertexAttrib3dARB");
|
||||||
|
bglVertexAttrib3dvARB = GETPROCEXTSOFT("glVertexAttrib3dvARB");
|
||||||
|
bglVertexAttrib3fARB = GETPROCEXTSOFT("glVertexAttrib3fARB");
|
||||||
|
bglVertexAttrib3fvARB = GETPROCEXTSOFT("glVertexAttrib3fvARB");
|
||||||
|
bglVertexAttrib3sARB = GETPROCEXTSOFT("glVertexAttrib3sARB");
|
||||||
|
bglVertexAttrib3svARB = GETPROCEXTSOFT("glVertexAttrib3svARB");
|
||||||
|
bglVertexAttrib4NbvARB = GETPROCEXTSOFT("glVertexAttrib4NbvARB");
|
||||||
|
bglVertexAttrib4NivARB = GETPROCEXTSOFT("glVertexAttrib4NivARB");
|
||||||
|
bglVertexAttrib4NsvARB = GETPROCEXTSOFT("glVertexAttrib4NsvARB");
|
||||||
|
bglVertexAttrib4NubARB = GETPROCEXTSOFT("glVertexAttrib4NubARB");
|
||||||
|
bglVertexAttrib4NubvARB = GETPROCEXTSOFT("glVertexAttrib4NubvARB");
|
||||||
|
bglVertexAttrib4NuivARB = GETPROCEXTSOFT("glVertexAttrib4NuivARB");
|
||||||
|
bglVertexAttrib4NusvARB = GETPROCEXTSOFT("glVertexAttrib4NusvARB");
|
||||||
|
bglVertexAttrib4bvARB = GETPROCEXTSOFT("glVertexAttrib4bvARB");
|
||||||
|
bglVertexAttrib4dARB = GETPROCEXTSOFT("glVertexAttrib4dARB");
|
||||||
|
bglVertexAttrib4dvARB = GETPROCEXTSOFT("glVertexAttrib4dvARB");
|
||||||
|
bglVertexAttrib4fARB = GETPROCEXTSOFT("glVertexAttrib4fARB");
|
||||||
|
bglVertexAttrib4fvARB = GETPROCEXTSOFT("glVertexAttrib4fvARB");
|
||||||
|
bglVertexAttrib4ivARB = GETPROCEXTSOFT("glVertexAttrib4ivARB");
|
||||||
|
bglVertexAttrib4sARB = GETPROCEXTSOFT("glVertexAttrib4sARB");
|
||||||
|
bglVertexAttrib4svARB = GETPROCEXTSOFT("glVertexAttrib4svARB");
|
||||||
|
bglVertexAttrib4ubvARB = GETPROCEXTSOFT("glVertexAttrib4ubvARB");
|
||||||
|
bglVertexAttrib4uivARB = GETPROCEXTSOFT("glVertexAttrib4uivARB");
|
||||||
|
bglVertexAttrib4usvARB = GETPROCEXTSOFT("glVertexAttrib4usvARB");
|
||||||
|
bglVertexAttribPointerARB = GETPROCEXTSOFT("glVertexAttribPointerARB");
|
||||||
|
bglEnableVertexAttribArrayARB = GETPROCEXTSOFT("glEnableVertexAttribArrayARB");
|
||||||
|
bglDisableVertexAttribArrayARB = GETPROCEXTSOFT("glDisableVertexAttribArrayARB");
|
||||||
|
bglGetVertexAttribdvARB = GETPROCEXTSOFT("glGetVertexAttribdvARB");
|
||||||
|
bglGetVertexAttribfvARB = GETPROCEXTSOFT("glGetVertexAttribfvARB");
|
||||||
|
bglGetVertexAttribivARB = GETPROCEXTSOFT("glGetVertexAttribivARB");
|
||||||
|
bglGetVertexAttribPointervARB = GETPROCEXTSOFT("glGetVertexAttribPointervARB");
|
||||||
|
bglBindAttribLocationARB = GETPROCEXTSOFT("glBindAttribLocationARB");
|
||||||
|
bglGetActiveAttribARB = GETPROCEXTSOFT("glGetActiveAttribARB");
|
||||||
|
bglGetAttribLocationARB = GETPROCEXTSOFT("glGetAttribLocationARB");
|
||||||
|
|
||||||
#ifdef RENDERTYPEWIN
|
#ifdef RENDERTYPEWIN
|
||||||
bwglSwapIntervalEXT = GETPROCEXTSOFT("wglSwapIntervalEXT");
|
bwglSwapIntervalEXT = GETPROCEXTSOFT("wglSwapIntervalEXT");
|
||||||
#endif
|
#endif
|
||||||
|
@ -715,6 +811,54 @@ int unloadgldriver(void)
|
||||||
bglGetUniformivARB = NULL;
|
bglGetUniformivARB = NULL;
|
||||||
bglGetShaderSourceARB = NULL;
|
bglGetShaderSourceARB = NULL;
|
||||||
|
|
||||||
|
// Vertex Shaders
|
||||||
|
bglVertexAttrib1dARB = NULL;
|
||||||
|
bglVertexAttrib1dvARB = NULL;
|
||||||
|
bglVertexAttrib1fARB = NULL;
|
||||||
|
bglVertexAttrib1fvARB = NULL;
|
||||||
|
bglVertexAttrib1sARB = NULL;
|
||||||
|
bglVertexAttrib1svARB = NULL;
|
||||||
|
bglVertexAttrib2dARB = NULL;
|
||||||
|
bglVertexAttrib2dvARB = NULL;
|
||||||
|
bglVertexAttrib2fARB = NULL;
|
||||||
|
bglVertexAttrib2fvARB = NULL;
|
||||||
|
bglVertexAttrib2sARB = NULL;
|
||||||
|
bglVertexAttrib2svARB = NULL;
|
||||||
|
bglVertexAttrib3dARB = NULL;
|
||||||
|
bglVertexAttrib3dvARB = NULL;
|
||||||
|
bglVertexAttrib3fARB = NULL;
|
||||||
|
bglVertexAttrib3fvARB = NULL;
|
||||||
|
bglVertexAttrib3sARB = NULL;
|
||||||
|
bglVertexAttrib3svARB = NULL;
|
||||||
|
bglVertexAttrib4NbvARB = NULL;
|
||||||
|
bglVertexAttrib4NivARB = NULL;
|
||||||
|
bglVertexAttrib4NsvARB = NULL;
|
||||||
|
bglVertexAttrib4NubARB = NULL;
|
||||||
|
bglVertexAttrib4NubvARB = NULL;
|
||||||
|
bglVertexAttrib4NuivARB = NULL;
|
||||||
|
bglVertexAttrib4NusvARB = NULL;
|
||||||
|
bglVertexAttrib4bvARB = NULL;
|
||||||
|
bglVertexAttrib4dARB = NULL;
|
||||||
|
bglVertexAttrib4dvARB = NULL;
|
||||||
|
bglVertexAttrib4fARB = NULL;
|
||||||
|
bglVertexAttrib4fvARB = NULL;
|
||||||
|
bglVertexAttrib4ivARB = NULL;
|
||||||
|
bglVertexAttrib4sARB = NULL;
|
||||||
|
bglVertexAttrib4svARB = NULL;
|
||||||
|
bglVertexAttrib4ubvARB = NULL;
|
||||||
|
bglVertexAttrib4uivARB = NULL;
|
||||||
|
bglVertexAttrib4usvARB = NULL;
|
||||||
|
bglVertexAttribPointerARB = NULL;
|
||||||
|
bglEnableVertexAttribArrayARB = NULL;
|
||||||
|
bglDisableVertexAttribArrayARB = NULL;
|
||||||
|
bglGetVertexAttribdvARB = NULL;
|
||||||
|
bglGetVertexAttribfvARB = NULL;
|
||||||
|
bglGetVertexAttribivARB = NULL;
|
||||||
|
bglGetVertexAttribPointervARB = NULL;
|
||||||
|
bglBindAttribLocationARB = NULL;
|
||||||
|
bglGetActiveAttribARB = NULL;
|
||||||
|
bglGetAttribLocationARB = NULL;
|
||||||
|
|
||||||
#ifdef RENDERTYPEWIN
|
#ifdef RENDERTYPEWIN
|
||||||
bwglCreateContext = NULL;
|
bwglCreateContext = NULL;
|
||||||
bwglDeleteContext = NULL;
|
bwglDeleteContext = NULL;
|
||||||
|
|
Loading…
Reference in a new issue