-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into dev-sge
- Loading branch information
Showing
64 changed files
with
770 additions
and
550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace VTX::App::Application::Settings | ||
{ | ||
template<typename T> | ||
class Setting; | ||
|
||
class Settings; | ||
} // namespace VTX::App::Application::Settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
lib/app/include/app/application/settings/setting_change_info.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef __VTX_APP_APPLICATION_SETTINGS_SETTINGS_CHANGE_EVENT_INFO__ | ||
#define __VTX_APP_APPLICATION_SETTINGS_SETTINGS_CHANGE_EVENT_INFO__ | ||
|
||
#include <string> | ||
|
||
namespace VTX::App::Application::Settings | ||
{ | ||
class BaseSettingChangeInfo | ||
{ | ||
public: | ||
BaseSettingChangeInfo( const std::string & p_key ) : key( p_key ) {}; | ||
const std::string key; | ||
}; | ||
|
||
template<typename T> | ||
class SettingChangeInfo : public BaseSettingChangeInfo | ||
{ | ||
public: | ||
SettingChangeInfo( const std::string & p_key, const T & p_oldValue, const T & p_newValue ) : | ||
BaseSettingChangeInfo( p_key ), oldValue( p_oldValue ), newValue( p_newValue ) {}; | ||
|
||
const T & oldValue; | ||
const T & newValue; | ||
}; | ||
|
||
} // namespace VTX::App::Application::Settings | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
lib/app/include/app/application/system/settings_system.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef __VTX_APP_APPLICATION_SYSTEM_SETTINGS_SYSTEM__ | ||
#define __VTX_APP_APPLICATION_SYSTEM_SETTINGS_SYSTEM__ | ||
|
||
#include "app/application/settings/settings.hpp" | ||
#include "app/application/system/system_registration.hpp" | ||
#include "app/core/system/base_system.hpp" | ||
|
||
namespace VTX::App::Application::System | ||
{ | ||
class Settings : public Core::System::BaseSystem | ||
{ | ||
public: | ||
inline static const System::SystemRegistration<Settings> SYSTEM = System::SystemRegistration<Settings>(); | ||
|
||
public: | ||
Application::Settings::Settings currentSetting; | ||
}; | ||
} // namespace VTX::App::Application::System | ||
|
||
namespace VTX::App | ||
{ | ||
Application::Settings::Settings & SETTINGS(); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
lib/app/include/app/component/render/proxy_color_layout.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifndef __VTX_APP_COMPONENT_RENDER_PROXY_COLOR_LAYOUT__ | ||
#define __VTX_APP_COMPONENT_RENDER_PROXY_COLOR_LAYOUT__ | ||
|
||
#include "app/application/renderer/proxy_wrapper.hpp" | ||
#include <renderer/facade.hpp> | ||
#include <renderer/proxy/color_layout.hpp> | ||
#include <util/types.hpp> | ||
#include <vector> | ||
|
||
namespace VTX::App::Component::Render | ||
{ | ||
class ProxyColorLayout | ||
{ | ||
public: | ||
ProxyColorLayout(); | ||
~ProxyColorLayout(); | ||
|
||
void setup( Renderer::Facade & p_renderer ); | ||
Application::Renderer::ProxyWrapper<VTX::Renderer::Proxy::ColorLayout> & getProxy() { return _proxyWrapper; }; | ||
|
||
private: | ||
void _addInRenderer( Renderer::Facade & p_renderer ); | ||
void _setupCallbacks(); | ||
|
||
Application::Renderer::ProxyWrapper<VTX::Renderer::Proxy::ColorLayout> _proxyWrapper; | ||
}; | ||
|
||
} // namespace VTX::App::Component::Render | ||
#endif |
29 changes: 29 additions & 0 deletions
29
lib/app/include/app/component/representation/color_layout.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifndef __VTX_APP_COMPONENT_REPRESENTATION_COLOR_LAYOUT__ | ||
#define __VTX_APP_COMPONENT_REPRESENTATION_COLOR_LAYOUT__ | ||
|
||
#include "app/core/ecs/base_component.hpp" | ||
#include <core/struct/color_layout.hpp> | ||
#include <util/callback.hpp> | ||
|
||
namespace VTX::App::Component::Representation | ||
{ | ||
|
||
class ColorLayout : public Core::ECS::BaseComponent | ||
{ | ||
public: | ||
ColorLayout() = default; | ||
|
||
const VTX::Core::Struct::ColorLayout & getLayout() const { return _layout; } | ||
|
||
void setColor( const size_t p_index, const Util::Color::Rgba & p_color ); | ||
void setColors( const std::vector<Util::Color::Rgba> & p_colors ); | ||
|
||
Util::Callback<> onColorChange; | ||
|
||
private: | ||
VTX::Core::Struct::ColorLayout _layout; | ||
}; | ||
|
||
} // namespace VTX::App::Component::Representation | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.