22 CardMaker(
const string &name) :
Namable(name) {
65 set_frame(PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top) {
79 set_frame(frame[0], frame[1], frame[2], frame[3]);
88 set_frame(
const LVertex &ll,
const LVertex &lr,
const LVertex &ur,
const LVertex &ul) {
113 set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a) {
161 _source_geometry = node;
162 _source_frame = frame;
A basic node of the scene graph or data graph.
void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a)
Sets the color of the card.
void set_frame(PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top)
Sets the size of the card.
void set_has_uvs(bool flag)
Sets the flag indicating whether vertices will be generated with UV's or not.
static LVector3f rfu(float right, float fwd, float up, CoordinateSystem cs=CS_default)
Returns a vector that is described by its right, forward, and up components, in whatever way the coor...
void set_frame_fullscreen_quad()
Sets the card to (-1,1,-1,1), which is appropriate if you plan to parent it to render2d and use it as...
A base class for all things which can have a name.
void clear_source_geometry()
Removes the node specified by an earlier call to set_source_geometry().
void set_source_geometry(PandaNode *node, const LVecBase4 &frame)
Sets a node that will be copied (and scaled and translated) to generate the frame, instead of generating a new polygon.
This is the base class for all three-component vectors and points.
void set_has_normals(bool flag)
Sets the flag indicating whether vertices will be generated with normals or not.
void set_has_3d_uvs(bool flag)
Sets the flag indicating whether vertices will be generated with 3-component UVW's (true) or 2-compon...
void reset()
Resets all the parameters to their initial defaults.