コード例 #1
0
ファイル: nlua_gui.c プロジェクト: AvanWolf/naev
/**
 * @brief Sets the Lua planet target GFX.
 *
 *    @luaparam tex Texture to set for the planet targetting.
 * @luafunc targetPlanetGFX( tex )
 */
static int guiL_targetPlanetGFX( lua_State *L )
{
   LuaTex *lt;
   lt = luaL_checktex( L, 1 );
   gui_targetPlanetGFX( lt->tex );
   return 0;
}
コード例 #2
0
ファイル: nlua_gui.c プロジェクト: Kinniken/naev
/**
 * @brief Sets the Lua planet target GFX.
 *
 *    @luatparam Tex tex Texture to set for the planet targeting.
 * @luafunc targetPlanetGFX( tex )
 */
static int guiL_targetPlanetGFX( lua_State *L )
{
   gui_targetPlanetGFX( luaL_checktex( L, 1 ) );
   return 0;
}