38 if (_vertex !=
nullptr)
delete _vertex;
39 if (_normal !=
nullptr)
delete _normal;
40 if (_uv !=
nullptr)
delete _uv;
41 if (_color !=
nullptr)
delete _color;
60 _budget = total_budget;
75 INLINE
void MeshDrawer::tri(
const LVector3 &v1,
const LVector4 &c1,
const LVector2 &uv1,
76 const LVector3 &v2,
const LVector4 &c2,
const LVector2 &uv2,
77 const LVector3 &v3,
const LVector4 &c3,
const LVector2 &uv3) {
79 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.
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.
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.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...