Specify ctx type

This commit is contained in:
Grant Sanderson
2023-01-28 15:40:58 -08:00
parent 0d36f17f9c
commit 28c4921a1a

View File

@ -72,9 +72,9 @@ class Camera(object):
def init_context(self) -> None:
if self.window is None:
self.ctx = moderngl.create_standalone_context()
self.ctx: moderngl.Context = moderngl.create_standalone_context()
else:
self.ctx = self.window.ctx
self.ctx: moderngl.Context = self.window.ctx
self.ctx.enable(moderngl.PROGRAM_POINT_SIZE)
self.ctx.enable(moderngl.BLEND)