|
cat3d
A tiny OpenGL 3D engine library written in and for C++.
|
4 #include <GLFW/glfw3.h>
8 #include "cat3d/color.hpp"
9 #include "cat3d/gl/shader.hpp"
19 window(
unsigned int width,
unsigned int height,
const char* title);
79 void set_uniform(
const char* name, T& value);
Base color class.
Definition: color.hpp:11
bool is_open() const
Returns false if the window should close.
void flip()
Render drawn items to the screen.
Manages internal window api / state.
Definition: window.hpp:17
void set_proj(glm::mat4 p)
set the projection matrix
glm::vec2 size() const
get the x/y size of the window, in pixels
void set_view(glm::mat4 v)
set the view matrix
void set_transform(glm::mat4 m)
set the model matrix when rendering
void clear(color clear_color)
Clear the window.