21 lines
348 B
C
21 lines
348 B
C
#pragma once
|
|
|
|
#include <GL/glew.h>
|
|
#include "math.h"
|
|
#include "../lib/stb_image.h"
|
|
|
|
struct Texture {
|
|
u32 id = 0;
|
|
int width = 0;
|
|
int height = 0;
|
|
int bit_depth = 0;
|
|
char *file_path;
|
|
|
|
Texture(char *file_path);
|
|
~Texture();
|
|
};
|
|
|
|
bool load_texture(Texture *texture);
|
|
void use_texture(Texture *texture);
|
|
void clear_texture(Texture *texture);
|