|
cat3d
A tiny OpenGL 3D engine library written in and for C++.
|
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... | |
Manages internal window api / state.
| glm::vec2 cat3d::window::size | ( | ) | const |
get the x/y size of the window, in pixels