Skip to main content
gamedev.net
šŸ”’ Locked

gluTessCallback Error

Started by jda Apr 20, 2002 at 10:53 PM 0 replies 1.5k views
Original Post
jda
jda
I keep getting this error for all my errors: main.cpp(91): error C2664: ''gluTessCallback'' : cannot convert parameter 3 from ''GLvoid (__cdecl *)(void)'' to ''void (__stdcall *)(void)'' I am using VC++.NET the error comes from the following code: gluTessCallback(tobj, GLU_TESS_BEGIN, (GLvoid (*) ()) &glBegin); It should work, and I have no idea of how to fix it.
IndirectX
IndirectX
Use CALLBACK:

GLvoid CALLBACK YourCallback() { ... }

CALLBACK is basically defined as __stdcall, the standard Win32 calling convention.
---visit #directxdev on afternet <- not just for directx, despite the name

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.