From b209149b9a36c8b446b4e1281f31832b51e9a9bb Mon Sep 17 00:00:00 2001 From: Rebekah Rowe Date: Thu, 7 Apr 2022 14:04:25 -0400 Subject: [PATCH] Fixed deprecations --- include/glez/font.hpp | 7 +++++++ include/glez/glez.hpp | 1 + include/glez/texture.hpp | 9 +++++++++ 3 files changed, 17 insertions(+) diff --git a/include/glez/font.hpp b/include/glez/font.hpp index 33bc4ae..74d6acd 100644 --- a/include/glez/font.hpp +++ b/include/glez/font.hpp @@ -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 diff --git a/include/glez/glez.hpp b/include/glez/glez.hpp index fcb4d84..44afd4b 100644 --- a/include/glez/glez.hpp +++ b/include/glez/glez.hpp @@ -11,6 +11,7 @@ namespace glez { +[[deprecated]] inline void preInit() { } void init(int width, int height); void shutdown(); void resize(int width, int height); diff --git a/include/glez/texture.hpp b/include/glez/texture.hpp index 4c15a31..3260dab 100644 --- a/include/glez/texture.hpp +++ b/include/glez/texture.hpp @@ -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