-
Notifications
You must be signed in to change notification settings - Fork 232
Expand file tree
/
Copy pathinternal.h
More file actions
61 lines (42 loc) · 1.47 KB
/
internal.h
File metadata and controls
61 lines (42 loc) · 1.47 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright 2017-2023, Nicholas Sharp and the Polyscope contributors. https://polyscope.run
#pragma once
#include <cstdint>
#include <string>
#include "polyscope/scaled_value.h"
#include "polyscope/types.h"
namespace polyscope {
// forward declaration
class FloatingQuantityStructure;
namespace internal {
// == Various nitty-gritty internal details of Polyscope, which end users certainly should not touch or depend on.
// Get a unique identifier
uint64_t getNextUniqueID();
// How many layers deep in the polyscope context stack are we
extern int contextStackSize;
// track various fire-once warnings
extern bool& pointCloudEfficiencyWarningReported;
// global members
extern FloatingQuantityStructure*& globalFloatingQuantityStructure;
// == UI and layout related
extern float imguiStackMargin;
extern float lastWindowHeightPolyscope;
extern float lastWindowHeightUser;
extern float lastRightSideFreeX;
extern float lastRightSideFreeY;
extern float leftWindowsWidth;
extern float rightWindowsWidth;
// Cached versions of lazy properties used for updates
namespace lazy {
extern TransparencyMode transparencyMode;
extern ProjectionMode projectionMode;
extern int transparencyRenderPasses;
extern int ssaaFactor;
extern float uiScale;
extern bool groundPlaneEnabled;
extern GroundPlaneMode groundPlaneMode;
extern ScaledValue<float> groundPlaneHeightFactor;
extern int shadowBlurIters;
extern float shadowDarkness;
} // namespace lazy
} // namespace internal
} // namespace polyscope