-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d0b725
commit 1db7cbf
Showing
27 changed files
with
282 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
include_directories( | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Skylicht/Collision/Source | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Irrlicht/Include | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Irrlicht/Source | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/ThirdParty/source/curl/include | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Skylicht/System/Source | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Skylicht/Audio/Source | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Skylicht/Engine/Source | ||
) | ||
|
||
file(GLOB_RECURSE skylicht_collision | ||
./Source/*.cpp | ||
./Source/*.hpp | ||
./Source/*.c | ||
./Source/*.h) | ||
setup_project_group("${skylicht_collision}" ${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
add_library(Collision STATIC | ||
${skylicht_collision} | ||
) | ||
|
||
target_precompiled_header(Collision ./Source/pch.cpp ${skylicht_collision}) | ||
|
||
set_target_properties(Collision PROPERTIES VERSION ${SKYLICHT_VERSION}) | ||
|
||
if (BUILD_EMSCRIPTEN) | ||
target_link_libraries(Collision Engine System) | ||
elseif(MSVC) | ||
target_link_libraries(Collision Engine System) | ||
elseif(CYGWIN OR MINGW) | ||
target_link_libraries(Collision Engine System) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// | ||
// pch.cpp | ||
// Include the standard header and generate the precompiled header. | ||
// | ||
|
||
#include "pch.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
// | ||
// pch.h | ||
// Header for standard system include files. | ||
// | ||
|
||
#pragma once | ||
|
||
#if defined(_WIN32) | ||
|
||
#ifdef USE_SKYLICHT_NETWORK | ||
#include <Ws2tcpip.h> | ||
#include <Winsock2.h> | ||
#endif | ||
|
||
#include <memory.h> | ||
#include <stdlib.h> | ||
|
||
// Windows Header Files: | ||
#include <windows.h> | ||
#else | ||
#include <memory.h> | ||
#include <unistd.h> | ||
|
||
#ifdef USE_SKYLICHT_NETWORK | ||
#include <netinet/in.h> | ||
#include <net/if.h> | ||
#include <arpa/inet.h> | ||
#include <fcntl.h> | ||
#include <errno.h> | ||
#include <sys/ioctl.h> | ||
#include <sys/types.h> | ||
#include <sys/select.h> | ||
#include <sys/socket.h> | ||
#include <netdb.h> | ||
#endif | ||
|
||
#define SOCKET int | ||
#define INVALID_SOCKET -1 | ||
#define SOCKET_ERROR -1 | ||
#endif | ||
|
||
// IRRLICHT 3D ENGINE | ||
#include "irrlicht.h" | ||
#include "IRandomizer.h" | ||
#include "ILogger.h" | ||
#include "irrOS.h" | ||
|
||
using namespace irr; | ||
using namespace irr::scene; | ||
using namespace irr::video; | ||
|
||
// SPARK ENGINE | ||
// #include "SPK.h" | ||
// #include "SPK_IRR.h" | ||
|
||
|
||
// STL C++ | ||
#include <algorithm> | ||
#include <vector> | ||
#include <list> | ||
#include <map> | ||
#include <stack> | ||
#include <queue> | ||
#include <fstream> | ||
#include <string> | ||
|
||
namespace Skylicht | ||
{ | ||
|
||
// getIrrlichtDevice | ||
extern IrrlichtDevice* getIrrlichtDevice(); | ||
|
||
// getVideoDriver | ||
extern IVideoDriver* getVideoDriver(); | ||
|
||
// getTimeStep | ||
extern float getTimeStep(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
include_directories( | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Skylicht/Physics/Source | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Irrlicht/Include | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Irrlicht/Source | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/ThirdParty/source/curl/include | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Skylicht/System/Source | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Skylicht/Audio/Source | ||
${SKYLICHT_ENGINE_SOURCE_DIR}/Projects/Skylicht/Engine/Source | ||
) | ||
|
||
file(GLOB_RECURSE skylicht_physics | ||
./Source/*.cpp | ||
./Source/*.hpp | ||
./Source/*.c | ||
./Source/*.h) | ||
setup_project_group("${skylicht_physics}" ${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
add_library(Physics STATIC | ||
${skylicht_physics} | ||
) | ||
|
||
target_precompiled_header(Physics ./Source/pch.cpp ${skylicht_physics}) | ||
|
||
set_target_properties(Physics PROPERTIES VERSION ${SKYLICHT_VERSION}) | ||
|
||
if (BUILD_EMSCRIPTEN) | ||
target_link_libraries(Physics Engine System) | ||
elseif(MSVC) | ||
target_link_libraries(Physics Engine System) | ||
elseif(CYGWIN OR MINGW) | ||
target_link_libraries(Physics Engine System) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// | ||
// pch.cpp | ||
// Include the standard header and generate the precompiled header. | ||
// | ||
|
||
#include "pch.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
// | ||
// pch.h | ||
// Header for standard system include files. | ||
// | ||
|
||
#pragma once | ||
|
||
#if defined(_WIN32) | ||
|
||
#ifdef USE_SKYLICHT_NETWORK | ||
#include <Ws2tcpip.h> | ||
#include <Winsock2.h> | ||
#endif | ||
|
||
#include <memory.h> | ||
#include <stdlib.h> | ||
|
||
// Windows Header Files: | ||
#include <windows.h> | ||
#else | ||
#include <memory.h> | ||
#include <unistd.h> | ||
|
||
#ifdef USE_SKYLICHT_NETWORK | ||
#include <netinet/in.h> | ||
#include <net/if.h> | ||
#include <arpa/inet.h> | ||
#include <fcntl.h> | ||
#include <errno.h> | ||
#include <sys/ioctl.h> | ||
#include <sys/types.h> | ||
#include <sys/select.h> | ||
#include <sys/socket.h> | ||
#include <netdb.h> | ||
#endif | ||
|
||
#define SOCKET int | ||
#define INVALID_SOCKET -1 | ||
#define SOCKET_ERROR -1 | ||
#endif | ||
|
||
// IRRLICHT 3D ENGINE | ||
#include "irrlicht.h" | ||
#include "IRandomizer.h" | ||
#include "ILogger.h" | ||
#include "irrOS.h" | ||
|
||
using namespace irr; | ||
using namespace irr::scene; | ||
using namespace irr::video; | ||
|
||
// SPARK ENGINE | ||
// #include "SPK.h" | ||
// #include "SPK_IRR.h" | ||
|
||
|
||
// STL C++ | ||
#include <algorithm> | ||
#include <vector> | ||
#include <list> | ||
#include <map> | ||
#include <stack> | ||
#include <queue> | ||
#include <fstream> | ||
#include <string> | ||
|
||
namespace Skylicht | ||
{ | ||
|
||
// getIrrlichtDevice | ||
extern IrrlichtDevice* getIrrlichtDevice(); | ||
|
||
// getVideoDriver | ||
extern IVideoDriver* getVideoDriver(); | ||
|
||
// getTimeStep | ||
extern float getTimeStep(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.