| 8 | |
| 9 | |
| 10 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected