2024-05-25 12:55:57 -04:00
|
|
|
|
2024-05-26 03:18:09 -04:00
|
|
|
// Test main method can go in here, can be useful for quick testing in the console.
|
|
|
|
//#define _TEST
|
|
|
|
#ifdef _TEST
|
|
|
|
#include <string.h>
|
2024-05-17 15:29:29 -04:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
int main(int, char**)
|
|
|
|
{
|
2024-05-26 03:18:09 -04:00
|
|
|
|
|
|
|
std::cout << "Hello World!" << std::endl;
|
2024-05-17 15:29:29 -04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-05-25 12:55:57 -04:00
|
|
|
#else
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
// Main code
|
|
|
|
// I moved the DirectX9 code into the test/directx9_test.cpp file,
|
|
|
|
// The code above is disabled with a preprocessor.
|
|
|
|
|
|
|
|
#ifdef _DIRECTX9
|
|
|
|
#include "test/directx9_test.h"
|
|
|
|
#endif //_DIRECTX9
|
|
|
|
|
|
|
|
#ifdef _OPENGL
|
|
|
|
#include "test/opengl_test.h"
|
|
|
|
#endif //_OPENGL
|
|
|
|
|
|
|
|
int main(int, char**)
|
|
|
|
{
|
|
|
|
#ifdef _DIRECTX9
|
|
|
|
DirectX9Test::directX9Test();
|
|
|
|
#endif //_DIRECTX9
|
|
|
|
|
|
|
|
#ifdef _OPENGL
|
|
|
|
OpenGLTest::openGLTest();
|
|
|
|
#endif //_OPENGL
|
|
|
|
|
|
|
|
//std::cout << "Hello World";
|
|
|
|
}
|
|
|
|
#endif // _TEST
|