OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
MainWindow Class Reference

Main application window handling game rendering and input. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:

Public Member Functions

 MainWindow (Tempest::Device &device)
 Constructs the main window.
 
 ~MainWindow () override
 
float uiScale () const
 Returns the current UI scaling factor.
 

Detailed Description

Main application window handling game rendering and input.

MainWindow is the primary window class that manages the game's rendering loop, user input handling, UI composition, and game state transitions. It coordinates between the renderer, game session, and various UI components (menus, dialogs, inventory, etc.).

Definition at line 58 of file mainwindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( Tempest::Device &  device)
explicit

Constructs the main window.

Parameters
deviceThe graphics device used for rendering

Definition at line 31 of file mainwindow.cpp.

◆ ~MainWindow()

MainWindow::~MainWindow ( )
override

Definition at line 116 of file mainwindow.cpp.

Member Function Documentation

◆ uiScale()

float MainWindow::uiScale ( ) const

Returns the current UI scaling factor.

Returns
Scale factor based on system DPI settings

Definition at line 134 of file mainwindow.cpp.


The documentation for this class was generated from the following files: