Hi Sergey,

unfortunatelly I did not manage to make your code run. I am getting this Link 
Errors:
error LNK2001: unresolved external symbol __imp__glEnableClientState@4
error LNK2001: unresolved external symbol __imp__glDisableClientState@4

Find my includes bellow, according to me, it should work with including 
osg/state. Wrong ?
Moreover, why are you using glEnableClientState ? Is glEnable not the right one 
?
In any case both variations give me this link error, while in a non osg App the 
primitive restart is working ( with glew.h ).

Here are my includes and defines

#include "osg/State"
#include "osg/Geode"
#include "osg/Geometry"
#include "osg/NodeVisitor"
#include "osg/GLExtensions"
#include "osg/PrimitiveSet"

#define PRIMITIVE_RESTART_NV             0x8558
#define PRIMITIVE_RESTART_INDEX_NV  0x8559

// These I have from glew.h
#define GL_PRIMITIVE_RESTART                  0x8F9D
#define GL_PRIMITIVE_RESTART_INDEX   0x8F9E

 
Thank you!

Cheers, ParticlePeter

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41907#41907





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to