ImmediateGeometry
Category: Core
Draws simple geometry from code.
Draws simple geometry from code. Uses a drawing mode similar to OpenGL 1.x.
Simple helper to draw a uvsphere, with given latitudes, longitude and radius.
- void add_vertex ( position )
- void begin ( PrimitiveType primitive, texture=null )
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.
- void clear ( )
Clears everything that was drawn using begin/end.
- void end ( )
Ends a drawing context and displays the results.
- void set_normal ( normal )
The next vertex’s normal.
- void set_tangent ( Plane tangent )
The next vertex’s tangent (and binormal facing).
- void set_uv ( uv )
The next vertex’s UV.
- void set_uv2 ( Vector2 uv )
The next vertex’s second layer UV.