[Add] Added a Qt project for those silly IDE users. :D

This commit is contained in:
Rtch90 2012-04-08 17:11:02 +01:00
parent 6ce0a5602d
commit a277545963
4 changed files with 47 additions and 9 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
LibDQt/LibDQt
LibDQt/Makefile
LibD
*.pro.user
moc_*

View File

@ -43,4 +43,5 @@ clean:
$(MAKE) -C ../src/Sprite/ clean
$(MAKE) -C ../src/IO/ clean
$(MAKE) -C ../src/Global/ clean
rm -f *.log
rm -f LibD

33
LibDQt/LibDQt.pro Normal file
View 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 +=

View File

@ -18,9 +18,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR cmdLine,
#else
int main(int argc, char** argv) {
#endif
// Start by opening a debug log.
Debug::openLog(true);
Debug::logger->message("\n ----- Engine Loading ------");
// Start by opening a debug log.
Debug::openLog(true);
Debug::logger->message("\n ----- Engine Loading ------");
// Get our window settings.
const int windowWidth = 800;
const int windowHeight = 600;
@ -43,6 +43,7 @@ int main(int argc, char** argv) {
if(!programWindow.Create(windowWidth, windowHeight, windowBPP, windowFullscreen)) {
// If it fails.
#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);
#endif
programWindow.Destroy(); // Reset the display and exit.
@ -50,6 +51,7 @@ int main(int argc, char** argv) {
}
if(!game.Init()) { // Initialize our game.
#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);
#endif
programWindow.Destroy(); // Reset the display and exit.