cat3d
A tiny OpenGL 3D engine library written in and for C++.
Public Member Functions | List of all members
cat3d::window Class Reference

Manages internal window api / state. More...

#include <window.hpp>

Public Member Functions

 window (unsigned int width, unsigned int height, const char *title)
 
bool is_open () const
 Returns false if the window should close.
 
void clear (color clear_color)
 Clear the window.
 
void flip ()
 Render drawn items to the screen.
 
void set_transform (glm::mat4 m)
 set the model matrix when rendering
 
void set_view (glm::mat4 v)
 set the view matrix
 
void set_proj (glm::mat4 p)
 set the projection matrix
 
glm::vec2 size () const
 get the x/y size of the window, in pixels More...
 

Detailed Description

Manages internal window api / state.

Member Function Documentation

◆ size()

glm::vec2 cat3d::window::size ( ) const

get the x/y size of the window, in pixels

Returns
glm::vec2

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