5#ifndef ENGINE_LIB_GL_WRAPPERS_H_
6#define ENGINE_LIB_GL_WRAPPERS_H_
30 long long int size,
const void* data,
58 int max_length,
int* length,
79 unsigned char normalized,
Definition i-gl-clear-flags.h:15
#define DLLEXPORT
Definition dll-export.h:19
GLDataType
Definition gl-types.h:26
GLDrawMode
Definition gl-types.h:52
GLBufferTarget
Definition gl-types.h:12
GLDataUsagePattern
Definition gl-types.h:40
GLShaderObjectParameter
Definition gl-types.h:66
GLShaderType
Definition gl-types.h:74
Definition gl-wrappers.h:16
DLLEXPORT auto CreateShader(gl_types::GLShaderType shader_type) -> types::Expected< unsigned int >
DLLEXPORT auto GenVertexArrays(int n, unsigned int *arrays) -> types::Expected< void >
DLLEXPORT auto LinkProgram(unsigned int program) -> types::Expected< void >
DLLEXPORT auto AttachShader(unsigned int program, unsigned int shader) -> types::Expected< void >
DLLEXPORT auto GenBuffers(int n, unsigned int *buffers) -> types::Expected< void >
DLLEXPORT auto VertexAttribPointer(unsigned int index, int size, gl_types::GLDataType type, unsigned char normalized, int stride, const void *pointer) -> types::Expected< void >
DLLEXPORT auto Clear(const gl_clear_flags::IGLClearFlags &flags) -> types::Expected< void >
DLLEXPORT auto BindBuffer(gl_types::GLBufferTarget target, unsigned int buffer) -> types::Expected< void >
DLLEXPORT auto GetShaderiv(unsigned int shader, gl_types::GLShaderObjectParameter pname, int *params) -> types::Expected< void >
DLLEXPORT auto BindVertexArray(unsigned int array) -> types::Expected< void >
DLLEXPORT auto BufferData(gl_types::GLBufferTarget target, long long int size, const void *data, gl_types::GLDataUsagePattern usage) -> types::Expected< void >
DLLEXPORT auto EnableVertexAttribArray(unsigned int index) -> types::Expected< void >
DLLEXPORT auto ShaderSource(unsigned int shader, int count, const char **string, const int *length) -> types::Expected< void >
DLLEXPORT auto CompileShader(unsigned int shader) -> types::Expected< void >
DLLEXPORT auto UseProgram(unsigned int program) -> types::Expected< void >
DLLEXPORT auto GetShaderInfoLog(unsigned int shader, int max_length, int *length, char *info_log) -> types::Expected< void >
DLLEXPORT auto DrawArrays(gl_types::GLDrawMode mode, int first, int count) -> types::Expected< void >
DLLEXPORT auto CreateProgram() -> types::Expected< unsigned int >
std::expected< T, std::error_code > Expected
Definition types.h:34