Is anyone familiar with the Visual Basic 6.0 syntax for Tessellation callback routines?
Here’s my coding and compilation errors:
tess = gluNewTess()
gluTessCallback tess, tcbTessBegin, glBegin
gluTessCallback tess, tcbTessVertex, glVertex3fv
gluTessCallback tess, tcbTessEnd, glEnd
’ Last arguments above give compile errors
’ “argument not optional”,
’ “expected function”, and
’ “syntax error”
gluBeginPolygon tess
gluTessBeginContour tess
’ (Loop)
tessVector(0) = x
tessVector(1) = y
tessVector(2) = z
gluTessVertex tess, tessVector(0), tessVector(0)
’ Second argument above gives compile error
’ “Byref argument type mismatch”
’ (End Loop)
gluTessEndContour tess
gluEndPolygon tess
Thanks for your help!