Framebuffer Size Callback
- property Window.framebuffer_size_callback: callable
Callback executed when the window’s framebuffer size changes.
It receives the new size of the window’s framebuffer.
def framebuffer_size_callback(width: float, height: float) -> None: # code here
- Raises
TypeError – callback must be callable
ValueError – callback function must take 2 arguments
- Return type
callable