Ylva And Malin
Functions
ym_gfx_gl.c File Reference
#include <ym_gfx_gl.h>
#include <ym_gfx_sprite.h>
#include <ym_allocator.h>
#include <stdio.h>
#include <errno.h>
Include dependency graph for ym_gfx_gl.c:

Functions

ym_errc ym_gfx_gl_init (ym_mem_reg_id region)
 
ym_errc ym_gfx_gl_create_shader (const char *file_path, GLenum type, GLuint *out_shader)
 
ym_errc ym_gfx_gl_create_program (GLuint *shaders, int shader_count, GLuint *out_program)
 
ym_errc ym_gfx_gl_create_texture (const char *file_path, GLenum texture_slot, GLuint *out_texture)
 
ym_errc ym_gfx_gl_get_uniform (GLuint program, const char *uniform_name, GLint *out_uniform)
 

Function Documentation

ym_errc ym_gfx_gl_create_program ( GLuint *  shaders,
int  shader_count,
GLuint *  out_program 
)

Here is the call graph for this function:

Here is the caller graph for this function:

ym_errc ym_gfx_gl_create_shader ( const char *  file_path,
GLenum  type,
GLuint *  out_shader 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

ym_errc ym_gfx_gl_get_uniform ( GLuint  program,
const char *  uniform_name,
GLint *  out_uniform 
)

Here is the call graph for this function:

Here is the caller graph for this function:

ym_errc ym_gfx_gl_init ( ym_mem_reg_id  region)

Here is the call graph for this function:

Here is the caller graph for this function: