From 4da7be39827ea5888ef9c97b1aadf61b0d76347c Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Fri, 7 Feb 2025 11:27:18 -0500 Subject: initial commit (lol) --- mons_3d/include/texture.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 mons_3d/include/texture.h (limited to 'mons_3d/include/texture.h') diff --git a/mons_3d/include/texture.h b/mons_3d/include/texture.h new file mode 100644 index 0000000..4e3d2e4 --- /dev/null +++ b/mons_3d/include/texture.h @@ -0,0 +1,19 @@ +#ifndef MONS_TEXTURE_H +#define MONS_TEXTURE_H + +#include "image.h" +#include "shader.h" +#include + +typedef struct mons_texture { + unsigned int id; + unsigned int width; + unsigned int height; +} mons_texture; + +mons_texture mons_texture_from_image(mons_image image); +mons_texture mons_texture_load(FILE *stream); + +void mons_texture_bind(mons_program shader, unsigned int unit, mons_texture texture); + +#endif -- cgit v1.2.3