VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
DtInstanceState.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrvOsg/vrvOsg.h
>
12
13
#include <osg/Matrixf>
14
#include <osg/Vec3d>
15
16
namespace
makVrv
17
{
20
struct
ArrayRange
21
{
23
ArrayRange
(
unsigned
_offset,
unsigned
_count)
24
:
offset
(_offset)
25
,
count
(_count)
26
{
27
28
}
29
31
ArrayRange
()
32
:
offset
(0)
33
,
count
(0)
34
{
35
36
}
37
39
unsigned
int
offset
;
40
42
unsigned
int
count
;
43
};
44
46
typedef
osg::Matrixf
InstanceMatrix
;
47
typedef
float
InstanceMatrixVal
;
48
51
struct
DT_DLL_VRVOSG
InstanceCullData
52
{
53
osg::Vec3d
l2wPos
;
54
osg::Vec3f
boundingCenter
;
55
float
boundingRadius
;
56
unsigned
int
nodeMask
;
57
short
modelSet
;
58
60
unsigned
short
templateIndex
;
61
62
bool
visible
;
63
bool
isProp
;
64
};
65
68
struct
DT_DLL_VRVOSG
DtInstanceState
69
{
70
public
:
71
73
DtInstanceState
()
74
: isModelScalingEnabled(true)
75
, scale(1.0f)
76
, cullDataOffset(0)
77
, templateIndex(0)
78
{
79
80
}
81
83
osg::Matrixf
l2wOri
;
84
86
osg::Vec3f
colorFilter
;
87
89
unsigned
short
cullDataOffset
;
90
92
ArrayRange
dofRange
;
93
95
ArrayRange
switchRange
;
96
98
ArrayRange
sequenceRange
;
99
101
ArrayRange
drawableRange
;
102
104
ArrayRange
lodRange
;
105
107
ArrayRange
lightRange
;
108
110
ArrayRange
uvOffsetRange
;
111
113
ArrayRange
lightPointRange
;
114
116
unsigned
short
templateIndex
;
117
119
bool
isModelScalingEnabled
;
120
122
float
scale
;
123
};
124
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)