#include <ym_core.h>
#include <ym_gfx.h>
#include <ym_gfx_gl_procs.h>
Go to the source code of this file.
YM_NO_DISCARD ym_errc ym_gfx_gl_create_shader |
( |
const char * |
file_path, |
|
|
GLenum |
type, |
|
|
GLuint * |
out_shader |
|
) |
| |
YM_NO_DISCARD ym_errc ym_gfx_gl_create_texture |
( |
const char * |
file_path, |
|
|
GLenum |
texture_slot, |
|
|
GLuint * |
out_texture |
|
) |
| |
- Todo:
- Use ym_mem rather than malloc and free. Can also probably just use a stack allocator, and think of which way I free.
YM_NO_DISCARD ym_errc ym_gfx_gl_get_uniform |
( |
GLuint |
program, |
|
|
const char * |
uniform_name, |
|
|
GLint * |
out_uniform |
|
) |
| |