17 lines
367 B
C
17 lines
367 B
C
#pragma once
|
|
|
|
#include "COMMON.h"
|
|
|
|
struct Texture
|
|
{
|
|
GLuint id = 0;
|
|
ivec2 size = {0, 0};
|
|
s32 channels = -1;
|
|
bool isInvalid = false;
|
|
};
|
|
|
|
void texture_gl_set(Texture* self, void* data);
|
|
bool texture_from_path_init(Texture* self, const char* path);
|
|
bool texture_from_data_init(Texture* self, const u8* data, u32 length);
|
|
void texture_free(Texture* self);
|