diff options
author | 2025-02-07 11:27:18 -0500 | |
---|---|---|
committer | 2025-02-07 11:27:18 -0500 | |
commit | 4da7be39827ea5888ef9c97b1aadf61b0d76347c (patch) | |
tree | 15d0ff8f8bcb0e871efb1b2e65c2bc8d07b17565 /mons_3d/include/texture.h |
initial commit (lol)
Diffstat (limited to 'mons_3d/include/texture.h')
-rw-r--r-- | mons_3d/include/texture.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 <stdio.h> + +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 |