Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)

This commit is contained in:
Bart van Strien
2011-12-24 01:10:40 +01:00
parent e0dcf55703
commit c707a4ca45
85 changed files with 119 additions and 114 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ namespace opengl
{ 0, 0 }
};
int luaopen_canvas(lua_State * L)
extern "C" int luaopen_canvas(lua_State * L)
{
return luax_register_type(L, "Canvas", functions);
}
+1 -1
View File
@@ -42,7 +42,7 @@ namespace opengl
int w_Canvas_clear(lua_State * L);
int w_Canvas_getWidth(lua_State * L);
int w_Canvas_getHeight(lua_State * L);
int luaopen_canvas(lua_State * L);
extern "C" int luaopen_canvas(lua_State * L);
} // opengl
} // graphics
+1 -1
View File
@@ -98,7 +98,7 @@ namespace opengl
{ 0, 0 }
};
int luaopen_font(lua_State * L)
extern "C" int luaopen_font(lua_State * L)
{
return luax_register_type(L, "Font", functions);
}
+1 -1
View File
@@ -37,7 +37,7 @@ namespace opengl
int w_Font_getWrap(lua_State * L);
int w_Font_setLineHeight(lua_State * L);
int w_Font_getLineHeight(lua_State * L);
int luaopen_font(lua_State * L);
extern "C" int luaopen_font(lua_State * L);
} // opengl
} // graphics
@@ -1274,7 +1274,7 @@ namespace opengl
0
};
int luaopen_love_graphics(lua_State * L)
extern "C" int luaopen_love_graphics(lua_State * L)
{
if (instance == 0)
{
+1 -1
View File
@@ -124,7 +124,7 @@ namespace opengl
{ 0, 0 }
};
int luaopen_image(lua_State * L)
extern "C" int luaopen_image(lua_State * L)
{
return luax_register_type(L, "Image", functions);
}
+1 -1
View File
@@ -35,7 +35,7 @@ namespace opengl
int w_Image_getWidth(lua_State * L);
int w_Image_getHeight(lua_State * L);
int w_Image_setFilter(lua_State * L);
int luaopen_image(lua_State * L);
extern "C" int luaopen_image(lua_State * L);
} // opengl
} // graphics
@@ -386,7 +386,7 @@ namespace opengl
{ 0, 0 }
};
int luaopen_particlesystem(lua_State * L)
extern "C" int luaopen_particlesystem(lua_State * L)
{
return luax_register_type(L, "ParticleSystem", functions);
}
@@ -68,7 +68,7 @@ namespace opengl
int w_ParticleSystem_isEmpty(lua_State * L);
int w_ParticleSystem_isFull(lua_State * L);
int w_ParticleSystem_update(lua_State * L);
int luaopen_particlesystem(lua_State * L);
extern "C" int luaopen_particlesystem(lua_State * L);
} // opengl
} // graphics
@@ -229,7 +229,7 @@ namespace opengl
{ 0, 0 }
};
int luaopen_pixeleffect(lua_State * L)
extern "C" int luaopen_pixeleffect(lua_State * L)
{
return luax_register_type(L, "PixelEffect", functions);
}
@@ -35,7 +35,7 @@ namespace opengl
int w_PixelEffect_sendFloat(lua_State * L);
int w_PixelEffect_sendMatrix(lua_State * L);
int w_PixelEffect_sendImage(lua_State * L);
int luaopen_pixeleffect(lua_State * L);
extern "C" int luaopen_pixeleffect(lua_State * L);
} // opengl
} // graphics
} // love
+1 -1
View File
@@ -69,7 +69,7 @@ namespace opengl
{ 0, 0 }
};
int luaopen_frame(lua_State * L)
extern "C" int luaopen_frame(lua_State * L)
{
return luax_register_type(L, "Quad", w_Quad_functions);
}
+1 -1
View File
@@ -35,7 +35,7 @@ namespace opengl
int w_Quad_flip(lua_State *L);
int w_Quad_setViewport(lua_State * L);
int w_Quad_getViewport(lua_State * L);
int luaopen_frame(lua_State * L);
extern "C" int luaopen_frame(lua_State * L);
} // opengl
} // graphics
@@ -161,7 +161,7 @@ namespace opengl
{ 0, 0 }
};
int luaopen_spritebatch(lua_State * L)
extern "C" int luaopen_spritebatch(lua_State * L)
{
return luax_register_type(L, "SpriteBatch", functions);
}
@@ -40,7 +40,7 @@ namespace opengl
int w_SpriteBatch_unlock(lua_State * L);
int w_SpriteBatch_setImage(lua_State * L);
int luaopen_spritebatch(lua_State * L);
extern "C" int luaopen_spritebatch(lua_State * L);
} // opengl
} // graphics