Compare commits

...

2 Commits
main ... 1.0.2

Author SHA1 Message Date
84f5e470da
Fixed uninitialized variable 2022-04-07 14:11:00 -04:00
b209149b9a
Fixed deprecations 2022-04-07 14:04:25 -04:00
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 = 1;
};
} // 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