YAGE  v0.1.1
Yet Another Game Engine
yage::Window Class Reference

#include <window.h>

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...
 
void hide ()
 hide windowProc More...
 
void show ()
 show window More...
 

Private Attributes

GLFWwindow * 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 
)

◆ hide()

void yage::Window::hide ( )

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ show()

void yage::Window::show ( )

◆ swapBuffer()

void yage::Window::swapBuffer ( )

Member Data Documentation

◆ window_

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

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