[Add] Added a Qt project for those silly IDE users. :D
This commit is contained in:
parent
6ce0a5602d
commit
a277545963
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
|
LibDQt/LibDQt
|
||||||
|
LibDQt/Makefile
|
||||||
LibD
|
LibD
|
||||||
*.pro.user
|
*.pro.user
|
||||||
moc_*
|
moc_*
|
||||||
|
@ -43,4 +43,5 @@ clean:
|
|||||||
$(MAKE) -C ../src/Sprite/ clean
|
$(MAKE) -C ../src/Sprite/ clean
|
||||||
$(MAKE) -C ../src/IO/ clean
|
$(MAKE) -C ../src/IO/ clean
|
||||||
$(MAKE) -C ../src/Global/ clean
|
$(MAKE) -C ../src/Global/ clean
|
||||||
|
rm -f *.log
|
||||||
rm -f LibD
|
rm -f LibD
|
||||||
|
33
LibDQt/LibDQt.pro
Normal file
33
LibDQt/LibDQt.pro
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
CONFIG -= qt
|
||||||
|
LIBS += -lGL \
|
||||||
|
-lSDL \
|
||||||
|
-lSDL_ttf \
|
||||||
|
-lSDL_image \
|
||||||
|
-lSDL_gfx \
|
||||||
|
-ltinyxml \
|
||||||
|
-lGLU
|
||||||
|
HEADERS += ../src/Actor/Player.h \
|
||||||
|
../src/Global/Globals.h \
|
||||||
|
../src/IO/Input.h \
|
||||||
|
../src/Main/Game.h \
|
||||||
|
../src/Main/LGLXWindow.h \
|
||||||
|
../src/Math/Timer.h \
|
||||||
|
../src/Math/MathBox.h \
|
||||||
|
../src/Math/FPS.h \
|
||||||
|
../src/Math/Vec2.h \
|
||||||
|
../src/Sprite/Sprite.h \
|
||||||
|
../src/System/Debug.h \
|
||||||
|
../src/Texture/Texture.h
|
||||||
|
SOURCES += ../src/Actor/Player.cpp \
|
||||||
|
../src/Global/Globals.cpp \
|
||||||
|
../src/IO/Input.cpp \
|
||||||
|
../src/Main/main.cpp \
|
||||||
|
../src/Main/LGLXWindow.cpp \
|
||||||
|
../src/Main/Game.cpp \
|
||||||
|
../src/Math/Vec2.cpp \
|
||||||
|
../src/Math/Timer.cpp \
|
||||||
|
../src/Math/FPS.cpp \
|
||||||
|
../src/Sprite/Sprite.cpp \
|
||||||
|
../src/System/Debug.cpp \
|
||||||
|
../src/Texture/Texture.cpp
|
||||||
|
OTHER_FILES +=
|
@ -43,6 +43,7 @@ int main(int argc, char** argv) {
|
|||||||
if(!programWindow.Create(windowWidth, windowHeight, windowBPP, windowFullscreen)) {
|
if(!programWindow.Create(windowWidth, windowHeight, windowBPP, windowFullscreen)) {
|
||||||
// If it fails.
|
// If it fails.
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
Debug::logger->message("Unable to create the OpenGL Window");
|
||||||
MessageBox(NULL, TEXT("Unable to create the OpenGL Window"), TEXT("An error occured"), MB_ICONERROR | MB_OK);
|
MessageBox(NULL, TEXT("Unable to create the OpenGL Window"), TEXT("An error occured"), MB_ICONERROR | MB_OK);
|
||||||
#endif
|
#endif
|
||||||
programWindow.Destroy(); // Reset the display and exit.
|
programWindow.Destroy(); // Reset the display and exit.
|
||||||
@ -50,6 +51,7 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
if(!game.Init()) { // Initialize our game.
|
if(!game.Init()) { // Initialize our game.
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
Debug::logger->message("Could not initialize the application");
|
||||||
MessageBox(NULL, TEXT("Could not initialize the application"), TEXT("An error occured"), MB_ICONERROR | MB_OK);
|
MessageBox(NULL, TEXT("Could not initialize the application"), TEXT("An error occured"), MB_ICONERROR | MB_OK);
|
||||||
#endif
|
#endif
|
||||||
programWindow.Destroy(); // Reset the display and exit.
|
programWindow.Destroy(); // Reset the display and exit.
|
||||||
|
Loading…
Reference in New Issue
Block a user