Ylva And Malin
ym_gfx_gl.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <ym_core.h>
4 #include <ym_gfx.h>
5 #include <ym_gfx_gl_procs.h>
6 
7 
11 
12 
14 ym_errc
15 ym_gfx_gl_create_shader(const char* file_path,
16  GLenum type,
17  GLuint* out_shader);
18 
20 ym_errc
22  int shader_count,
23  GLuint* out_program);
24 
26 ym_errc
27 ym_gfx_gl_create_texture(const char* file_path,
28  GLenum texture_slot,
29  GLuint* out_texture);
30 
32 ym_errc
33 ym_gfx_gl_get_uniform(GLuint program,
34  const char* uniform_name,
35  GLint* out_uniform);
YM_NO_DISCARD ym_errc ym_gfx_gl_init(ym_mem_reg_id region)
Definition: ym_gfx_gl.c:38
YM_NO_DISCARD ym_errc ym_gfx_gl_get_uniform(GLuint program, const char *uniform_name, GLint *out_uniform)
Definition: ym_gfx_gl.c:271
#define YM_NO_DISCARD
YM_NO_DISCARD is a platform independent macro informing the compiler to warn if a return value from a...
Definition: ym_attributes.h:94
YM_NO_DISCARD ym_errc ym_gfx_gl_create_program(GLuint *shaders, int shader_count, GLuint *out_program)
Definition: ym_gfx_gl.c:135
ym_errc
Used to indicate erroneous behavior within a a function.
Definition: ym_error.h:36
ym_mem_reg_id
Definition: ym_memory_regions.h:30
void GLuint GLenum type
Definition: wglext.h:636
YM_NO_DISCARD ym_errc ym_gfx_gl_create_texture(const char *file_path, GLenum texture_slot, GLuint *out_texture)
Definition: ym_gfx_gl.c:198
GLuint shaders[2]
Definition: ym_gfx_sprite.c:15
YM_NO_DISCARD ym_errc ym_gfx_gl_create_shader(const char *file_path, GLenum type, GLuint *out_shader)
Definition: ym_gfx_gl.c:48