YAGE  0.02
Yet Another Game Engine
yage::Window Class Reference

#include <window.hpp>

Public Member Functions

 Window ()
 
 Window (const Window &)=delete
 
 Window (Window &&)=delete
 
 ~Window ()
 destroys the window handle More...
 
Windowoperator= (const Window &)=delete
 
Windowoperator= (Window &&)=delete
 
void create (const std::string &window_name, int width, int height, unsigned flags=WindowFlags::SHOWN)
 create the window, initialize the handle and update the width and height More...
 
void swapBuffer ()
 swap the buffer More...
 
void clearBuffer ()
 clear buffer More...
 

Private Attributes

SDL_Window * window_ = nullptr
 window handle More...
 

Constructor & Destructor Documentation

◆ Window() [1/3]

yage::Window::Window ( )
default

◆ Window() [2/3]

yage::Window::Window ( const Window )
delete

◆ Window() [3/3]

yage::Window::Window ( Window &&  )
delete

◆ ~Window()

yage::Window::~Window ( )

Member Function Documentation

◆ clearBuffer()

void yage::Window::clearBuffer ( )

◆ create()

void yage::Window::create ( const std::string &  window_name,
int  width,
int  height,
unsigned  flags = WindowFlags::SHOWN 
)

◆ operator=() [1/2]

Window& yage::Window::operator= ( const Window )
delete

◆ operator=() [2/2]

Window& yage::Window::operator= ( Window &&  )
delete

◆ swapBuffer()

void yage::Window::swapBuffer ( )

Member Data Documentation

◆ window_

SDL_Window* yage::Window::window_ = nullptr
private

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