4 #include <GLFW/glfw3.h>
53 void nameObject(GLenum type, GLuint
id, std::string
const& label);
60 , GLenum severity, GLsizei
61 , GLchar
const* msg,
void const*
72 void reload_program(GLuint
id, std::vector<GLuint>
const& ids, std::vector<std::string>
const& sources);
80 void init(std::string
const& vs_path, std::string
const& fs_path,
size_t width,
size_t height);
GLuint shader
Definition: helpers.cpp:23
void beginDebugGroup(std::string const &message, GLuint id)
Start a new debug group.
Definition: opengl.cpp:97
std::string getStringForSeverity(GLenum severity)
Definition: opengl.cpp:79
bool isSupported()
Definition: opengl.cpp:21
void nameObject(GLenum type, GLuint id, std::string const &label)
Label an OpenGL object with a custon string.
Definition: opengl.cpp:115
std::string getStringForSource(GLenum source)
Definition: opengl.cpp:56
std::string getStringForType(GLenum type)
Definition: opengl.cpp:27
void opengl_error_callback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei, GLchar const *msg, void const *)
Definition: opengl.cpp:127
void endDebugGroup()
End the most recently-started debug group.
Definition: opengl.cpp:106
void deinit()
Definition: opengl.cpp:331
void init(std::string const &vs_path, std::string const &fs_path, size_t width, size_t height)
Definition: opengl.cpp:287
GLuint get_texture_id()
Definition: opengl.cpp:366
void draw()
Definition: opengl.cpp:372
void reload_program(GLuint id, std::vector< GLuint > const &ids, std::vector< std::string > const &sources)
Definition: opengl.cpp:251
bool source_and_build_shader(GLuint id, std::string const &source)
Definition: opengl.cpp:168
GLuint generate_program(std::vector< GLuint > const &shaders_id)
Definition: opengl.cpp:260
bool link_program(GLuint id)
Definition: opengl.cpp:219
GLuint generate_shader(GLenum type, std::string const &source)
Definition: opengl.cpp:205
Definition: opengl.cpp:13