VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCacheSettingsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtCacheSettingsRecord.h,v $ $Revision: 1.3 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
15 
16 namespace makArchives
17 {
21  {
22  public:
25 
28 
30  DtCacheSettingsRecord& operator=(const DtCacheSettingsRecord& orig);
31 
34 
36  void setAccelerationCachingEnabled(bool enabled);
37 
39  bool accelerationCachingEnabled() const;
40 
42  void setInstancingEnabled(bool enabled);
43 
45  bool instancingEnabled() const;
46 
48  void setCompressTextures(bool enabled);
49 
51  bool compressTextures() const;
52 
54  void setClearInstancesOnNewScene(bool enabled);
55 
57  bool clearInstancesOnNewScene() const;
58 
59  protected:
60 
61  friend class boost::serialization::access;
62 
66  template<class Archive>
67  void serialize(Archive & ar, const unsigned int version)
68  {
69 
70  if (version >= 2)
71  {
72  ar & BOOST_SERIALIZATION_NVP(myCachingEnabled);
73  }
74 
75  if (version >= 3)
76  {
77  ar & BOOST_SERIALIZATION_NVP(myCompressTextures);
78  }
79 
80  if (version >= 4)
81  {
82  ar & BOOST_SERIALIZATION_NVP(myInstancingEnabled);
83  }
84 
85  if (version >= 5)
86  {
87  ar & BOOST_SERIALIZATION_NVP(myClearInstancesOnNew);
88  }
89  }
90 
95  };
96 }
97 
bool myInstancingEnabled
Definition: DtCacheSettingsRecord.h:93
bool myClearInstancesOnNew
Definition: DtCacheSettingsRecord.h:94
bool myCachingEnabled
Definition: DtCacheSettingsRecord.h:91
Contains DLL export macros.
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 2)
Record for the settings associated with the VRV caching.
Definition: DtCacheSettingsRecord.h:20
bool myCompressTextures
Definition: DtCacheSettingsRecord.h:92
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the &amp; operator is defined similar to &lt;&lt;...
Definition: DtCacheSettingsRecord.h:67

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)