MCPcopy Create free account
hub / github.com/Blakkis/PyGLMaze / PPostTypes

Class PPostTypes

pymaze/post_processing.py:10–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10class PPostTypes:
11 PPOST_DEFAULT = 512
12 PPOST_FISHEYE = 513
13 PPOST_RADIALB = 514
14 PPOST_CROSSHA = 515
15 PPOST_THIRD3D = 516
16
17 #
18 current_shader = 0
19
20 @classmethod
21 def changeShader(cls, key_change):
22 all_count = len(cls.all_shaders)
23 cls.current_shader += key_change
24 cls.current_shader %= all_count
25
26 print(cls.getCurrentShaderID())
27
28 @classmethod
29 def getCurrentShaderID(cls):
30 return cls.PPOST_DEFAULT + cls.current_shader
31
32
33# Build list ordered list of all shaders and feed it back to the class

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected