VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
DtInstanceState.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 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
:
72
osg::Matrixf
l2wOri
;
73
75
osg::Vec3f
colorFilter
;
76
78
unsigned
short
cullDataOffset
;
79
81
ArrayRange
dofRange
;
82
84
ArrayRange
switchRange
;
85
87
ArrayRange
sequenceRange
;
88
90
ArrayRange
drawableRange
;
91
93
ArrayRange
lodRange
;
94
96
ArrayRange
lightRange
;
97
99
ArrayRange
uvOffsetRange
;
100
102
unsigned
short
templateIndex
;
103
105
bool
isModelScalingEnabled
;
106
};
107
}
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)