• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 752 from 2007/10/23
    From: Gelsenkirchen,...
    Quote:

    eliot schrieb:
    BTW

    there also a little mistake in glut.h:

    it should be glutCreateWindow( const char* title );
    not glutCreateWindow( char* title );
    There is missing the "const".



    This is not the only issue especially with C++
    Code:
    --- tgl/glu.h.bak       2016-01-22 09:43:05 +0100
    +++ tgl/glu.h 2016-03-06 17:29:37 +0100
    @@ -181,7 +181,7 @@
    #define gluOrtho2D(left, right, bottom, top) glOrtho(left, right,
    bottom, top, -1.0, 1.0)

    /* dummy added by Yomgui */
    -#define gluErrorString(x) "<gluErrorString() not implemented>"
    +#define gluErrorString(x) (GLubyte *)"<gluErrorString() not implemented>"

    #endif /* _NO_PPCINLINE */
    --- ppcinline/tinygl.h.bak 2015-06-19 13:50:17 +0000
    +++ ppcinline/tinygl.h 2015-08-30 15:58:22 +0000
    @@ -162,7 +162,7 @@
    (((void (*)(GLContext *, GLenum , const GLdouble *))*(void**)((long)(TINYGL_BASE_NAME) - 1162))(__p0, __p1, __p2))

    #define GLDrawElements(__p0, __p1, __p2, __p3, __p4)
    - (((void (*)(GLContext *, GLenum , GLsizei , GLenum , GLvoid *))*(void**)((long)(TINYGL_BASE_NAME) - 562))(__p0, __p1, __p2, __p3, __p4))
    + (((void (*)(GLContext *, GLenum , GLsizei , GLenum , const GLvoid *))*(void**)((long)(TINYGL_BASE_NAME) - 562))(__p0, __p1, __p2, __p3, __p4))

    #define GLTranslatef(__p0, __p1, __p2, __p3)
    (((void (*)(GLContext *, GLfloat , GLfloat , GLfloat ))*(void**)((long)(TINYGL_BASE_NAME) - 232))(__p0, __p1, __p2, __p3))
    @@ -321,7 +321,7 @@
    (((void (*)(GLContext *, GLenum , const GLfloat *))*(void**)((long)(TINYGL_BASE_NAME) - 1294))(__p0, __p1, __p2))

    #define GLCallLists(__p0, __p1, __p2, __p3)
    - (((void (*)(GLContext *, GLsizei , GLenum , GLvoid *))*(void**)((long)(TINYGL_BASE_NAME) - 892))(__p0, __p1, __p2, __p3))
    + (((void (*)(GLContext *, GLsizei , GLenum , const GLvoid *))*(void**)((long)(TINYGL_BASE_NAME) - 892))(__p0, __p1, __p2, __p3))

    #define GLLightf(__p0, __p1, __p2, __p3)
    (((void (*)(GLContext *, int , int , float ))*(void**)((long)(TINYGL_BASE_NAME) - 454))(__p0, __p1, __p2, __p3))
    @@ -729,7 +729,7 @@
    (((void (*)(GLContext *, GLint , GLint ))*(void**)((long)(TINYGL_BASE_NAME) - 550))(__p0, __p1, __p2))

    #define GLGetString(__p0, __p1)
    - (((GLbyte *(*)(GLContext *, GLenum ))*(void**)((long)(TINYGL_BASE_NAME) - 862))(__p0, __p1))
    + (((const GLubyte *(*)(GLContext *, GLenum ))*(void**)((long)(TINYGL_BASE_NAME) - 862))(__p0, __p1))

    #define GLUTMainLoop(__p0)
    (((void (*)(GLContext *))*(void**)((long)(TINYGL_BASE_NAME) - 718))(__p0))
    --- ./tgl/gl.h.bak 2015-06-19 13:50:18 +0000
    +++ ./tgl/gl.h 2015-07-02 12:16:46 +0000
    @@ -1176,7 +1176,7 @@

    void glFrontFace(int mode);

    -GLbyte *glGetString(GLenum tag);
    +const GLubyte *glGetString(GLenum tag);

    /* opengl 1.2 arrays */
    void glEnableClientState(GLenum array);
    @@ -1498,7 +1498,7 @@

    void GLFrontFace(GLContext *context, int mode);

    -GLbyte *GLGetString(GLContext *context, GLenum tag);
    +const GLubyte *GLGetString(GLContext *context, GLenum tag);

    /* opengl 1.2 arrays */



    [ Editiert durch polluks 07.07.2016 - 15:05 ]
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.17
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.17
  • »06.07.16 - 20:44
    Profile