Subastra
Loading...
Searching...
No Matches
Data Structures | Functions
shader.h File Reference
#include <GL/glew.h>
#include <GL/glext.h>
#include <GLFW/glfw3.h>
#include "../defs.h"
#include "../memory.h"
Include dependency graph for shader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  shader_t
 Small container and wrapper over OpenGL for shader-related things. In actually it is closer to what OpenGL calls a "program". More...
 

Functions

static GLuint shader__compile_opengl_shader_or_panic (const char *src, GLuint kind)
 
static void shader_cleanup (shader_t *shader)
 

Function Documentation

◆ shader__compile_opengl_shader_or_panic()

static GLuint shader__compile_opengl_shader_or_panic ( const char *  src,
GLuint  kind 
)
static

◆ shader_cleanup()

static void shader_cleanup ( shader_t shader)
static