refactor pt 1; getting each thing right and then will push to main

This commit is contained in:
shweet committed 2025-09-19 17:57:48 -04:00
1 parent 9a6810d1bb
commit dbb6d13f34
37 files changed
+7313 -8950

No files matched your search

+5 -7
View File
@@ -8,16 +8,14 @@
#define TEXTURE_SAVE_INFO "Saved texture to: {}"
#define TEXTURE_SAVE_ERROR "Failed to save texture to: {}"
struct Texture
{
GLuint id = GL_ID_NONE;
ivec2 size{};
bool isInvalid = true;
struct Texture {
GLuint id = GL_ID_NONE;
ivec2 size{};
bool isInvalid = true;
auto operator<=>(const Texture&) const = default;
auto operator<=>(const Texture&) const = default;
};
bool texture_from_encoded_data_init(Texture* self, ivec2 size, const u8* data, u32 length);
bool texture_from_gl_write(Texture* self, const std::string& path);
bool texture_from_path_init(Texture* self, const std::string& path);
bool texture_from_rgba_init(Texture* self, ivec2 size, const u8* data);