mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user