Skip to content

Commit

Permalink
update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
szabolcsdombi committed Oct 9, 2024
1 parent 033ec94 commit e1077ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zengl-stubs/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ class Context:
includes: Dict[str, str]
frame_time: int
screen: int
loader: ContextLoader
lost: bool
def buffer(
self,
data: Data | None = None,
Expand Down Expand Up @@ -351,6 +353,7 @@ class Context:
def new_frame(self, reset: bool = True, clear: bool = True, frame_time: bool = False) -> None: ...
def end_frame(self, clean: bool = True, flush: bool = True, sync: bool = False) -> None: ...
def release(self, obj: Buffer | Image | Pipeline | Literal['shader_cache'] | Literal['all']) -> None: ...
def gc(self) -> List[Buffer | Image | Pipeline]: ...

def init(loader: ContextLoader | None = None): ...
def context() -> Context: ...
Expand All @@ -375,5 +378,3 @@ def bind(
) -> List[VertexBufferBinding]: ...
def calcsize(layout: str) -> int: ...
def loader(headless: bool = False) -> ContextLoader: ...

default_loader: ContextLoader | None = None

0 comments on commit e1077ad

Please sign in to comment.