HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GR_DrawParms.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GR_DrawParms.h ( GR Library, C++)
7  *
8  * COMMENTS:
9  * Parameter class containing all parameters for GR_Primitive::draw()
10  */
11 #ifndef GR_DrawParms_h
12 #define GR_DrawParms_h
13 
14 class GR_DisplayOption;
15 class RE_MaterialAtlas;
16 
18 {
19 public:
29 
31  const RE_MaterialAtlas *m,
32  int def_mat_id,
33  bool inst,
34  int inst_group,
35  bool hide_inst = false,
36  bool allow_tint = true,
37  bool force_vis = false)
38  : draw_instanced(inst),
39  opts(o),
40  materials(m),
41  default_mat_id(def_mat_id),
42  instance_group(inst_group),
43  hide_obj_instances(hide_inst),
44  allow_tinting(true),
45  force_visible(force_vis),
46  pack_selection(false)
47  {}
48 };
49 
50 #endif
bool hide_obj_instances
Definition: GR_DrawParms.h:25
int instance_group
Definition: GR_DrawParms.h:24
bool allow_tinting
Definition: GR_DrawParms.h:26
const GR_DisplayOption * opts
Definition: GR_DrawParms.h:20
GR_DrawParms(const GR_DisplayOption *o, const RE_MaterialAtlas *m, int def_mat_id, bool inst, int inst_group, bool hide_inst=false, bool allow_tint=true, bool force_vis=false)
Definition: GR_DrawParms.h:30
bool force_visible
Definition: GR_DrawParms.h:27
const RE_MaterialAtlas * materials
Definition: GR_DrawParms.h:21
int default_mat_id
Definition: GR_DrawParms.h:22
bool draw_instanced
Definition: GR_DrawParms.h:23
bool pack_selection
Definition: GR_DrawParms.h:28