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

position and rotation adjustment value snap mode in scenery editor, position adjustment for memory cells in scenery editor

This commit is contained in:
tmj-fstate
2018-07-10 01:09:20 +02:00
parent e01f05f57c
commit 219e8badc5
8 changed files with 102 additions and 10 deletions

View File

@@ -17,6 +17,8 @@ class basic_editor {
public:
// methods
bool
on_key( int const Key, int const Action );
bool
on_mouse_button( int const Button, int const Action );
bool
@@ -43,6 +45,8 @@ private:
mode_translation() const;
bool
mode_translation_vertical() const;
bool
mode_snap() const;
void
translate( glm::dvec3 const &Location );
void
@@ -51,6 +55,10 @@ private:
translate_instance( TAnimModel *Instance, glm::dvec3 const &Location );
void
translate_instance( TAnimModel *Instance, float const Offset );
void
translate_memorycell( TMemCell *Memorycell, glm::dvec3 const &Location );
void
translate_memorycell( TMemCell *Memorycell, float const Offset );
void
rotate( glm::vec3 const &Angle );
void