Conditions | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
1 | import sdl2 as sdl |
||
33 | @window.setter |
||
34 | def window(self, window): |
||
35 | # this mainly exists because we need the sdl window object |
||
36 | # to be able to create a context |
||
37 | self._window = window |
||
38 | if self.context == None: |
||
39 | # Create context |
||
40 | self.context = sdl.SDL_GL_CreateContext(self._window.window) |
||
41 | |||
43 |