VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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  {
77 
78  }
79 
81  osg::Matrixf l2wOri;
82 
84  osg::Vec3f colorFilter;
85 
87  unsigned short cullDataOffset;
88 
91 
94 
97 
100 
103 
106 
109 
111  unsigned short templateIndex;
112 
115 
117  float scale;
118  };
119 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)