It's now possible to build each module individually (as a DLL).

This commit is contained in:
rude
2009-08-04 19:57:14 +02:00
parent 524ef5e118
commit 8e681b4204
59 changed files with 5315 additions and 400 deletions
-1
View File
@@ -37,7 +37,6 @@
// LOVE
#include <audio/Audio.h>
#include <common/config.h>
#include <common/constants.h>
#include <sound/SoundData.h>
#include "Sound.h"
+7 -4
View File
@@ -24,8 +24,6 @@
#include "openal/Audio.h"
#include "null/Audio.h"
#include <sound/wrap_Decoder.h>
namespace love
{
namespace audio
@@ -61,7 +59,7 @@ namespace audio
if(!luax_istype(L, 1, LOVE_SOUND_DECODER_BITS))
luax_convobj(L, 1, "sound", "newDecoder");
love::sound::Decoder * decoder = love::sound::luax_checkdecoder(L, 1);
love::sound::Decoder * decoder = luax_checktype<love::sound::Decoder>(L, 1, "Decoder", LOVE_SOUND_DECODER_BITS);
Music * t = instance->newMusic(decoder);
luax_newtype(L, "Music", LOVE_AUDIO_MUSIC_BITS, (void*)t);
return 1;
@@ -198,8 +196,13 @@ namespace audio
luax_register_gc(L, "love.audio", instance);
return luax_register_module(L, wrap_Audio_functions, wrap_Audio_types, "audio");
return luax_register_module(L, wrap_Audio_functions, wrap_Audio_types, 0, "audio");
}
} // audio
} // love
int luaopen_love_audio(lua_State * L)
{
return love::audio::wrap_Audio_open(L);
}
+1
View File
@@ -47,5 +47,6 @@ namespace audio
} // audio
} // love
extern "C" LOVE_EXPORT int luaopen_love_audio(lua_State * L);
#endif // LOVE_AUDIO_WRAP_AUDIO_H