summaryrefslogtreecommitdiff
path: root/gfx/src/core/shader.h
blob: b9f56796115f8fb21a00743ae0c93961d3500364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <gfx/core.h>

#include "gl_util.h"

#include <stdbool.h>

typedef struct Shader {
  GLuint id;
} Shader;

/// Compile a new shader.
bool gfx_compile_shader(Shader*, const ShaderDesc*);

/// Destroy the shader.
void gfx_del_shader(Shader*);