FFmpeg and sound support; refactor, etc.

This commit is contained in:
shweet committed 2025-11-01 00:54:22 -04:00
1 parent 729d5fb216
commit 99b7d9f49d
10 files changed
+146 -15

No files matched your search

+5 -1
View File
@@ -17,7 +17,8 @@ namespace anm2ed::texture
glm::ivec2 size{};
GLint filter = GL_NEAREST;
int channels{};
std::vector<uint8_t> pixels{};
mutable std::vector<uint8_t> pixels{};
mutable bool isPixelsDirty{true};
bool is_valid();
void download();
@@ -30,10 +31,13 @@ namespace anm2ed::texture
Texture(Texture&&);
Texture& operator=(const Texture&);
Texture& operator=(Texture&&);
Texture(const uint8_t*, glm::ivec2);
Texture(const char*, size_t, glm::ivec2);
Texture(const std::string&);
bool write_png(const std::string&);
void pixel_set(glm::ivec2, glm::vec4);
void ensure_pixels() const;
std::vector<uint8_t> pixels_get();
void pixel_line(glm::ivec2, glm::ivec2, glm::vec4);
void bind(GLuint = 0);
void unbind(GLuint = 0);