Skip to content

Commit a766597

Browse files
committed
added init_window_v(size: Union[Vector2, Seq], title: AnyStr) -> None
1 parent 76a7d9a commit a766597

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

raylibpy/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,6 +2313,12 @@ def init_window(width: int, height: int, title: AnyStr) -> None:
23132313
return _rl.InitWindow(_int(width), _int(height), _str_in(title))
23142314

23152315

2316+
def init_window_v(size: Union[Vector, Seq], title: AnyStr) -> None:
2317+
"""Initialize window (with a sequence type as size) and OpenGL context"""
2318+
size = _vec2(size)
2319+
init_window(size.x, size.y, title)
2320+
2321+
23162322
_rl.CloseWindow.argtypes = _NOARGS
23172323
_rl.CloseWindow.restype = None
23182324
def close_window() -> None:

0 commit comments

Comments
 (0)