Berserk
Public Member Functions | List of all members
WindowManager Class Referenceabstract

Manager for OS windows. More...

#include <WindowManager.hpp>

Inheritance diagram for WindowManager:
Inheritance graph
[legend]

Public Member Functions

virtual BRK_API ~WindowManager ()=default
 
virtual BRK_API Ref< WindowCreateWindow (const StringName &name, const Size2i &size, const String &title)=0
 CreateFromImage new OS native rendering window. More...
 
virtual BRK_API Ref< WindowGetPrimaryWindow ()=0
 

Detailed Description

Manager for OS windows.

Constructor & Destructor Documentation

◆ ~WindowManager()

virtual BRK_API WindowManager::~WindowManager ( )
virtualdefault

Member Function Documentation

◆ CreateWindow()

virtual BRK_API Ref<Window> WindowManager::CreateWindow ( const StringName name,
const Size2i size,
const String title 
)
pure virtual

CreateFromImage new OS native rendering window.

Creates new window object with specified properties. Automatically initializes rendering context of window, so it is ready for actual rendering.

Note
Must be called on the main (game) thread
Parameters
nameUnique name of the window in the engine
sizeSize of the window in units
titleWindow title to set
Returns
Created window; null if failed to create or if name is not unique

Implemented in GlfwWindowManager.

◆ GetPrimaryWindow()

virtual BRK_API Ref<Window> WindowManager::GetPrimaryWindow ( )
pure virtual
Returns
Returns primary window of the engine

Implemented in GlfwWindowManager.


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