FYI If you are having problems compiling d3d8, add the following to d3d8_private.h after the APIENTRY #define
/* Temporary hack for compile */ typedef void (APIENTRY * PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); typedef void (APIENTRY * PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); typedef void (APIENTRY * PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRY * PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); typedef void (APIENTRY * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); typedef void (APIENTRY * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
Raphael - I'll let you fix this issue properly.. :-)
Jason
Ann and Jason Edmeades wrote:
FYI If you are having problems compiling d3d8, add the following to d3d8_private.h after the APIENTRY #define
/* Temporary hack for compile */ typedef void (APIENTRY * PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); typedef void (APIENTRY * PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); typedef void (APIENTRY * PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRY * PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); typedef void (APIENTRY * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); typedef void (APIENTRY * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
Raphael - I'll let you fix this issue properly.. :-)
Jason
I've got some different issues. first, GL/glxext.h (included from d3d8/device.c) doesn't exist on my machine then, in d3d8/utils.c, GL_ALPHASCALE, GL_PRIMARY_COLOR, GL_CONSTANT, GL_PREVIOUS are not defined, causing some more errors
A+
Hi Eric,
Can you send me (and copy Raphael) your gl include directory.
FYI The whole point of the changes Raphael made is to avoid this issue of many #ifdefs in the code to handle gl13, gl14, _arb and _ext names. It should also allow runtime determination of support rather than compile time determination (ie packages become possible), and finally should prevent this problem (once we have it right).
I'm agreeing with Raphael now - It would be so easier to define our own gl headers :-)
Jason
El jue, 05 de jun de 2003, a las 22:04, Eric Pouech escribio:
I've got some different issues. first, GL/glxext.h (included from d3d8/device.c) doesn't exist on my machine then, in d3d8/utils.c, GL_ALPHASCALE, GL_PRIMARY_COLOR, GL_CONSTANT, GL_PREVIOUS are not defined, causing some more errors
#define GL_CONSTANT 0x8576 #define GL_PRIMARY_COLOR 0x8577 #define GL_PREVIOUS 0x8578
GL_ALPHA_SCALE_EXT value????
Thanks, Regards, Carlos.