! create a window @param window_name: name of the window @param window_size: size of the window in pixels @param flags: window create options
(window_name: str, window_size, flags: int = AXES_ZBACKWARD_YUP)
| 153 | user_resource_locations = set() |
| 154 | |
| 155 | def window_create(window_name: str, window_size, flags: int = AXES_ZBACKWARD_YUP): |
| 156 | """! |
| 157 | create a window |
| 158 | @param window_name: name of the window |
| 159 | @param window_size: size of the window in pixels |
| 160 | @param flags: window create options |
| 161 | """ |
| 162 | if _ctx is None: |
| 163 | _init_ogre(window_name, window_size) |
| 164 | else: |
| 165 | _ctx.createWindow(window_name, *window_size) |
| 166 | |
| 167 | _init_window(_ctx.windows[window_name], flags) |
| 168 | |
| 169 | def window_draw(window_name: str) -> int: |
| 170 | """! |
nothing calls this directly
no test coverage detected