Commit 432a39a1 authored by Michal Petr's avatar Michal Petr
Browse files

refactor: Renaming

parent 485fd694
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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
    )

####################################################################################
+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")
+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
+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
+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