Nimbin[12]?Games / Entropie / entropie/src/render/shader.h

Entropie git · main

Entropie festival game; first steps

sdl c game entropie cmake · first commit 2026-10-10 · last commit 2026-11-02 (18 hours ago) · synced 10 hours ago

C 88.5% Markdown 9.1% GLSL 2.3%
git clone https://git.christianimmanuel.de/games/Entropie.gitwget https://git.christianimmanuel.de/games/Entropie/archive/Entropie.tar.gz
entropie/src/render/shader.h 423 B · 15 lines raw
#ifndef RENDER_SHADER_H
#define RENDER_SHADER_H

#include "core/gl.h"

/*
 * Compiles and links a program from two asset files. Returns 0 on failure.
 * Shader files have no #version line: the loader prepends
 * "#version 330 core" and shaders/common.glsl (shared noise helpers).
 */
GLuint Shader_load(const char *vert_asset, const char *frag_asset);

void   Shader_destroy(GLuint *program);

#endif /* RENDER_SHADER_H */