Fireset
Loading...
Searching...
No Matches
image.h
1// Copyright (c) 2025-2026 Henrique Rodrigues Santos
2// Licensed under the MIT License
3// Github: https://github.com/saintsHr/Fireset
4
5#pragma once
6
7#include <stdint.h>
8#include "GL/gl.h"
9
15typedef struct{
16 uint8_t* buffer;
17 int width;
18 int height;
19}FsImage;
20
26typedef struct{
27 GLuint id;
28 int width;
29 int height;
31
47FsImage fsImageLoad(const char* filename);
48
66FsTexture fsTextureLoad(const char* filename);
67
79void fsImageFree(FsImage* image);
80
91void fsTextureFree(FsTexture* texture);
Image data structure.
Definition image.h:15
int width
Definition image.h:17
uint8_t * buffer
Definition image.h:16
int height
Definition image.h:18
Texture data structure.
Definition image.h:26
int height
Definition image.h:29
int width
Definition image.h:28
GLuint id
Definition image.h:27