VR-Forces 5.0.3 Developer's Guide
 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 
9 
10 #pragma once
12 
13 namespace makArchives
14 {
18  {
19  public:
22 
25 
27  DtCacheSettingsRecord& operator=(const DtCacheSettingsRecord& orig);
28 
31 
33  void setAccelerationCachingEnabled(bool enabled);
34 
36  bool accelerationCachingEnabled() const;
37 
39  void setInstancingEnabled(bool enabled);
40 
42  bool instancingEnabled() const;
43 
45  void setCompressTextures(bool enabled);
46 
48  bool compressTextures() const;
49 
51  void setClearInstancesOnNewScene(bool enabled);
52 
54  bool clearInstancesOnNewScene() const;
55 
56  protected:
57 
58  friend class boost::serialization::access;
59 
63  template<class Archive>
64  void serialize(Archive & ar, const unsigned int version)
65  {
66 
67  if (version >= 2)
68  {
69  ar & BOOST_SERIALIZATION_NVP(myCachingEnabled);
70  }
71 
72  if (version >= 3)
73  {
74  ar & BOOST_SERIALIZATION_NVP(myCompressTextures);
75  }
76 
77  if (version >= 4)
78  {
79  ar & BOOST_SERIALIZATION_NVP(myInstancingEnabled);
80  }
81 
82  if (version >= 5)
83  {
84  ar & BOOST_SERIALIZATION_NVP(myClearInstancesOnNew);
85  }
86  }
87 
92  };
93 }
94 
bool myInstancingEnabled
Definition: DtCacheSettingsRecord.h:90
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
bool myClearInstancesOnNew
Definition: DtCacheSettingsRecord.h:91
bool myCachingEnabled
Definition: DtCacheSettingsRecord.h:88
Contains DLL export macros.
Record for the settings associated with the VRV caching.
Definition: DtCacheSettingsRecord.h:17
bool myCompressTextures
Definition: DtCacheSettingsRecord.h:89
#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:64

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)