Results 1 to 2 of 2

Thread: tesselator callback function in vc++

  1. #1
    Guest

    tesselator callback function in vc++

    Tring to compile following code failed to show messages .. "cannot convert parameter 3 from 'void (unsigned int)' to 'void (__stdcall *)(void)'
    None of the functions with this name in scope match the target type"

    How can compile this successfully?

    Thanks in advance.

    ---
    GLUtesselator* tobj = gluNewTess();
    gluTessCallback(tobj,GLU_TESS_VERTEX,glVertex3dv);
    ---

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    880

    Re: tesselator callback function in vc++

    You have to typecast glVertex3dv as follow :

    gluTessCallback(myTesselator,GLU_TESS_VERTEX_DATA, (void (__stdcall *) (void)) glVertex3dv);

    Regards.

    Eric

Similar Threads

  1. callback function
    By guyinhell in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 12-15-2004, 10:55 PM
  2. Replies: 4
    Last Post: 07-27-2004, 06:56 PM
  3. GLU tesselator, combine callback, advanced query
    By Holzschuch in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 01-20-2003, 12:55 AM
  4. CallBack function
    By crsm in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-14-2001, 03:41 AM
  5. CallBack function
    By crsm in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-12-2001, 04:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean