16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 18:39:18 +02:00

Merge branch 'master' into gfx-work

This commit is contained in:
milek7
2018-09-20 19:14:28 +02:00
114 changed files with 9353 additions and 6114 deletions

View File

@@ -64,6 +64,8 @@ struct bounding_area {
deserialize( std::istream &Input );
};
using group_handle = std::size_t;
struct node_data {
double range_min { 0.0 };
@@ -300,7 +302,7 @@ private:
// base interface for nodes which can be actvated in scenario editor
struct basic_node {
class basic_node {
public:
// constructor
@@ -331,9 +333,14 @@ public:
visible( bool const Visible );
bool
visible() const;
void
group( scene::group_handle Group );
scene::group_handle
group() const;
protected:
// members
scene::group_handle m_group { null_handle }; // group this node belongs to, if any
scene::bounding_area m_area;
double m_rangesquaredmin { 0.0 }; // visibility range, min
double m_rangesquaredmax { 0.0 }; // visibility range, max
@@ -382,6 +389,18 @@ basic_node::visible() const {
return m_visible;
}
inline
void
basic_node::group( scene::group_handle Group ) {
m_group = Group;
}
inline
scene::group_handle
basic_node::group() const {
return m_group;
}
} // scene
//---------------------------------------------------------------------------