Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: gluTessCallback compile error on OSX

  1. #1
    Intern Newbie
    Join Date
    Jun 2006
    Posts
    31

    gluTessCallback compile error on OSX

    I keep getting the following error when trying to compile the following tessellation code in XCode on OS X:

    error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid(*)(...))'
    error: invalid conversion from 'GLvoid(*)()' to 'GLvoid (*)(...)'

    my call back function is declared as follows and I am using the following code to register it:

    e
    gluTessCallback(tess, GLU_BEGIN, (GLvoid (*) (void)) glBegin );
    gluTessCallback(tess, GLU_VERTEX, (GLvoid (CALLBACK*) ()) &glVertex3dv );
    gluTessCallback(tess, GLU_END, (GLvoid (CALLBACK*) ()) &glEnd );
    gluTessCallback(tess, GLU_TESS_COMBINE, (GLvoid (CALLBACK*) ()) &combineCallback );
    gluTessCallback(tess, GLU_ERROR, (GLvoid (CALLBACK*) ()) &errorCallback );

    #ifndef CALLBACK
    #define CALLBACK
    #endif


    static void CALLBACK vertexCallback(GLdouble *vertex)
    {
    glVertex3dv((GLdouble *)vertex);
    }


    What must the callback and the call to gluTessCallback look like?

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: gluTessCallback compile error on OSX

    first, you should not cross post.
    you have only posted 2 different topics, for a total of 5 new topics !!

  3. #3
    Intern Newbie
    Join Date
    Jun 2006
    Posts
    31

    Re: gluTessCallback compile error on OSX

    Sorry, I was just afraid of people only reading certain boards not seeing my question. Maybe the advanced people don't read the macintosh group or the beginners the advanced. Further, I don't know if my question would be considered advanced or not. So, I decided to try both.

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: gluTessCallback compile error on OSX

    It does not works that way.
    Post to the beginner section if you are a beginner. And you are.
    Both advanced and beginners browse all forums anyway, thanks to this
    useful daily topics link .
    There is absolutely no need to double and triple post. Worse, the answers may be split along multiple cloned topics.

  5. #5
    Guest

    Re: gluTessCallback compile error on OSX

    Originally posted by ZbuffeR:
    It does not works that way.
    Post to the beginner section if you are a beginner. And you are.
    Both advanced and beginners browse all forums anyway, thanks to this
    useful daily topics link .
    There is absolutely no need to double and triple post. Worse, the answers may be split along multiple cloned topics.
    Whatever you say board NAZI!

  6. #6
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,979

    Re: gluTessCallback compile error on OSX

    It woudl be nice to make registation mandratory for posting in each forum. Allowing guests making such stupide statements is not nice :-/

  7. #7
    Intern Newbie
    Join Date
    Jun 2006
    Posts
    31

    Re: gluTessCallback compile error on OSX

    Thank you, becaue I didn't leave those comments. A childish coworker who I showed my posts to thought it would be funny to do this. Sorry guys, but I had nothing to do with this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •