mirror of
https://github.com/love2d/love.git
synced 2026-08-19 04:06:17 +02:00
Updated the Lua wrapper code for modules to account for cases where the module's instance is removed from memory completely and recreated during the program's lifetime.
This commit is contained in:
@@ -40,6 +40,9 @@ class Font : public Module
|
||||
|
||||
public:
|
||||
|
||||
Font() { moduleType = M_FONT; }
|
||||
virtual ~Font() {}
|
||||
|
||||
virtual Rasterizer *newRasterizer(Data *data, int size) = 0;
|
||||
virtual Rasterizer *newRasterizer(love::image::ImageData *data, const std::string &glyphs) = 0;
|
||||
virtual Rasterizer *newRasterizer(love::image::ImageData *data, uint32 *glyphs, int length) = 0;
|
||||
|
||||
Reference in New Issue
Block a user