-
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.
- Loading branch information
Showing
297 changed files
with
1,234 additions
and
997 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,56 @@ | ||
name: CMake UI | ||
|
||
on: | ||
push: | ||
branches: [ "master", "dev", "dev-ndy", "dev-sge", "dev-vge" ] | ||
paths: ['lib/ui/**', '.github/workflows/cmake_ui.yml'] | ||
|
||
env: | ||
CMAKELISTS_DIR: ${{github.workspace}}/lib/ui | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-2019, ubuntu-22.04, macos-12] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Set git to use CRLF | ||
run: | | ||
git config --global core.autocrlf true | ||
git config --global core.eol crlf | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Get Conan | ||
uses: turtlebrowser/[email protected] | ||
|
||
- name: Create default profile | ||
run: conan profile detect | ||
|
||
- name: Add custom remote | ||
run: | | ||
conan remote add --insecure cano7782 ${{ secrets.CONAN_SERVER_HOST }} | ||
conan remote login -p ${{ secrets.CONAN_SERVER_PASSWORD }} cano7782 ${{ secrets.CONAN_SERVER_USER }} | ||
- name: Create package | ||
working-directory: ${{env.CMAKELISTS_DIR}} | ||
run: | | ||
conan export ../util | ||
conan export ../core | ||
conan export ../io | ||
conan export ../renderer | ||
conan export ../app | ||
conan export ../python_binding | ||
conan create . --build=missing --settings=compiler.cppstd=20 -c tools.system.package_manager:mode=install -c tools.system.package_manager:sudo=True | ||
# TODO: tests without gui? | ||
|
||
- name: Upload dependencies | ||
working-directory: ${{env.CMAKELISTS_DIR}} | ||
run: | | ||
conan upload qt -r=cano7782 |
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
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,59 @@ | ||
#ifndef __VTX_UI_INTERNAL_CONTROLLER_CAMERA_FREEFLY__ | ||
#define __VTX_UI_INTERNAL_CONTROLLER_CAMERA_FREEFLY__ | ||
|
||
#include "app/core/controller/base_camera_controller.hpp" | ||
#include "app/core/controller/controller_manager.hpp" | ||
#include "app/core/input/key_mapping.hpp" | ||
#include "app/settings.hpp" | ||
#include <util/hashing.hpp> | ||
|
||
namespace VTX::App::Controller::Camera | ||
{ | ||
|
||
class Freefly : public Core::Controller::BaseCameraController | ||
{ | ||
public: | ||
inline static const Core::CollectionKey COLLECTION_ID = "CONTROLLER_FREEFLY"; | ||
inline static const VTX::Util::Hashing::Hash HASHED_COLLECTION_ID = VTX::Util::Hashing::hash( COLLECTION_ID ); | ||
|
||
private: | ||
inline static const Core::Controller::ControllerCollection::Registration<Freefly> _reg { COLLECTION_ID }; | ||
|
||
public: | ||
enum class Keys : int | ||
{ | ||
MOVE_LEFT, | ||
MOVE_RIGHT, | ||
MOVE_FRONT, | ||
MOVE_BACK, | ||
MOVE_UP, | ||
MOVE_DOWN, | ||
}; | ||
|
||
public: | ||
Freefly() = default; | ||
Freefly( const Freefly & p_source ) = default; | ||
~Freefly() = default; | ||
|
||
void init() override; | ||
void setActive( const bool p_active ) override; | ||
|
||
inline VTX::Util::Hashing::Hash getHashedCollectionID() const override { return HASHED_COLLECTION_ID; }; | ||
std::unique_ptr<BaseController> clone() const { return std::make_unique<Freefly>( *this ); }; | ||
|
||
float translationSpeed = Setting::Controller::TRANSLATION_SPEED_DEFAULT; | ||
float accelerationFactor = Setting::Controller::ACCELERATION_FACTOR_DEFAULT; | ||
float decelerationFactor = Setting::Controller::DECELERATION_FACTOR_DEFAULT; | ||
float rotationSpeed = Setting::Controller::ROTATION_SPEED_DEFAULT; | ||
bool invertY = Setting::Controller::INVERT_Y_DEFAULT; | ||
bool elasticityActive = Setting::Controller::ELASTICITY_ACTIVE_DEFAULT; | ||
float elasticityFactor = Setting::Controller::ELASTICITY_FACTOR_DEFAULT; | ||
|
||
protected: | ||
void _updateInputs( const float & p_deltaTime ) override; | ||
|
||
private: | ||
Core::Input::KeyMapping _mapping; | ||
}; | ||
} // namespace VTX::App::Controller::Camera | ||
#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
File renamed without changes.
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.