Last modules fixes
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <Nazara/Audio.hpp>
|
||||
#include <Nazara/Core/Clock.hpp>
|
||||
#include <Nazara/Core/Modules.hpp>
|
||||
#include <Nazara/Math/Vector3.hpp>
|
||||
#include <Nazara/Platform/Keyboard.hpp>
|
||||
#include <Nazara/Platform/Platform.hpp>
|
||||
@@ -20,13 +21,13 @@
|
||||
int main()
|
||||
{
|
||||
// NzKeyboard nécessite l'initialisation du module Utilitaire
|
||||
Nz::Initializer<Nz::Audio, Nz::Platform> audio;
|
||||
if (!audio)
|
||||
Nz::Modules<Nz::Audio, Nz::Platform> audio;
|
||||
/*if (!audio)
|
||||
{
|
||||
std::cout << "Failed to initialize audio module" << std::endl;
|
||||
std::getchar();
|
||||
return 1;
|
||||
}
|
||||
}*/
|
||||
|
||||
Nz::Sound sound;
|
||||
if (!sound.LoadFromFile("resources/siren.wav"))
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <Nazara/Core/File.hpp>
|
||||
#include <Nazara/Core/Modules.hpp>
|
||||
#include <Nazara/Math/Box.hpp>
|
||||
#include <Nazara/Utility/Animation.hpp>
|
||||
#include <Nazara/Utility/Joint.hpp>
|
||||
@@ -14,14 +15,14 @@
|
||||
int main()
|
||||
{
|
||||
// Pour charger des ressources, il est impératif d'initialiser le module utilitaire
|
||||
Nz::Initializer<Nz::Utility> utility;
|
||||
if (!utility)
|
||||
Nz::Modules<Nz::Utility> nazara;
|
||||
/*if (!utility)
|
||||
{
|
||||
// Ça n'a pas fonctionné, le pourquoi se trouve dans le fichier NazaraLog.log
|
||||
std::cout << "Failed to initialize Nazara, see NazaraLog.log for further informations" << std::endl;
|
||||
std::getchar(); // On laise le temps de voir l'erreur
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}*/
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
||||
@@ -10,5 +10,6 @@ EXAMPLE.Libraries = {
|
||||
"NazaraCore",
|
||||
"NazaraPlatform",
|
||||
"NazaraRenderer",
|
||||
"NazaraShader",
|
||||
"NazaraUtility"
|
||||
}
|
||||
|
||||
@@ -8,12 +8,7 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
Nz::Initializer<Nz::Renderer> loader;
|
||||
if (!loader)
|
||||
{
|
||||
std::cout << "Failed to initialize Vulkan" << std::endl;
|
||||
return __LINE__;
|
||||
}
|
||||
Nz::Modules<Nz::Renderer> nazara;
|
||||
|
||||
Nz::RenderWindow window;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user