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 GR_MaterialAtlas;
16 class GR_Uniforms;
17 
19 {
20 public:
21  const GR_DisplayOption *opts = nullptr;
22  const GR_MaterialAtlas *vk_materials = nullptr;
24  bool draw_instanced = true;
25  int instance_group = 0;
26  bool hide_obj_instances = false;
27  bool allow_tinting = true;
28  bool force_visible = false;
29  bool pack_selection = false;
30 
32  const GR_MaterialAtlas *vm,
33  int vk_def_mat_id,
34  bool inst,
35  int inst_group,
36  bool hide_inst = false,
37  bool allow_tint = true,
38  bool force_vis = false)
39  : draw_instanced(inst),
40  opts(o),
41  vk_materials(vm),
42  vk_default_mat_id(vk_def_mat_id),
43  instance_group(inst_group),
44  hide_obj_instances(hide_inst),
45  allow_tinting(true),
46  force_visible(force_vis),
47  pack_selection(false)
48  {}
49 };
50 
51 #endif
const GR_MaterialAtlas * vk_materials
Definition: GR_DrawParms.h:22
bool hide_obj_instances
Definition: GR_DrawParms.h:26
int instance_group
Definition: GR_DrawParms.h:25
bool allow_tinting
Definition: GR_DrawParms.h:27
const GR_DisplayOption * opts
Definition: GR_DrawParms.h:21
GR_DrawParms(const GR_DisplayOption *o, const GR_MaterialAtlas *vm, int vk_def_mat_id, bool inst, int inst_group, bool hide_inst=false, bool allow_tint=true, bool force_vis=false)
Definition: GR_DrawParms.h:31
bool force_visible
Definition: GR_DrawParms.h:28
int vk_default_mat_id
Definition: GR_DrawParms.h:23
set of parameters sent to GR_Primitive::update()
Definition: GR_Uniforms.h:56
bool draw_instanced
Definition: GR_DrawParms.h:24
bool pack_selection
Definition: GR_DrawParms.h:29