Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into dev-vge
  • Loading branch information
ValentinGuillaume committed Sep 10, 2024
2 parents 2e88307 + 660a0ed commit da773a3
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 331 deletions.
4 changes: 2 additions & 2 deletions app/bench/src/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ namespace VTX::Bench
_molecules.emplace_back( std::make_unique<Core::Struct::Molecule>( downloadMolecule( p_name ) ) );
}

_molecules.back()->transform
= Math::translate( _molecules.back()->transform, Math::randomVec3f() * 200.f - 100.f );
//_molecules.back()->transform
// = Math::translate( _molecules.back()->transform, Math::randomVec3f() * 200.f - 100.f );
IO::Util::SecondaryStructure::computeStride( *_molecules.back() );
_proxyMolecules.emplace_back( _proxify( *_molecules.back() ) );
_directions.emplace_back( Math::randomVec3f() * 2.f - 1.f );
Expand Down
31 changes: 0 additions & 31 deletions lib/app/include/app/controller/shortcut/debug.hpp

This file was deleted.

33 changes: 0 additions & 33 deletions lib/app/include/app/controller/shortcut/global.hpp

This file was deleted.

36 changes: 0 additions & 36 deletions lib/app/include/app/controller/shortcut/visualization.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion lib/app/include/app/core/controller/base_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace VTX::App::Core::Controller

// inline bool isTargetWidgetFocused() const { return _widgetTarget == nullptr || _widgetTarget->hasFocus(); }

virtual VTX::Hash getHashedCollectionID() const = 0;
virtual VTX::Hash getHashedCollectionID() const = 0;
virtual std::unique_ptr<BaseController> clone() const = 0;

protected:
Expand Down
27 changes: 0 additions & 27 deletions lib/app/include/app/core/controller/base_shortcut_controller.hpp

This file was deleted.

12 changes: 12 additions & 0 deletions lib/app/include/app/core/controller/concepts.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef __VTX_APP_CORE_CONTROLLER_CONCEPT__
#define __VTX_APP_CORE_CONTROLLER_CONCEPT__

#include <concepts>

template<typename C>
concept Concept = requires( C p_controller, const float p_deltaTime ) {
{ p_controller.init() } -> std::same_as<void>;
{ p_controller.update( p_deltaTime ) } -> std::same_as<void>;
};

#endif
11 changes: 0 additions & 11 deletions lib/app/include/app/core/init_visualization_mode.hpp

This file was deleted.

1 change: 1 addition & 0 deletions lib/app/include/app/mode/base_mode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace VTX::App::Mode
virtual const std::string & getName() const = 0;

virtual void enter() {}
// TODO: use concept to avoid virtual call in main loop.
virtual void update( const float p_deltaTime ) {};
virtual void exit() {};
};
Expand Down
21 changes: 0 additions & 21 deletions lib/app/src/app/controller/shortcut/debug.cpp

This file was deleted.

21 changes: 0 additions & 21 deletions lib/app/src/app/controller/shortcut/global.cpp

This file was deleted.

51 changes: 0 additions & 51 deletions lib/app/src/app/controller/shortcut/visualization.cpp

This file was deleted.

8 changes: 1 addition & 7 deletions lib/app/src/app/core/animation/animation_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@

namespace VTX::App::Core::Animation
{
AnimationSystem::AnimationSystem()
{
_currentAnimationIt = _animationSequence.end();

// TODO: call from app::update().
// APP::onUpdate += [ this ]( const float p_deltaTime, const float p_elapsedTime ) { update( p_deltaTime ); };
}
AnimationSystem::AnimationSystem() { _currentAnimationIt = _animationSequence.end(); }

void AnimationSystem::play()
{
Expand Down
28 changes: 0 additions & 28 deletions lib/app/src/app/core/controller/base_shortcut_controller.cpp

This file was deleted.

57 changes: 0 additions & 57 deletions lib/app/src/app/core/init_visualization_mode.cpp

This file was deleted.

Loading

0 comments on commit da773a3

Please sign in to comment.