primitive Class Reference

file : ../lugre/lua/lib.primitive.lua (this is just a pseudo class used for grouping global functions) More...

List of all members.

Static Public Member Functions

static mixed GeomFaceNumToSideNum (mixed geom, mixed facenum)
static mixed GeomGetSide (mixed geom, mixed sidenum)
 returns array of vertices, sidenum is one-based index
static mixed GeomSideIsQuad (mixed geomside)
 geomside = geom[one_based_index]
static mixed GeomSideGetIndexCount (mixed geomside)
static mixed GeomSideGetVertexCount (mixed geomside)
static mixed GeomSideGetNormal (mixed geomside)
 returns nx,ny,nz
static mixed GeomSideIsAxisAligned (mixed geomside)
 checks if a side is parallel to a border of an axis aligned box
static mixed GeomGetAxisAlignedSides (mixed geom)
static mixed GeomSideCalcDim (mixed geomside)
 returns w,h
static mixed GeomSideCalcArea (mixed geomside)
 returns surface area
static mixed GeomInvert (mixed geom)
 changes the vertex order so that culling and normals are inverted
static mixed MakeSphereMesh (mixed steps_h, mixed steps_v, mixed cx, mixed cy, mixed cz, mixed r, mixed g, mixed b)
static mixed GfxSetCylinderZ (mixed gfx, mixed r, mixed h, mixed steps)
 creates a SimpleRenderable , a cylinder arount the z axis from 0,0,0 to 0,0,h with radius r
static mixed GfxSetSphere (mixed gfx, mixed cx, mixed cy, mixed cz, mixed steps_h, mixed steps_v)
 creates a SimpleRenderable
static mixed GfxSetGeom (mixed gfx, mixed geom, mixed texcoords, mixed cx, mixed cy, mixed cz, mixed bDynamic)
 creates a SimpleRenderable


Detailed Description

file : ../lugre/lua/lib.primitive.lua (this is just a pseudo class used for grouping global functions)

Definition at line 5782 of file lua_pseudo_code.cpp.


Member Function Documentation

static mixed primitive::GeomFaceNumToSideNum ( mixed  geom,
mixed  facenum 
) [inline, static]

TODO kGeomQTAdapter : quadratic base to triangle top, one side cut, 1+2 quads, 1+3 tris the facenum returned from gfx:RayPick,... is zero based, but can be used to determine the "side" returns one-based index in geom

Definition at line 5787 of file lua_pseudo_code.cpp.

static mixed primitive::GeomGetSide ( mixed  geom,
mixed  sidenum 
) [inline, static]

returns array of vertices, sidenum is one-based index

Definition at line 5790 of file lua_pseudo_code.cpp.

static mixed primitive::GeomSideIsQuad ( mixed  geomside  )  [inline, static]

geomside = geom[one_based_index]

Definition at line 5793 of file lua_pseudo_code.cpp.

static mixed primitive::GeomSideGetIndexCount ( mixed  geomside  )  [inline, static]

Definition at line 5795 of file lua_pseudo_code.cpp.

static mixed primitive::GeomSideGetVertexCount ( mixed  geomside  )  [inline, static]

Definition at line 5797 of file lua_pseudo_code.cpp.

static mixed primitive::GeomSideGetNormal ( mixed  geomside  )  [inline, static]

returns nx,ny,nz

Definition at line 5800 of file lua_pseudo_code.cpp.

static mixed primitive::GeomSideIsAxisAligned ( mixed  geomside  )  [inline, static]

checks if a side is parallel to a border of an axis aligned box

Definition at line 5803 of file lua_pseudo_code.cpp.

static mixed primitive::GeomGetAxisAlignedSides ( mixed  geom  )  [inline, static]

Definition at line 5805 of file lua_pseudo_code.cpp.

static mixed primitive::GeomSideCalcDim ( mixed  geomside  )  [inline, static]

returns w,h

Definition at line 5808 of file lua_pseudo_code.cpp.

static mixed primitive::GeomSideCalcArea ( mixed  geomside  )  [inline, static]

returns surface area

Definition at line 5811 of file lua_pseudo_code.cpp.

static mixed primitive::GeomInvert ( mixed  geom  )  [inline, static]

changes the vertex order so that culling and normals are inverted

Definition at line 5814 of file lua_pseudo_code.cpp.

static mixed primitive::MakeSphereMesh ( mixed  steps_h,
mixed  steps_v,
mixed  cx,
mixed  cy,
mixed  cz,
mixed  r,
mixed  g,
mixed  b 
) [inline, static]

Definition at line 5816 of file lua_pseudo_code.cpp.

static mixed primitive::GfxSetCylinderZ ( mixed  gfx,
mixed  r,
mixed  h,
mixed  steps 
) [inline, static]

creates a SimpleRenderable , a cylinder arount the z axis from 0,0,0 to 0,0,h with radius r

Definition at line 5819 of file lua_pseudo_code.cpp.

static mixed primitive::GfxSetSphere ( mixed  gfx,
mixed  cx,
mixed  cy,
mixed  cz,
mixed  steps_h,
mixed  steps_v 
) [inline, static]

creates a SimpleRenderable

Definition at line 5822 of file lua_pseudo_code.cpp.

static mixed primitive::GfxSetGeom ( mixed  gfx,
mixed  geom,
mixed  texcoords,
mixed  cx,
mixed  cy,
mixed  cz,
mixed  bDynamic 
) [inline, static]

creates a SimpleRenderable

Definition at line 5825 of file lua_pseudo_code.cpp.


The documentation for this class was generated from the following file:

Generated on Fri Mar 29 05:41:10 2013 for lua by  doxygen 1.5.6