-
Notifications
You must be signed in to change notification settings - Fork 234
Expand file tree
/
Copy pathpersistent_value.cpp
More file actions
29 lines (26 loc) · 1.25 KB
/
persistent_value.cpp
File metadata and controls
29 lines (26 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2017-2023, Nicholas Sharp and the Polyscope contributors. https://polyscope.run
#include "polyscope/persistent_value.h"
#include "polyscope/render/color_maps.h"
namespace polyscope {
namespace detail {
// storage for persistent value global caches
// clang-format off
PersistentCache<double> persistentCache_double;
PersistentCache<float> persistentCache_float;
PersistentCache<bool> persistentCache_bool;
PersistentCache<std::string> persistentCache_string;
PersistentCache<glm::vec2> persistentCache_glmvec2;
PersistentCache<glm::vec3> persistentCache_glmvec3;
PersistentCache<glm::mat4> persistentCache_glmmat4;
PersistentCache<ScaledValue<double>> persistentCache_scaleddouble;
PersistentCache<ScaledValue<float>> persistentCache_scaledfloat;
PersistentCache<std::vector<std::string>> persistentCache_vectorstring;
PersistentCache<ParamVizStyle> persistentCache_paramVizStyle;
PersistentCache<BackFacePolicy> persistentCache_BackFacePolicy;
PersistentCache<MeshShadeStyle> persistentCache_MeshNormalType;
PersistentCache<FilterMode> persistentCache_FilterMode;
PersistentCache<IsolineStyle> persistentCache_IsolineStyle;
PersistentCache<MeshSelectionMode> persistentCache_MeshSelectionMode;
// clang-format on
} // namespace detail
} // namespace polyscope