Moved spritesheet texture handling to anm2 instead of resources; added undoing for spritesheet texture changes; refactoring

This commit is contained in:
shweet committed 2025-08-27 00:28:41 -04:00
1 parent c9056ce707
commit 3546f27655
22 files changed
+376 -391

No files matched your search

+4 -4
View File
@@ -10,10 +10,10 @@
struct Texture
{
GLuint id = 0;
ivec2 size = {0, 0};
s32 channels = -1;
bool isInvalid = false;
GLuint id = GL_ID_NONE;
ivec2 size{};
s32 channels = TEXTURE_CHANNELS;
bool isInvalid = true;
};
bool texture_from_encoded_data_init(Texture* self, ivec2 size, s32 channels, const u8* data, u32 length);