My app has its own OpenGL context and objects are typically drawn by calling their DrawOpenGL method that typically looks like this :
DrawOpenGL_3D( void ) const
glVertexPointer( 3, GL_FLOAT, 6*sizeof( GLfloat), LeftSurface_VerticesNormals );
glNormalPointer( GL_FLOAT, 6*sizeof( GLfloat), LeftSurface_VerticesNormals+3 );
glDrawArrays( GL_POLYGON, 0, OpenGL_CircularAperture_PointNb );
Is it also possible to call some kind of DrawOpenGL method for OCCT objects (TopoDS_Shape ??) so that I could display them in my own OpenGL context ?
Thanks for your help,