14 #ifndef MULTITEXREDUCER_H 15 #define MULTITEXREDUCER_H 53 INLINE
void scan(
const NodePath &node);
59 void set_use_geom(
bool use_geom);
60 void set_allow_tex_mat(
bool allow_tex_mat);
70 INLINE
bool operator < (
const StageInfo &other)
const;
113 void record_stage_list(
const StageList &stage_list,
114 const GeomInfo &geom_info);
116 size_t choose_model_stage(
const StageList &stage_list)
const;
117 bool determine_uv_range(LTexCoord &min_uv, LTexCoord &max_uv,
118 const StageInfo &model_stage,
121 void get_uv_scale(LVecBase2 &uv_scale, LVecBase2 &uv_trans,
122 const LTexCoord &min_uv,
const LTexCoord &max_uv)
const;
124 void choose_texture_size(
int &x_size,
int &y_size,
125 const StageInfo &model_stage,
126 const LVecBase2 &uv_scale,
129 void make_texture_layer(
const NodePath &render,
130 const StageInfo &stage_info,
132 const LTexCoord &min_uv,
const LTexCoord &max_uv,
133 bool force_use_geom,
bool transparent_base);
135 const GeomList &geom_list,
bool preserve_color);
137 void scan_color(
const GeomList &geom_list, LColor &geom_color,
138 int &num_colors)
const;
139 bool scan_decal(
const StageList &stage_list)
const;
A basic node of the scene graph or data graph.
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.
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.
This object presents an interface for generating new texture images that represent the combined image...
Indicates the set of TextureStages and their associated Textures that should be applied to (or remove...
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a base class for the various different classes that represent the result of a frame of render...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Encodes a string name in a hash table, mapping it to a pointer.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
Applies a transform matrix to UV's before they are rendered.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Defines the properties of a named stage of the multitexture pipeline.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
A node that holds Geom objects, renderable pieces of geometry.