-
Notifications
You must be signed in to change notification settings - Fork 233
Expand file tree
/
Copy pathpersistent_value.cpp
More file actions
23 lines (20 loc) · 924 Bytes
/
persistent_value.cpp
File metadata and controls
23 lines (20 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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<float> persistentCache_float;
PersistentCache<bool> persistentCache_bool;
PersistentCache<std::string> persistentCache_string;
PersistentCache<glm::vec3> persistentCache_glmvec3;
PersistentCache<glm::mat4> persistentCache_glmmat4;
PersistentCache<ScaledValue<float>> persistentCache_scaledfloat;
PersistentCache<std::vector<std::string>> persistentCache_vectorstring;
PersistentCache<ParamVizStyle> persistentCache_paramVizStyle;
PersistentCache<BackFacePolicy> persistentCache_BackFacePolicy;
PersistentCache<MeshShadeStyle> persistentCache_MeshNormalType;
// clang-format on
} // namespace detail
} // namespace polyscope