dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
753 stars 300 forks source link

example how to use NurbsSurface #135

Closed TKmolibso closed 6 years ago

TKmolibso commented 7 years ago

hello guys,

do you have an example how to use the classes in Evaluators. I wanna create an NurbsSurface but there is an important difference.

OpenGL c++: 

  | OpenGL c++: void WINAPI gluNurbsSurface(   GLUnurbs *nobj,    GLint    sknot_count,    float    *sknot,    GLint    tknot_count,    GLfloat  *tknot,    GLint    s_stride,    GLint    t_stride,    **GLfloat  *ctlarray**,    GLint    sorder,    GLint    torder,    GLenum   type );

SharpGL:public void NurbsSurface(IntPtr nurbsObject, int sknotsCount, float[] sknots, int tknotsCount, float[] tknots, int sStride, int tStride, **float[] controlPointsArray**, int sOrder, int tOrder, uint type)

Thus I just can find examples how to use in c++.

Thanks for your help.