refactor font loading

This commit is contained in:
2019-12-01 18:24:59 +01:00
parent 0905827b8d
commit c8bce21b95
30 changed files with 180 additions and 84 deletions

View File

@@ -9,6 +9,13 @@ class Texture2D
GLint m_format = 0;
GLint m_iformat = 0;
public:
Texture2D() noexcept = default;
Texture2D(const Texture2D&) = delete;
void operator=(const Texture2D&) = delete;
Texture2D(Texture2D&& other) noexcept;
void operator=(Texture2D&& other) noexcept;
~Texture2D();
bool auto_destroy = false;
bool has_mips = false;
bool create(int width, int height, GLint internal_format = GL_RGBA8, GLint format = GL_RGBA, const uint8_t* data = nullptr);
@@ -24,7 +31,6 @@ public:
void create_mipmaps();
glm::vec2 size() const;
Image get_image() const noexcept;
~Texture2D();
};
struct TextureCube