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 
44  DtCullShaderConfig(bool viewFrustumCulling, bool lodChecking, bool useInstanceCount, bool debugCulling);
45 
48 
51 
55  DtCullShaderConfig &operator=(const DtCullShaderConfig &other);
56  public:
58  virtual bool operator==(const DtCullShaderConfig& rhs) const;
59 
61  virtual bool operator!=(const DtCullShaderConfig& rhs) const;
62 
65  virtual bool useInstanceCount(void) const;
66  virtual bool viewFrustumCulling(void) const;
67  virtual bool lodChecking(void) const;
68  virtual bool debugCulling(void) const;
69  virtual bool oceanCulling() const;
71 
74  virtual void setUseInstanceCount(bool val);
75  virtual void setViewFrustumCulling(bool val);
76  virtual void setLodChecking(bool val);
77  virtual void setDebugCulling(bool val);
78  virtual void setOceanCulling(bool val);
80 
82  virtual KeyType computeHash(void) const;
83 
84  bool operator() (const DtCullShaderConfig::KeyType& lhs, const KeyType& rhs) const {
85  return lhs.to_ulong() < rhs.to_ulong();
86  }
87  protected:
93  };
94 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
bool myViewFrustumCulling
Definition: DtCullShaderConfig.h:88
shader configuration storage class. Has 3 available options which are described in the constructor&#39;s ...
Definition: DtCullShaderConfig.h:21
bool operator==(const DtMilStdKeyParams &a, const DtMilStdKeyParams &b)
Memberwise equality for DtMilStdKeyParams. Used by callers (e.g. DtMilStdIconVisualizer) to skip key ...
Definition: DtMilStdManagerInterface.h:58
bool operator!=(const DtMilStdKeyParams &a, const DtMilStdKeyParams &b)
Memberwise inequality for DtMilStdKeyParams.
Definition: DtMilStdManagerInterface.h:72
bool myLodChecking
Definition: DtCullShaderConfig.h:89
bool myOceanCulling
Definition: DtCullShaderConfig.h:92
bool myDebugCulling
Definition: DtCullShaderConfig.h:91
bool myUseInstanceCount
Definition: DtCullShaderConfig.h:90
std::bitset< 5 > KeyType
Definition: DtCullShaderConfig.h:24
Contains DLL export macros.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)