main module

This module initializes the main graphics application

class main.GraphicsEngine(win_size=(1600, 900))[source]

Bases: object

Main 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.

render()[source]

Clear framebuffer, render scene, and swap buffers.

Sets background color and executes complete rendering pipeline.

run()[source]

Main game loop that updates time, processes events, updates camera, and renders scene.

Runs at 60 FPS and maintains consistent delta time for smooth animations.