29class EXPCL_PANDA_GRUTIL CardMaker :
public Namable {
31 INLINE
explicit CardMaker(
const std::string &name);
35 void set_uv_range(
const LTexCoord &ll,
const LTexCoord &ur);
36 void set_uv_range(
const LTexCoord &ll,
const LTexCoord &lr,
const LTexCoord &ur,
const LTexCoord &ul);
37 void set_uv_range(
const LTexCoord3 &ll,
const LTexCoord3 &lr,
const LTexCoord3 &ur,
const LTexCoord3 &ul);
38 void set_uv_range(
const LVector4 &x,
const LVector4 &y,
const LVector4 &z);
45 INLINE
void set_frame(PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top);
46 INLINE
void set_frame(
const LVecBase4 &frame);
47 INLINE
void set_frame(
const LVertex &ll,
const LVertex &lr,
const LVertex &ur,
const LVertex &ul);
50 INLINE
void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a);
51 INLINE
void set_color(
const LColor &color);
64 bool _has_uvs, _has_3d_uvs;
65 LVertex _ul_tex, _ll_tex, _lr_tex, _ur_tex;
66 LTexCoord3 _ul_pos, _ll_pos, _lr_pos, _ur_pos;
74 LVecBase4 _source_frame;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_uv_range_cube(int face)
Sets the range of UV's that will be applied to the vertices appropriately for a cube-map face.
void set_has_uvs(bool flag)
Sets the flag indicating whether vertices will be generated with UV's 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 clear_source_geometry()
Removes the node specified by an earlier call to set_source_geometry().
void clear_color()
Unsets the color of the card.
void reset()
Resets all the parameters to their initial defaults.
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...
void set_source_geometry(PandaNode *node, const LVecBase4 &frame)
Sets a node that will be copied (and scaled and translated) to generate the frame,...
void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a)
Sets the color of the card.
void set_uv_range(const LTexCoord &ll, const LTexCoord &ur)
Sets the range of UV's that will be applied to the vertices.
void set_frame(PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top)
Sets the size of the card.
void set_has_normals(bool flag)
Sets the flag indicating whether vertices will be generated with normals or not.
A basic node of the scene graph or data graph.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
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.