Fixed deprecations

This commit is contained in:
Rebekah 2022-04-07 14:04:25 -04:00
parent 7132d84fa2
commit b209149b9a
Signed by: oneechanhax
GPG Key ID: 183EB7902964DAE5
3 changed files with 17 additions and 0 deletions

View File

@ -27,6 +27,13 @@ public:
public:
texture_font_t* m_font = nullptr;
texture_atlas_t* atlas = nullptr;
public:
[[deprecated]] unsigned getHandle() const { return 1; }
[[deprecated]] void load() { }
[[deprecated]] void unload() { }
[[deprecated]] const std::string path;
[[deprecated]] const float size;
};
} // namespace glez

View File

@ -11,6 +11,7 @@
namespace glez {
[[deprecated]] inline void preInit() { }
void init(int width, int height);
void shutdown();
void resize(int width, int height);

View File

@ -34,6 +34,15 @@ public:
GLuint id;
GLubyte* data;
public:
[[deprecated]] int getWidth() const { return this->width; }
[[deprecated]] int getHeight() const { return this->height; }
[[deprecated]] unsigned getHandle() const { return 1; }
[[deprecated]] bool canLoad() const { return true; }
[[deprecated]] void load() { }
[[deprecated]] void unload() { }
[[deprecated]] const std::string path;
};
} // namespace glez