Ok, project generation didn't really work out. Reverted.

This commit is contained in:
rude
2009-08-10 21:33:07 +02:00
parent ba1a75e547
commit dd420d68a3
68 changed files with 4136 additions and 4196 deletions
+14 -14
View File
@@ -53,21 +53,21 @@ namespace freetype
return 1;
}
int luaopen_font(lua_State * L)
// List of functions to wrap.
static const luaL_Reg functions[] = {
{ "newRasterizer", w_newRasterizer },
{ "newGlyphData", w_newGlyphData },
{ 0, 0 }
};
static const lua_CFunction types[] = {
luaopen_glyphdata,
luaopen_rasterizer,
0
};
int luaopen_love_font(lua_State * L)
{
// List of functions to wrap.
static const luaL_Reg functions[] = {
{ "newRasterizer", w_newRasterizer },
{ "newGlyphData", w_newGlyphData },
{ 0, 0 }
};
static const lua_CFunction types[] = {
luaopen_glyphdata,
luaopen_rasterizer,
0
};
if(instance == 0)
{
try
+6 -6
View File
@@ -29,14 +29,14 @@ namespace font
return luax_checktype<GlyphData>(L, idx, "GlyphData", FONT_GLYPH_DATA_T);
}
static const luaL_Reg functions[] = {
{ "getPointer", w_Data_getPointer },
{ "getSize", w_Data_getSize },
{ 0, 0 }
};
int luaopen_glyphdata(lua_State * L)
{
static const luaL_Reg functions[] = {
{ "getPointer", w_Data_getPointer },
{ "getSize", w_Data_getSize },
{ 0, 0 }
};
return luax_register_type(L, "GlyphData", functions);
}
+7 -7
View File
@@ -31,15 +31,15 @@ namespace font
return luax_checktype<Rasterizer>(L, idx, "Rasterizer", FONT_RASTERIZER_T);
}
static const luaL_Reg functions[] = {
// Data
{ "getPointer", w_Data_getPointer },
{ "getSize", w_Data_getSize },
{ 0, 0 }
};
int luaopen_rasterizer(lua_State * L)
{
static const luaL_Reg functions[] = {
// Data
{ "getPointer", w_Data_getPointer },
{ "getSize", w_Data_getSize },
{ 0, 0 }
};
return luax_register_type(L, "Rasterizer", functions);
}