VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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 
52  {
53  osg::Vec3d l2wPos;
54  osg::Vec3f boundingCenter;
56  unsigned int nodeMask;
57  short modelSet;
58 
60  unsigned short templateIndex;
61 
62  bool visible;
63  bool isProp;
64  };
65 
69  {
70  public:
71 
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 
93 
96 
99 
102 
105 
108 
111 
114 
116  unsigned short templateIndex;
117 
120 
122  float scale;
123  };
124 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)