-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathenums.py
More file actions
31 lines (23 loc) · 752 Bytes
/
enums.py
File metadata and controls
31 lines (23 loc) · 752 Bytes
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
from enum import IntEnum, StrEnum
class RenderQueue(IntEnum):
# Defaults by PyGfx
background = 1000
opaque = 2000
opaque_with_discard = 2400
auto = 2600
transparent = 3000
overlay = 4000
# For axes and selectors we use a higher render_queue, so they get rendered later than
# the graphics. Axes (rulers) have depth_compare '<=' and selectors don't compare depth.
axes = 3400 # still in 'object' group
selector = 3600 # considered in 'overlay' group
class ColorspacesRGB(StrEnum):
srgb = "srgb"
tex_srgb = "tex-srgb"
physical = "physical"
class ColorspacesYUV(StrEnum):
yuv420p = "yuv420p"
yuv444p = "yuv444p"
class ColorRange(StrEnum):
full = "full"
limited = "limited"