Copperfield Engine 0.1
C++ Game Engine
Loading...
Searching...
No Matches
Window Class Reference

Creates and updates a window. More...

#include <window.hpp>

Public Member Functions

 Window (const Window &)=delete
 Copy constructor (deleted).
 
 Window (Window &&) noexcept
 Move constructor.
 
Windowoperator= (const Window &)=delete
 Copy assignment operator (deleted).
 
Windowoperator= (Window &&) noexcept
 Move assignment operator. More...
 
bool isDone ()
 Checks if the user wants to close the window and performs internal frame updates. More...
 

Static Public Member Functions

static Window Make (Engine &engine, int width, int height, const std::string &title)
 Creates a window. More...
 

Detailed Description

Creates and updates a window.

Member Function Documentation

◆ isDone()

bool Window::isDone ( )

Checks if the user wants to close the window and performs internal frame updates.

Returns
True if the user wants to close the window.

◆ Make()

static Window Window::Make ( Engine engine,
int  width,
int  height,
const std::string &  title 
)
static

Creates a window.

Parameters
engineEngine needed for internal operations.
widthWindow width in pixels.
heightWindow height in pixels.
titleName of the window.
Returns
A Window object.

◆ operator=()

Window & Window::operator= ( Window &&  )
noexcept

Move assignment operator.

Returns