My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Window Class Reference

#include <window.hh>

Collaboration diagram for Window:
Collaboration graph

Public Member Functions

 Window (char *window_name, float width, float height)
 
 ~Window ()
 
void begin_frame () const
 
void end_frame ()
 
float get_time ()
 
bool running ()
 
void setup (Keyboard keyboard)
 
GLFWwindow * get_window () const
 
int get_width () const
 
int get_height () const
 
float get_deltatime ()
 

Private Member Functions

void update_deltatime_frame ()
 

Private Attributes

GLFWwindow * m_window
 
int m_width
 
int m_height
 
float m_deltatime
 
float m_lastframe
 
Mouse_mouse
 
OpenGLCallback_opengl
 

Constructor & Destructor Documentation

◆ Window()

Window::Window ( char *  window_name,
float  width,
float  height 
)

◆ ~Window()

Window::~Window ( )

Member Function Documentation

◆ begin_frame()

void Window::begin_frame ( ) const

◆ end_frame()

void Window::end_frame ( )

◆ get_deltatime()

float Window::get_deltatime ( )
inline

◆ get_height()

int Window::get_height ( ) const
inline

◆ get_time()

float Window::get_time ( )

◆ get_width()

int Window::get_width ( ) const
inline

◆ get_window()

GLFWwindow * Window::get_window ( ) const
inline

◆ running()

bool Window::running ( )

◆ setup()

void Window::setup ( Keyboard  keyboard)

◆ update_deltatime_frame()

void Window::update_deltatime_frame ( )
inlineprivate

Member Data Documentation

◆ _mouse

Mouse& Window::_mouse
private

◆ _opengl

OpenGLCallback& Window::_opengl
private

◆ m_deltatime

float Window::m_deltatime
private

◆ m_height

int Window::m_height
private

◆ m_lastframe

float Window::m_lastframe
private

◆ m_width

int Window::m_width
private

◆ m_window

GLFWwindow* Window::m_window
private

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