Loading src/CMakeLists.txt +3 −2 Original line number Diff line number Diff line Loading @@ -10,8 +10,9 @@ set(AGE_LIBRARIES_TO_USE ) set(AGE_TOOLS_TO_USE static_collision_1 static_raycast_1 static_collision static_raycast dynamic_collision ) #################################################################################### Loading src/static_collision_1/CMakeLists.txt→src/dynamic_collision/CMakeLists.txt +1 −1 Original line number Diff line number Diff line set(THIS_TARGET_NAME static_collision_1) set(THIS_TARGET_NAME dynamic_collision) file(GLOB "${THIS_TARGET_NAME}_HPP" "./include/${THIS_TARGET_NAME}/*.hpp") file(GLOB "${THIS_TARGET_NAME}_CPP" "./src/*.cpp") Loading src/static_collision_1/LICENSE.txt→src/dynamic_collision/LICENSE.txt +1 −1 Original line number Diff line number Diff line age static_collision_1 is available under the zlib license: age dynamic_collision is available under the zlib license: ============================================== This software is provided 'as-is', without any express or implied Loading src/static_collision_1/README.md→src/dynamic_collision/README.md +1 −1 Original line number Diff line number Diff line # **static_collision_1** project # **dynamic_collision** project The package provides the tool for composing a scene and editing properties of objects in the scene. The tool depends on the Loading src/dynamic_collision/include/dynamic_collision/index.hpp 0 → 100644 +37 −0 Original line number Diff line number Diff line #ifndef DYNAMIC_COLLISION_INDEX_HPP_INCLUDED # define DYNAMIC_COLLISION_INDEX_HPP_INCLUDED # include <com/context.hpp> # include <com/frame.hpp> namespace dynamic_collision { struct Index final { static Index const& instance(); com::Folder* root() const { return m_root; } com::Frame* camera_frame() const { return m_camera_frame; } com::Frame* grid_frame() const { return m_grid_frame; } private: Index(); Index(Index const&) = delete; Index(Index&&) = delete; Index& operator=(Index const&) const = delete; Index& operator=(Index&&) const = delete; com::Folder* m_root; com::Frame* m_camera_frame; com::Frame* m_grid_frame; }; inline Index const& index() { return Index::instance(); } inline com::Folder* root() { return index().root(); } inline com::Frame* camera_frame() { return index().camera_frame(); } inline com::Frame* grid_frame() { return index().grid_frame(); } } #endif Loading
src/CMakeLists.txt +3 −2 Original line number Diff line number Diff line Loading @@ -10,8 +10,9 @@ set(AGE_LIBRARIES_TO_USE ) set(AGE_TOOLS_TO_USE static_collision_1 static_raycast_1 static_collision static_raycast dynamic_collision ) #################################################################################### Loading
src/static_collision_1/CMakeLists.txt→src/dynamic_collision/CMakeLists.txt +1 −1 Original line number Diff line number Diff line set(THIS_TARGET_NAME static_collision_1) set(THIS_TARGET_NAME dynamic_collision) file(GLOB "${THIS_TARGET_NAME}_HPP" "./include/${THIS_TARGET_NAME}/*.hpp") file(GLOB "${THIS_TARGET_NAME}_CPP" "./src/*.cpp") Loading
src/static_collision_1/LICENSE.txt→src/dynamic_collision/LICENSE.txt +1 −1 Original line number Diff line number Diff line age static_collision_1 is available under the zlib license: age dynamic_collision is available under the zlib license: ============================================== This software is provided 'as-is', without any express or implied Loading
src/static_collision_1/README.md→src/dynamic_collision/README.md +1 −1 Original line number Diff line number Diff line # **static_collision_1** project # **dynamic_collision** project The package provides the tool for composing a scene and editing properties of objects in the scene. The tool depends on the Loading
src/dynamic_collision/include/dynamic_collision/index.hpp 0 → 100644 +37 −0 Original line number Diff line number Diff line #ifndef DYNAMIC_COLLISION_INDEX_HPP_INCLUDED # define DYNAMIC_COLLISION_INDEX_HPP_INCLUDED # include <com/context.hpp> # include <com/frame.hpp> namespace dynamic_collision { struct Index final { static Index const& instance(); com::Folder* root() const { return m_root; } com::Frame* camera_frame() const { return m_camera_frame; } com::Frame* grid_frame() const { return m_grid_frame; } private: Index(); Index(Index const&) = delete; Index(Index&&) = delete; Index& operator=(Index const&) const = delete; Index& operator=(Index&&) const = delete; com::Folder* m_root; com::Frame* m_camera_frame; com::Frame* m_grid_frame; }; inline Index const& index() { return Index::instance(); } inline com::Folder* root() { return index().root(); } inline com::Frame* camera_frame() { return index().camera_frame(); } inline com::Frame* grid_frame() { return index().grid_frame(); } } #endif