14 #ifndef MESHDRAWER2D_H 15 #define MESHDRAWER2D_H 50 INLINE
void set_budget(
int budget);
51 INLINE
int get_budget();
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);
67 INLINE
void rectangle(
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);
72 void rectangle_border(
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);
79 void rectangle_border_tiled(
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
This class allows the drawing of 2d objects - mainly based on quads and rectangles.
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.
This is an abstract base class for a family of classes that represent the fundamental geometry primit...
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A container for geometry primitives.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Defines a series of disconnected triangles.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A node that holds Geom objects, renderable pieces of geometry.
This object provides the functionality of both a GeomVertexReader and a GeomVertexWriter,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.