Struct ImmediateGeometry

Draws simple geometry from code.

struct ImmediateGeometry ;

Uses a drawing mode similar to OpenGL 1.x.

Methods

NameDescription
addSphere Simple helper to draw an UV sphere with given latitude, longitude and radius.
addVertex Adds a vertex in local coordinate space with the currently set color/uv/etc.
begin Begin drawing (and optionally pass a texture override). When done call end. For more information on how this works, search for glBegin() and glEnd() references. For the type of primitive, see the Mesh.primitivetype enum.
clear Clears everything that was drawn using begin/end.
end Ends a drawing context and displays the results.
setColor The current drawing color.
setNormal The next vertex's normal.
setTangent The next vertex's tangent (and binormal facing).
setUv The next vertex's UV.
setUv2 The next vertex's second layer UV.