lights FAQ Forum github.com/luapower/sg
cairo
gl
gl_mesh
gl_obj
gl_shape

3D Graphics
opengl
sg
obj_parser
glut

sg_gl_shape

OpenGL scene graph shapes


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.

Last updated: 2 years ago | Edit on GitHub

Pkg type:Lua+ffi
Version: dev-21-g0ae3652
Last commit:
License: PD
Requires: cairo  glue  luajit  path2d  pp  eq  +obj_parser  +opengl  +winapi  +stdio  +tuple 
Required by: winapi 

Top