Nimbin[12]?Games / Entropie / entropie/src/render/texture.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/texture.h 595 B · 15 lines raw
#ifndef RENDER_TEXTURE_H
#define RENDER_TEXTURE_H

/* 8-bit data textures: single channel (the meadow wear map) and RGBA (the wet ground). */

#include "core/gl.h"

GLuint Texture_createR8(int width, int height);
void   Texture_updateR8(GLuint texture, int width, int height, const unsigned char *data);
/* RGBA, starts all zero; updated a rectangle at a time. */
GLuint Texture_createRGBA8(int width, int height);
void   Texture_updateRGBA8(GLuint texture, int x, int y, int width, int height, const unsigned char *data);
void   Texture_destroy(GLuint *texture);

#endif /* RENDER_TEXTURE_H */