mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 05:09:20 +02:00
feat(scenery): models laid along curves (sweep nodes), bent to follow the paths or repeated along them, loaded and saved with the scenery; trainsets put on a path while the simulation runs; trainset turned around by reversed after its header: the first vehicle stays at the offset and leads towards point 1, the rest stands behind it; launcher keeps reversed trainsets and can turn one around; memory cells saved with the new name of the path they name; events tell their targets and the events of a multiple event; renderer tells whether the cursor is over a surface; vehicle placed in the editor entered when the driving goes on
This commit is contained in:
@@ -149,6 +149,9 @@ public:
|
||||
// set lighting (used by generated geometry painted with plain colour)
|
||||
void
|
||||
lighting( lighting_data const &Lighting );
|
||||
// sets whether the shape is drawn with the translucent geometry (used by generated geometry)
|
||||
void
|
||||
translucent( bool const Translucent );
|
||||
// data access
|
||||
shapenode_data const &
|
||||
data() const;
|
||||
@@ -186,6 +189,11 @@ void
|
||||
shape_node::lighting( lighting_data const &Lighting ) {
|
||||
m_data.lighting = Lighting;
|
||||
}
|
||||
inline
|
||||
void
|
||||
shape_node::translucent( bool const Translucent ) {
|
||||
m_data.translucent = Translucent;
|
||||
}
|
||||
// data access
|
||||
inline
|
||||
shape_node::shapenode_data const &
|
||||
|
||||
Reference in New Issue
Block a user