VR-Forces 4.7 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 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)