Raito 0.1
Loading...
Searching...
No Matches
Raito::Window Namespace Reference

Functions

bool Initialize (Renderer::API api, const WindowInfo &defaultInfo)
 
bool Update ()
 
void Shutdown ()
 
u32 CreateNewWindow (const WindowInfo &info)
 
SysWindowGetWindow (const u32 id)
 
void SetFullScreen (bool value)
 
void SetVSync (bool value)
 

Function Documentation

◆ CreateNewWindow()

u32 Raito::Window::CreateNewWindow ( const WindowInfo & info)

Creates a window and returns the id

Parameters
infoThe information for the window to be created
Returns
ID of the created window

◆ GetWindow()

SysWindow & Raito::Window::GetWindow ( const u32 id = 0)

Returns the window with a given ID

Parameters
idID of the window to get returned
Returns
Window of the given ID

◆ Initialize()

bool Raito::Window::Initialize ( Renderer::API api,
const WindowInfo & defaultInfo = {} )

Initialization function for the window module

Parameters
apiGraphics API of the application
defaultInfoWindow information for the main window
Returns
Boolean indicating success value

◆ SetFullScreen()

void Raito::Window::SetFullScreen ( bool value)

Sets the main window to be on fullscreen mode

Parameters
valueof the fullscreen mode

◆ SetVSync()

void Raito::Window::SetVSync ( bool value)

Sets the main window V-Sync mode

Parameters
V-Syncvalue

◆ Shutdown()

void Raito::Window::Shutdown ( )

Shutdown function for the window module Deletes all the created windows

◆ Update()

bool Raito::Window::Update ( )

EndTimeUpdate function for the window module Polls the events for all the windows

Returns
Boolean indicating success value