TclGles20 is a layer package, which makes some of the OpenGL es 2.0 commands available (callable) from Tcl.
A Vertex has the Tcl form (list position color):
[list [list x y z] [list r g b a]]
Position and color values are float values (colors between 0 .. 1).
Here is a list of the planned commands:
command | param1 | param2 | param3 | param4 |
---|---|---|---|---|
clearbuffer | red | green | blue | alpha |
drawline | start_vertex | end_vertex | ||
drawtriangle | vertex1 | vertex2 | vertex3 | |
filltriangle | vertex1 | vertex2 | vertex3 |