Results 1 to 4 of 4

Thread: How to use "gluTessCallback" in c++

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    4

    How to use "gluTessCallback" in c++

    After i compile my c++ program(in VC.NET and VC6), i get 2 errors,
    codes:
    gluTessCallback(tess, GLU_BEGIN, glBegin);
    gluTessCallback(tess, GLU_VERTEX, glVertex3dv);

    errors:
    :error C2664: 'gluTessCallback' : 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
    :error C2664: 'gluTessCallback' : cannot convert parameter 3 from 'void (const double *)' to 'void (__stdcall *)(void)'None of the functions with this name in scope match the target type

    Please help me!

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: How to use "gluTessCallback" in c++

    Quick and dirty:
    gluTessCallback(tess, GLU_BEGIN, (void (__stdcall *)(void)) glBegin);
    gluTessCallback(tess, GLU_VERTEX, (void (__stdcall *) (void)) glVertex3dv);
    A cleaner option would be to create wrapper functions with the exact prototype.

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    4

    Re: How to use "gluTessCallback" in c++

    it can go,
    thanks for your help!

  4. #4
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    4

    Re: How to use "gluTessCallback" in c++

    And thanks for your advice.

Similar Threads

  1. gluTessCallback
    By BlowIT in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-01-2006, 08:12 AM
  2. gluTessCallback
    By happy in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 03-06-2005, 10:23 AM
  3. gluTessCallback
    By imported_Ulrich in forum OpenGL: Windows
    Replies: 1
    Last Post: 09-15-2004, 06:57 AM
  4. gluTessCallback
    By imported_Ulrich in forum OpenGL: Windows
    Replies: 0
    Last Post: 09-11-2004, 05:51 AM
  5. gluTessCallback mystery
    By AndersS in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-17-2004, 02:43 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