osgRecipes icon indicating copy to clipboard operation
osgRecipes copied to clipboard

AntTweakBar: Cannot load functions

Open peterakos opened this issue 13 years ago • 2 comments

Hello.

I try to use AntTweakBar along with Opengl core. So i call TwInit( TW_OPENGL_CORE, NULL );

The problem is that i get some errors: Cannot load function glBlendColor Cannot load function glBlendEquation and many more core functions.

I had to use the following: fprintf(stderr, "AntTweakBar: Cannot load function %s\n", g_OGLCoreFuncRec[i].m_Name); in function: int LoadOpenGLCore()

What can i do for AntTweakBar to see these functions ?

Thank you for your time.

peterakos avatar Sep 12 '12 18:09 peterakos

I haven't tested AntTweakBar under core profile. The first thing I think you should check is to ensure OSG also works under core profile. So you may have to recompile OSG with GL3 headers first.

Thank you,

Wang Rui

2012/9/13 peterakos [email protected]

Hello.

I try to use AntTweakBar along with Opengl core. So i call TwInit( TW_OPENGL_CORE, NULL );

The problem is that i get some errors: Cannot load function glBlendColor Cannot load function glBlendEquation and many more core functions.

I had to use the following: fprintf(stderr, "AntTweakBar: Cannot load function %s\n", g_OGLCoreFuncRec[i].m_Name); in function: int LoadOpenGLCore()

What can i do for AntTweakBar to see these functions ?

Thank you for your time.

— Reply to this email directly or view it on GitHubhttps://github.com/xarray/osgRecipes/issues/8.

xarray avatar Sep 13 '12 16:09 xarray

Hello

i have compiled osg with GL3 and it works.

Shouldnt i be able to use it under core profile with this line ? TwInit( TW_OPENGL_CORE, NULL );

thnx again.

peterakos avatar Sep 13 '12 21:09 peterakos