VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCullShaderConfig.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <bitset>
15 
16 namespace makVrv
17 {
22  {
23  public:
24  typedef std::bitset<5> KeyType;
25  public:
26 
42  DtCullShaderConfig(bool viewFrustumCulling, bool lodChecking, bool useInstanceCount, bool debugCulling);
43 
46 
49 
53  DtCullShaderConfig &operator=(const DtCullShaderConfig &other);
54  public:
56  virtual bool operator==(const DtCullShaderConfig& rhs) const;
57 
59  virtual bool operator!=(const DtCullShaderConfig& rhs) const;
60 
63  virtual bool useInstanceCount(void) const;
64  virtual bool viewFrustumCulling(void) const;
65  virtual bool lodChecking(void) const;
66  virtual bool debugCulling(void) const;
67  virtual bool oceanCulling() const;
69 
72  virtual void setUseInstanceCount(bool val);
73  virtual void setViewFrustumCulling(bool val);
74  virtual void setLodChecking(bool val);
75  virtual void setDebugCulling(bool val);
76  virtual void setOceanCulling(bool val);
78 
80  virtual KeyType computeHash(void) const;
81 
82  bool operator() (const DtCullShaderConfig::KeyType& lhs, const KeyType& rhs) const {
83  return lhs.to_ulong() < rhs.to_ulong();
84  }
85  protected:
91  };
92 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
bool myViewFrustumCulling
Definition: DtCullShaderConfig.h:86
shader configuration storage class. Has 3 available options which are described in the constructor&#39;s ...
Definition: DtCullShaderConfig.h:21
bool myLodChecking
Definition: DtCullShaderConfig.h:87
bool myOceanCulling
Definition: DtCullShaderConfig.h:90
bool myDebugCulling
Definition: DtCullShaderConfig.h:89
bool myUseInstanceCount
Definition: DtCullShaderConfig.h:88
std::bitset< 5 > KeyType
Definition: DtCullShaderConfig.h:24
bool operator==(const DtTextureAtlasIndexParser::StringOrFloatAttrib &lhs, const DtTextureAtlasIndexParser::StringOrFloatAttrib &rhs)
needed for search comparison code
Definition: DtTextureAtlasIndexParser.h:160
Contains DLL export macros.
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)