43 if (_vertex != NULL)
delete _vertex;
44 if (_normal != NULL)
delete _normal;
45 if (_uv != NULL)
delete _uv;
46 if (_color != NULL)
delete _color;
71 _budget = total_budget;
94 if( _clear_index > _end_clear_index)
return;
void set_budget(int budget)
Sets the total triangle budget of the drawer.
void add_data2(PN_stdfloat x, PN_stdfloat y)
Sets the write row to a particular 2-component value, and advances the write row. ...
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
void add_data4(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z, PN_stdfloat w)
Sets the write row to a particular 4-component value, and advances the write row. ...
MeshDrawer()
Creates the MeshDrawer low level system.
void add_data3(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
Sets the write row to a particular 3-component value, and advances the write row. ...
This is a four-component vector distance.
NodePath get_root()
Returns the root NodePath.
void tri(const LVector3 &v1, const LVector4 &c1, const LVector2 &uv1, const LVector3 &v2, const LVector4 &c2, const LVector2 &uv2, const LVector3 &v3, const LVector4 &c3, const LVector2 &uv3)
Draws a triangle with the given parameters.
This is a two-component vector offset.
void remove_node(Thread *current_thread=Thread::get_current_thread())
Disconnects the referenced node from the scene graph.
~MeshDrawer()
Destroys the MeshDrawer low level system.
int get_budget()
Gets the total triangle budget of the drawer.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...