main module¶
This module initializes the main graphics application
- class main.GraphicsEngine(win_size=(1600, 900))[source]¶
Bases:
objectMain graphics engine that initializes OpenGL context, manages game loop, and coordinates all rendering components.
Handles window creation, input processing, and rendering pipeline execution.
- check_events()[source]¶
Process PyGame events and handle window close/escape key.
Cleans up resources and exits application when quit event occurs.
- get_time()[source]¶
Update current time in seconds since application start.
Converts milliseconds to seconds for consistent time units.