mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
It's now possible to build each module individually (as a DLL).
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#define LOVE_FONT_GLYPH_DATA_H
|
||||
|
||||
// LOVE
|
||||
#include <common/config.h>
|
||||
#include <common/Data.h>
|
||||
|
||||
namespace love
|
||||
@@ -66,12 +67,12 @@ namespace font
|
||||
/**
|
||||
* Gets the height of the glyph.
|
||||
**/
|
||||
int getHeight() const;
|
||||
virtual int getHeight() const;
|
||||
|
||||
/**
|
||||
* Gets the width of the glyph.
|
||||
**/
|
||||
int getWidth() const;
|
||||
virtual int getWidth() const;
|
||||
|
||||
/**
|
||||
* Gets the advance (the space the glyph takes up) of the glyph.
|
||||
|
||||
@@ -82,9 +82,14 @@ namespace freetype
|
||||
|
||||
luax_register_gc(L, "love.font", instance);
|
||||
|
||||
return luax_register_module(L, wrap_Font_functions, wrap_Font_types, "font");
|
||||
return luax_register_module(L, wrap_Font_functions, wrap_Font_types, 0, "font");
|
||||
}
|
||||
|
||||
} // freetype
|
||||
} // sound
|
||||
} // font
|
||||
} // love
|
||||
|
||||
int luaopen_love_font(lua_State * L)
|
||||
{
|
||||
return love::font::freetype::wrap_Font_open(L);
|
||||
}
|
||||
@@ -22,6 +22,7 @@
|
||||
#define LOVE_FONT_FREETYPE_WRAP_FONT_H
|
||||
|
||||
// LOVE
|
||||
#include <common/config.h>
|
||||
#include "Font.h"
|
||||
#include "wrap_Font.h"
|
||||
|
||||
@@ -40,3 +41,5 @@ namespace freetype
|
||||
} // love
|
||||
|
||||
#endif // LOVE_FONT_FREETYPE_WRAP_FONT_H
|
||||
|
||||
extern "C" LOVE_EXPORT int luaopen_love_font(lua_State * L);
|
||||
Reference in New Issue
Block a user