Version 5 of TclGles20

Updated 2014-02-09 16:52:44 by RLE

Description

TclGles20 is a layer package for APWTCL, 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.0 .. 1.0).

Here is a list of the planned commands (all live in namespace ::gles20):

donecommandparam1param2param3param4param5param6param7param8
xclearbufferredgreenbluealpha
compileshaders
drawlinestart_vertexend_vertex
drawrectanglevertex1vertex2vertex3vertex4
drawtexturerectanglevertex1vertex2vertex3vertex4
drawtexturetrianglevertex1vertex2vertex3
drawtrianglevertex1vertex2vertex3
fillrectanglevertex1vertex2vertex3vertex4
filltexturerectanglevertex1vertex2vertex3vertex4
filltexturetrianglevertex1vertex2vertex3
filltrianglevertex1vertex2vertex3
getfontinfotextfont_namefont_sizebackgroundforegroundmaxwidthmaxheightmeasureonly
maketexttexture
rotate
setupframebuffer
setuprenderbuffer
swapheaders