55 const LVector3 &v1,
const LVector4 &c1,
const LVector2 &uv1,
56 const LVector3 &v2,
const LVector4 &c2,
const LVector2 &uv2,
57 const LVector3 &v3,
const LVector4 &c3,
const LVector2 &uv3,
58 const LVector3 &v4,
const LVector4 &c4,
const LVector2 &uv4);
60 INLINE
void rectangle_raw(
61 PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h,
62 PN_stdfloat u, PN_stdfloat v, PN_stdfloat us, PN_stdfloat vs,
63 const LVector4 &color);
65 INLINE
void set_clip(PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h);
68 PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h,
69 PN_stdfloat u, PN_stdfloat v, PN_stdfloat us, PN_stdfloat vs,
70 const LVector4 &color);
73 PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h,
74 PN_stdfloat r, PN_stdfloat t, PN_stdfloat l, PN_stdfloat b,
75 PN_stdfloat tr, PN_stdfloat tt, PN_stdfloat tl, PN_stdfloat tb,
76 PN_stdfloat u, PN_stdfloat v, PN_stdfloat us, PN_stdfloat vs,
77 const LVector4 &color);
80 PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h,
81 PN_stdfloat r, PN_stdfloat t, PN_stdfloat l, PN_stdfloat b,
82 PN_stdfloat tr, PN_stdfloat tt, PN_stdfloat tl, PN_stdfloat tb,
83 PN_stdfloat u, PN_stdfloat v, PN_stdfloat us, PN_stdfloat vs,
84 const LVector4 &color);
87 PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h,
88 PN_stdfloat u, PN_stdfloat v, PN_stdfloat us, PN_stdfloat vs,
89 const LVector4 &color);
119 int _last_clear_index, _start_clear_index, _end_clear_index, _clear_index;
125 void generator(
int budget);
134 TypedObject::get_class_type());
137 return get_class_type();
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
A node that holds Geom objects, renderable pieces of geometry.
This is an abstract base class for a family of classes that represent the fundamental geometry primit...
Defines a series of disconnected triangles.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
This object provides the functionality of both a GeomVertexReader and a GeomVertexWriter,...
A container for geometry primitives.
void rectangle(PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h, PN_stdfloat u, PN_stdfloat v, PN_stdfloat us, PN_stdfloat vs, const LVector4 &color)
Draws a 2D rectangle which can be clipped.
void rectangle_tiled(PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h, PN_stdfloat u, PN_stdfloat v, PN_stdfloat us, PN_stdfloat vs, const LVector4 &color)
Draws a tiled rectangle, size of tiles is in us and vs.
int get_budget()
Gets the total triangle budget of the drawer.
void rectangle_border(PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h, PN_stdfloat r, PN_stdfloat t, PN_stdfloat l, PN_stdfloat b, PN_stdfloat tr, PN_stdfloat tt, PN_stdfloat tl, PN_stdfloat tb, PN_stdfloat u, PN_stdfloat v, PN_stdfloat us, PN_stdfloat vs, const LVector4 &color)
Draws a 2d rectangle, with borders and corders, taken from the surrounding texture.
void set_budget(int budget)
Sets the total triangle budget of the drawer.
NodePath get_root()
Returns the root NodePath.
MeshDrawer2D()
Creates the MeshDrawer2D low level system.
void set_clip(PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h)
Sets the clipping rectangle.
void end()
Finish the drawing and clearing off the remaining vertexes.
void begin()
Opens up the geom for drawing, don't forget to call MeshDrawer2D::end()
void quad_raw(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, const LVector3 &v4, const LVector4 &c4, const LVector2 &uv4)
Draws a 2D rectangle.
void rectangle_border_tiled(PN_stdfloat x, PN_stdfloat y, PN_stdfloat w, PN_stdfloat h, PN_stdfloat r, PN_stdfloat t, PN_stdfloat l, PN_stdfloat b, PN_stdfloat tr, PN_stdfloat tt, PN_stdfloat tl, PN_stdfloat tb, PN_stdfloat u, PN_stdfloat v, PN_stdfloat us, PN_stdfloat vs, const LVector4 &color)
Draws a 2d rectangle, with borders and corders, taken from the surrounding texture.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
TypeHandle is the identifier used to differentiate C++ class types.
static void init_type()
This function is declared non-inline to work around a compiler bug in g++ 2.96.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.