HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
19
class
GR_DrawParms
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;
26
int
vk_default_mat_id
= 0;
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
34
GR_DrawParms
(
const
GR_DisplayOption
*o,
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
GR_DrawParms::vk_materials
const GR_MaterialAtlas * vk_materials
Definition:
GR_DrawParms.h:24
GR_DrawParms::hide_obj_instances
bool hide_obj_instances
Definition:
GR_DrawParms.h:29
GR_DisplayOption
Definition:
GR_DisplayOption.h:35
GR_DrawParms::instance_group
int instance_group
Definition:
GR_DrawParms.h:28
GR_DrawParms::allow_tinting
bool allow_tinting
Definition:
GR_DrawParms.h:30
GR_DrawParms::opts
const GR_DisplayOption * opts
Definition:
GR_DrawParms.h:22
GR_DrawParms
Definition:
GR_DrawParms.h:19
GR_MaterialAtlas
Definition:
GR_Material.h:242
GR_DrawParms::force_visible
bool force_visible
Definition:
GR_DrawParms.h:31
GR_DrawParms::materials
const RE_MaterialAtlas * materials
Definition:
GR_DrawParms.h:23
GR_DrawParms::vk_default_mat_id
int vk_default_mat_id
Definition:
GR_DrawParms.h:26
RE_MaterialAtlas
Definition:
RE_Material.h:1050
GR_DrawParms::GR_DrawParms
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
GR_DrawParms::default_mat_id
int default_mat_id
Definition:
GR_DrawParms.h:25
GR_DrawParms::draw_instanced
bool draw_instanced
Definition:
GR_DrawParms.h:27
GR_DrawParms::pack_selection
bool pack_selection
Definition:
GR_DrawParms.h:32
GR
GR_DrawParms.h
Generated on Thu Nov 21 2024 02:43:35 for HDK by
1.8.6