VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectOpenGLState.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
17 
18 namespace makVrv
19 {
24  {
25  public:
27  DtIndirectOpenGLState(bool cullFaceEnabled, const DtIndirectPolygonOffset& polyOffset);
28 
31 
34 
36  DtIndirectOpenGLState &operator=(const DtIndirectOpenGLState &other);;
37 
40 
41  public:
43  virtual bool cullFaceEnabled(void) const;
44 
46  virtual void setCullFaceEnabled(bool val);
47 
49  virtual void setPolygonOffset(const DtIndirectPolygonOffset& polyOffset);
50 
52  virtual const DtIndirectPolygonOffset& polygonOffset(void) const;
53 
56  virtual void apply(void) const;
57 
59  virtual const SetInts& modes(void) const;
60 
62  virtual const SetInts& attributes(void) const;
63 
67  bool operator==(const DtIndirectOpenGLState& rhs) const;
68 
70  bool operator!=(const DtIndirectOpenGLState& rhs) const;
71 
72  protected:
73 
76 
79  };
80 
82  std::ostream& operator <<(std::ostream& o, const DtIndirectOpenGLState& stateset);
83 
86  {
87  size_t operator()(const DtIndirectOpenGLState& key) const;
88  };
89 
90 }
std::set< int > SetInts
Definition: DtCommonTypes.h:22
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
non virtual Container class for holding on to the different states that are found for indirect geomet...
Definition: DtIndirectOpenGLState.h:23
size_t operator()(const DtIndirectOpenGLState &key) const
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(DtMessage &msg, const makVrf::DtNetworkMessageAgentInterface &)
Hasher for the concurrent_unordered_map.
Definition: DtIndirectOpenGLState.h:85
DtIndirectPolygonOffset myPolygonOffset
Definition: DtIndirectOpenGLState.h:75
SetInts mySetAttributes
Definition: DtIndirectOpenGLState.h:78
SetInts mySetModes
Definition: DtIndirectOpenGLState.h:77
bool myCullFaceEnabled
Definition: DtIndirectOpenGLState.h:74
bool operator==(const DtTextureAtlasIndexParser::StringOrFloatAttrib &lhs, const DtTextureAtlasIndexParser::StringOrFloatAttrib &rhs)
needed for search comparison code
Definition: DtTextureAtlasIndexParser.h:153
non virtual container class for defining a polygon offset state
Definition: DtIndirectPolygonOffset.h:18
Contains DLL export macros.
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
Contains the DtIndirectPolygonOffset class declaration.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)