gwnavruntime/visualsystem/visualgeometrysetupconfig.h Source File

visualgeometrysetupconfig.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 
9 
10 // primary contact: GUAL - secondary contact: MAMU
11 #ifndef Navigation_VisualGeometrySetupConfig_H
12 #define Navigation_VisualGeometrySetupConfig_H
13 
15 
16 
17 namespace Kaim
18 {
19 
22 {
23 public:
25  void ResetAllButNormaleGeneration();
26  void Reset();
27 public: // Internal
28  KyUInt32 m_opaqueTriangleCount;
29  KyUInt32 m_transparentTriangleCount;
30  KyUInt32 m_lineCount;
31  KyUInt32 m_textCount;
32  bool m_generateNormals;
33 };
34 
35 
36 KY_INLINE VisualGeometrySetupConfig::VisualGeometrySetupConfig() { Reset(); }
37 KY_INLINE void VisualGeometrySetupConfig::Reset()
38 {
39  ResetAllButNormaleGeneration();
40  m_generateNormals = false;
41 }
42 KY_INLINE void VisualGeometrySetupConfig::ResetAllButNormaleGeneration()
43 {
44  m_opaqueTriangleCount = 0;
45  m_transparentTriangleCount = 0;
46  m_lineCount = 0;
47  m_textCount = 0;
48 }
49 
50 }
51 
52 
53 #endif //Navigation_VisualGeometrySetupConfig_H
The VisualGeometrySetupConfig class is used to configure an object that derives from IVisualGeometry...
Definition: visualgeometrysetupconfig.h:21
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
bool m_generateNormals
Indicates whether or not the IVisualGeometry has computed the normals ot the triangles.
Definition: visualgeometrysetupconfig.h:34