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 class GR_MaterialAtlas;
17 class GR_Uniforms;
18 
20 {
21 public:
22  const GR_DisplayOption *opts = nullptr;
23  const RE_MaterialAtlas *materials = nullptr;
24  const GR_MaterialAtlas *vk_materials = nullptr; // Vulkan
25  int default_mat_id = -1;
27  bool draw_instanced = true;
28  int instance_group = 0;
29  bool hide_obj_instances = false;
30  bool allow_tinting = true;
31  bool force_visible = false;
32  bool pack_selection = false;
33 
35  const RE_MaterialAtlas *m,
36  const GR_MaterialAtlas *vm,
37  int def_mat_id,
38  int vk_def_mat_id,
39  bool inst,
40  int inst_group,
41  bool hide_inst = false,
42  bool allow_tint = true,
43  bool force_vis = false)
44  : draw_instanced(inst),
45  opts(o),
46  materials(m),
47  vk_materials(vm),
48  default_mat_id(def_mat_id),
49  vk_default_mat_id(vk_def_mat_id),
50  instance_group(inst_group),
51  hide_obj_instances(hide_inst),
52  allow_tinting(true),
53  force_visible(force_vis),
54  pack_selection(false)
55  {}
56 };
57 
58 #endif
const GR_MaterialAtlas * vk_materials
Definition: GR_DrawParms.h:24
bool hide_obj_instances
Definition: GR_DrawParms.h:29
int instance_group
Definition: GR_DrawParms.h:28
bool allow_tinting
Definition: GR_DrawParms.h:30
const GR_DisplayOption * opts
Definition: GR_DrawParms.h:22
bool force_visible
Definition: GR_DrawParms.h:31
const RE_MaterialAtlas * materials
Definition: GR_DrawParms.h:23
int vk_default_mat_id
Definition: GR_DrawParms.h:26
GR_DrawParms(const GR_DisplayOption *o, const RE_MaterialAtlas *m, const GR_MaterialAtlas *vm, int def_mat_id, 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:34
int default_mat_id
Definition: GR_DrawParms.h:25
bool draw_instanced
Definition: GR_DrawParms.h:27
bool pack_selection
Definition: GR_DrawParms.h:32