sg_gl_shape

OpenGL scene graph shapes

 
 
View on GitHub
Download as .tar.gz
Download as .zip

require'sg_gl_shape'

Extends sg_gl to render shape objects.

Shape objects

A shape is a type of OpenGL scene graph object that describes a 3D object in a state-machine kind of language. Internally, the shape description is converted into a mesh object which is then rendered.

<shape_object> = {
   type = 'shape',
   <mode> |
   'color', r, g, b, a |
}

<mode> = see sg_gl_mesh for available modes.

See also: sg_gl_mesh