- addSphere
void addSphere(long lats, long lons, double radius, bool add_uv)
Simple helper to draw a uvsphere, with given latitudes, longitude and radius.
- addVertex
void addVertex(Vector3 position)
Adds a vertex with the currently set color/uv/etc.
- begin
void begin(long primitive, Texture texture)
Begin drawing (And optionally pass a texture override). When done call end(). For more information on how this works, search for glBegin() glEnd() references.
For the type of primitive, use the Mesh.PRIMITIVE_* enumerations.
- clear
void clear()
Clears everything that was drawn using begin/end.
- end
void end()
Ends a drawing context and displays the results.
- opAssign
ImmediateGeometry opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(ImmediateGeometry other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- setColor
void setColor(Color color)
The current drawing color.
- setNormal
void setNormal(Vector3 normal)
The next vertex's normal.
- setTangent
void setTangent(Plane tangent)
The next vertex's tangent (and binormal facing).
- setUv
void setUv(Vector2 uv)
- setUv2
void setUv2(Vector2 uv)
The next vertex's second layer UV.
Draws simple geometry from code.
Uses a drawing mode similar to OpenGL 1.x.