|
@@ -60,10 +60,15 @@ static bool FontSaveXML(const String& fileName, int pointSize, bool usedGlyphs,
|
|
|
return ptr->SaveXML(file, pointSize, usedGlyphs, indentation);
|
|
return ptr->SaveXML(file, pointSize, usedGlyphs, indentation);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+static bool FontSaveXMLFile(File* file, int pointSize, bool usedGlyphs, const String& indentation, Font* ptr)
|
|
|
|
|
+{
|
|
|
|
|
+ return ptr->SaveXML(*file, pointSize, usedGlyphs, indentation);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
static void RegisterFont(asIScriptEngine* engine)
|
|
static void RegisterFont(asIScriptEngine* engine)
|
|
|
{
|
|
{
|
|
|
RegisterResource<Font>(engine, "Font");
|
|
RegisterResource<Font>(engine, "Font");
|
|
|
- engine->RegisterObjectMethod("Font", "bool SaveXML(File@+, int, bool usedGlyphs = false, const String&in indentation = \"\t\")", asMETHOD(Font, SaveXML), asCALL_THISCALL);
|
|
|
|
|
|
|
+ engine->RegisterObjectMethod("Font", "bool SaveXML(File@+, int, bool usedGlyphs = false, const String&in indentation = \"\t\")", asFUNCTION(FontSaveXMLFile), asCALL_CDECL_OBJLAST);
|
|
|
engine->RegisterObjectMethod("Font", "bool SaveXML(VectorBuffer&, int, bool usedGlyphs = false, const String&in indentation = \"\t\")", asFUNCTION(FontSaveXMLVectorBuffer), asCALL_CDECL_OBJLAST);
|
|
engine->RegisterObjectMethod("Font", "bool SaveXML(VectorBuffer&, int, bool usedGlyphs = false, const String&in indentation = \"\t\")", asFUNCTION(FontSaveXMLVectorBuffer), asCALL_CDECL_OBJLAST);
|
|
|
engine->RegisterObjectMethod("Font", "bool SaveXML(const String&in, int, bool usedGlyphs = false, const String&in indentation = \"\t\")", asFUNCTION(FontSaveXML), asCALL_CDECL_OBJLAST);
|
|
engine->RegisterObjectMethod("Font", "bool SaveXML(const String&in, int, bool usedGlyphs = false, const String&in indentation = \"\t\")", asFUNCTION(FontSaveXML), asCALL_CDECL_OBJLAST);
|
|
|
engine->RegisterObjectMethod("Font", "IntVector2 GetTotalGlyphOffset(int) const", asMETHOD(Font, GetTotalGlyphOffset), asCALL_THISCALL);
|
|
engine->RegisterObjectMethod("Font", "IntVector2 GetTotalGlyphOffset(int) const", asMETHOD(Font, GetTotalGlyphOffset), asCALL_THISCALL);
|