ImmediateGeometry

Draws simple geometry from code.

Uses a drawing mode similar to OpenGL 1.x.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

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)

The next vertex's UV.

setUv2
void setUv2(Vector2 uv)

The next vertex's second layer UV.

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
ImmediateGeometry _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta