-
Notifications
You must be signed in to change notification settings - Fork 17
Widget_Custom3D
ben-mkiv edited this page Feb 14, 2019
·
3 revisions
widget = component.glasses.addCustom3D()
-- adds a Custom Shape to the 3D World Space
widget.addVertex(x, y, z):Integer:index
-- adds a vertex
widget.setVertex(index, x, y, z)
-- updates a vertex
widget.removeVertex(index)
-- removes a vertex
widget.getVertexCount():Integer
-- return Vertex Count
widget.setGLMODE("TRIANGLES")
-- sets the opengl mode which is used to draw
-- valid modes [TRIANGLES, TRIANGLE_STRIP]
widget.setShading("SMOOTH")
-- sets the shading mode thats used for the widget
-- valid modes: [FLAT, SMOOTH]