VR-Forces 4.3.1 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 
34  unsigned offset;
35 
37  unsigned count;
38  };
39 
41  typedef osg::Matrixf InstanceMatrix;
42  typedef float InstanceMatrixVal;
43 
47  {
48  osg::Vec3d l2wPos;
49  osg::Vec3f boundingCenter;
51  unsigned int nodeMask;
52  short modelSet;
53 
55  unsigned short templateIndex;
56 
57  bool visible;
58  };
59 
63  {
64  public:
66  osg::Matrixf l2wOri;
67 
69  osg::Vec3f colorFilter;
70 
72  unsigned short cullDataOffset;
73 
76 
79 
82 
85 
88 
91 
94 
96  unsigned short templateIndex;
97  };
98 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)