diff --git a/docs-preview/pr-954/annotated.html b/docs-preview/pr-954/annotated.html index d9cb850a5..8f5f68ac6 100644 --- a/docs-preview/pr-954/annotated.html +++ b/docs-preview/pr-954/annotated.html @@ -300,6 +300,7 @@

Classes

  • struct GamepadConnectionEvent Event sent when a gamepad is connected or disconnected.
  • struct GamepadState Holds the state of a gamepad.
  • struct KeyEvent Event sent when a key is pressed or released.
  • +
  • struct KeyWithModifiers Keyboard key code and modifier flags.
  • struct ModifiersEvent Event sent when the modifiers change.
  • struct MouseButtonEvent Event sent when a mouse button state changes.
  • struct MouseMoveEvent Event sent when the mouse cursor moves.
  • @@ -343,6 +344,7 @@

    Classes

  • class AddressOfImpl Implementation of AddressOf for a pointer to member.
  • +
  • class MaskTrait Provides mask functionality to an enum mask type.
  • class NullableTrait Used to manipulate values of null-representable types.
  • struct Reflect Defines the reflection function for the given type T.
  • class StringConversionTrait Stores functions for converting a type to and from a string.
  • diff --git a/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1Blueprint.html b/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1Blueprint.html index ca35a48f6..186419e41 100644 --- a/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1Blueprint.html +++ b/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1Blueprint.html @@ -122,9 +122,8 @@

    Public functions

    Adds a relation between two entities. Overwrites the existing relation, if there's any.
    - void merge(const std::string& prefix, - const Blueprint& other, - bool withName) + void merge(const std::string& prefix, + const Blueprint& other)
    Merges another blueprint into this one.
    @@ -328,11 +327,10 @@

    -
    +

    - void cubos::core::ecs::Blueprint::merge(const std::string& prefix, - const Blueprint& other, - bool withName) + void cubos::core::ecs::Blueprint::merge(const std::string& prefix, + const Blueprint& other)

    Merges another blueprint into this one.

    @@ -348,10 +346,6 @@

    - - - -
    other Blueprint to merge.
    withNameWhether to use the entity names from the other blueprint.

    Entities in the other blueprint will have their names prefixed with the specified string.

    @@ -402,7 +396,7 @@

    withName - Whether to use the entity names from the blueprint. + Whether to add the 'Name' component to instantiated entities. diff --git a/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1CommandBuffer.html b/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1CommandBuffer.html index 6f3fe978b..01297b8f9 100644 --- a/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1CommandBuffer.html +++ b/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1CommandBuffer.html @@ -83,8 +83,7 @@

    Public functions

    Destroys an entity.
    - auto spawn(const Blueprint& blueprint, - bool withName) -> std::unordered_map<std::string, Entity> + auto spawn(const Blueprint& blueprint) -> std::unordered_map<std::string, Entity>
    Spawns a blueprint into the world.
    @@ -171,10 +170,9 @@

    -
    +

    - std::unordered_map<std::string, Entity> cubos::core::ecs::CommandBuffer::spawn(const Blueprint& blueprint, - bool withName) + std::unordered_map<std::string, Entity> cubos::core::ecs::CommandBuffer::spawn(const Blueprint& blueprint)

    Spawns a blueprint into the world.

    @@ -186,10 +184,6 @@

    - - - - diff --git a/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1Commands.html b/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1Commands.html index b81efe11a..14728cfc0 100644 --- a/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1Commands.html +++ b/docs-preview/pr-954/classcubos_1_1core_1_1ecs_1_1Commands.html @@ -88,8 +88,7 @@

    Public functions

    Destroys an entity.
    - auto spawn(const Blueprint& blueprint, - bool withName) -> BlueprintBuilder + auto spawn(const Blueprint& blueprint) -> BlueprintBuilder
    Spawns a blueprint into the world.
    @@ -192,10 +191,9 @@

    blueprint Blueprint to spawn.
    withNameWhether to use the entity names from the blueprint.
    -
    +

    - BlueprintBuilder cubos::core::ecs::Commands::spawn(const Blueprint& blueprint, - bool withName) + BlueprintBuilder cubos::core::ecs::Commands::spawn(const Blueprint& blueprint)

    Spawns a blueprint into the world.

    @@ -207,10 +205,6 @@

    - - - - diff --git a/docs-preview/pr-954/classcubos_1_1core_1_1reflection_1_1EnumTrait.html b/docs-preview/pr-954/classcubos_1_1core_1_1reflection_1_1EnumTrait.html index f0459c25f..625a3dced 100644 --- a/docs-preview/pr-954/classcubos_1_1core_1_1reflection_1_1EnumTrait.html +++ b/docs-preview/pr-954/classcubos_1_1core_1_1reflection_1_1EnumTrait.html @@ -47,6 +47,7 @@

    cubos::core::reflection::EnumTrait class +

    Provides enumeration functionality to an enumerated type.

    blueprint Blueprint to spawn.
    withNameWhether to use the entity names from the blueprint.
    + + + + + + +
    ReturnsIterator.
    +
    +
    +

    + cubos::core::reflection::MaskTrait::MaskTrait(MaskTrait&& other) noexcept +

    +

    Move constructs.

    + + + + + + + + + + +
    Parameters
    otherOther trait.
    +
    +
    +

    + void cubos::core::reflection::MaskTrait::addBit(std::string name, + Tester tester, + Setter setter, + Clearer clearer) +

    +

    Adds a bit to the type.

    + + + + + + + + + + + + + + + + + + + + + + +
    Parameters
    nameBit name.
    testerFunction to test if a bit is set on the mask.
    setterFunction to set a bit on the mask.
    clearerFunction to clear a bit on the mask.
    +
    +
    +

    + MaskTrait&& cubos::core::reflection::MaskTrait::withBit(std::string name, + Tester tester, + Setter setter, + Clearer clearer) && +

    +

    Adds a bit to the type.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Parameters
    nameBit name.
    testerFunction to test if a bit is set on the mask.
    setterFunction to set a bit on the mask.
    clearerFunction to clear a bit on the mask.
    ReturnsTrait.
    +
    +
    +

    +
    + template<auto B> +
    + MaskTrait&& cubos::core::reflection::MaskTrait::withBit(std::string name) && +

    +

    Adds a bit to the type.

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Template parameters
    BBit value.
    Parameters
    nameBit name.
    ReturnsTrait.
    +

    The bit type must implement at least the operators '&', '|' and '~'.

    +
    +
    +

    + bool cubos::core::reflection::MaskTrait::contains(const std::string& name) const +

    +

    Checks if a bit with the given name exists.

    + + + + + + + + + + + + + + + + +
    Parameters
    nameBit name.
    ReturnsWhether the bit exists.
    +
    +
    +

    + const Bit& cubos::core::reflection::MaskTrait::at(const std::string& name) const +

    +

    Gets the bit with the specified name.

    + + + + + + + + + + + + + + + + +
    Parameters
    nameBit name.
    ReturnsReference.
    + +
    +
    +

    + Iterator cubos::core::reflection::MaskTrait::begin() const +

    +

    Gets an iterator to the first bit of the type.

    + + + + + + + +
    ReturnsIterator.
    +
    +
    +

    + std::size_t cubos::core::reflection::MaskTrait::size() const +

    +

    Returns how many bits there are in the trait.

    + + + + + + + +
    ReturnsBit count.
    +
    +
    +

    + View cubos::core::reflection::MaskTrait::view(void* instance) const +

    +

    Returns a view of the given mask instance.

    + + + + + + + + + + + + + + + + +
    Parameters
    instanceMask instance.
    ReturnsMask view.
    +
    +
    +

    + ConstView cubos::core::reflection::MaskTrait::view(const void* instance) const +

    +

    Returns a view of the given mask instance.

    + + + + + + + + + + + + + + + + +
    Parameters
    instanceMask instance.
    ReturnsMask view.
    +
    +
    +
    + + + + + + +
    + + diff --git a/docs-preview/pr-954/classcubos_1_1engine_1_1DataInspector.html b/docs-preview/pr-954/classcubos_1_1engine_1_1DataInspector.html index d23b49c27..a113bd5bf 100644 --- a/docs-preview/pr-954/classcubos_1_1engine_1_1DataInspector.html +++ b/docs-preview/pr-954/classcubos_1_1engine_1_1DataInspector.html @@ -66,37 +66,32 @@

    Contents

    Public functions

    - void show(const std::string& name, - const core::reflection::Type& type, + void show(const core::reflection::Type& type, const void* value)
    Displays a reflectable value on the UI.
    - auto edit(const std::string& name, - const core::reflection::Type& type, + auto edit(const core::reflection::Type& type, void* value) -> bool
    Displays a reflectable value on the UI and allows modifying it.
    template<typename T>
    - void show(const std::string& name, - const T& value) + void show(const T& value)
    Displays a reflectable value on the UI.
    template<typename T>
    - auto edit(const std::string& name, - T& value) -> bool + auto edit(T& value) -> bool
    Displays a reflectable value on the UI and allows modifying it.

    Function documentation

    -
    +

    - void cubos::engine::DataInspector::show(const std::string& name, - const core::reflection::Type& type, + void cubos::engine::DataInspector::show(const core::reflection::Type& type, const void* value)

    Displays a reflectable value on the UI.

    @@ -106,11 +101,7 @@

    - name - Value name. - - - type + type Value type. @@ -119,12 +110,10 @@

    -

    -
    +

    - bool cubos::engine::DataInspector::edit(const std::string& name, - const core::reflection::Type& type, + bool cubos::engine::DataInspector::edit(const core::reflection::Type& type, void* value)

    Displays a reflectable value on the UI and allows modifying it.

    @@ -134,11 +123,7 @@

    - name - Value name. - - - type + type Value type. @@ -153,15 +138,13 @@

    -

    -
    +

    template<typename T>
    - void cubos::engine::DataInspector::show(const std::string& name, - const T& value) + void cubos::engine::DataInspector::show(const T& value)

    Displays a reflectable value on the UI.

    @@ -178,25 +161,19 @@

    - - - -
    Parameters
    nameValue name.
    value Pointer to value.
    -
    -
    +

    template<typename T>
    - bool cubos::engine::DataInspector::edit(const std::string& name, - T& value) + bool cubos::engine::DataInspector::edit(T& value)

    Displays a reflectable value on the UI and allows modifying it.

    @@ -213,10 +190,6 @@

    - - - - @@ -229,7 +202,6 @@

    Parameters
    nameValue name.
    value Pointer to value.
    -
    diff --git a/docs-preview/pr-954/classcubos_1_1engine_1_1InputAction.html b/docs-preview/pr-954/classcubos_1_1engine_1_1InputAction.html index dfa3788c8..0400dff02 100644 --- a/docs-preview/pr-954/classcubos_1_1engine_1_1InputAction.html +++ b/docs-preview/pr-954/classcubos_1_1engine_1_1InputAction.html @@ -71,7 +71,7 @@

    Constructors, destructors, conversion operators<

    Constructs without any bindings.
    - InputAction(std::vector<std::pair<core::io::Key, core::io::Modifiers>> keys, + InputAction(std::vector<core::io::KeyWithModifiers> keys, std::vector<core::io::GamepadButton> gamepadButtons, std::vector<core::io::MouseButton> mouseButtons)
    @@ -82,11 +82,11 @@

    Constructors, destructors, conversion operators<

    Public functions

    - auto keys() const -> const std::vector<std::pair<core::io::Key, core::io::Modifiers>>& + auto keys() const -> const std::vector<core::io::KeyWithModifiers>&
    Gets the key bindings.
    - auto keys() -> std::vector<std::pair<core::io::Key, core::io::Modifiers>>& + auto keys() -> std::vector<core::io::KeyWithModifiers>&
    Gets the key bindings.
    @@ -117,9 +117,9 @@

    Public functions

    Function documentation

    -
    +

    - cubos::engine::InputAction::InputAction(std::vector<std::pair<core::io::Key, core::io::Modifiers>> keys, + cubos::engine::InputAction::InputAction(std::vector<core::io::KeyWithModifiers> keys, std::vector<core::io::GamepadButton> gamepadButtons, std::vector<core::io::MouseButton> mouseButtons)

    @@ -144,9 +144,9 @@

    -
    +

    - const std::vector<std::pair<core::io::Key, core::io::Modifiers>>& cubos::engine::InputAction::keys() const + const std::vector<core::io::KeyWithModifiers>& cubos::engine::InputAction::keys() const

    Gets the key bindings.

    @@ -158,9 +158,9 @@

    -
    +

    - std::vector<std::pair<core::io::Key, core::io::Modifiers>>& cubos::engine::InputAction::keys() + std::vector<core::io::KeyWithModifiers>& cubos::engine::InputAction::keys()

    Gets the key bindings.

    diff --git a/docs-preview/pr-954/classcubos_1_1engine_1_1InputAxis.html b/docs-preview/pr-954/classcubos_1_1engine_1_1InputAxis.html index 404abad65..65876c9d1 100644 --- a/docs-preview/pr-954/classcubos_1_1engine_1_1InputAxis.html +++ b/docs-preview/pr-954/classcubos_1_1engine_1_1InputAxis.html @@ -71,8 +71,8 @@

    Constructors, destructors, conversion operators<
    Constructs without any bindings.
    - InputAxis(std::vector<std::pair<core::io::Key, core::io::Modifiers>> positive, - std::vector<std::pair<core::io::Key, core::io::Modifiers>> negative, + InputAxis(std::vector<core::io::KeyWithModifiers> positive, + std::vector<core::io::KeyWithModifiers> negative, std::vector<core::io::GamepadAxis> gamepadAxes)
    Constructs with existing bindings.
    @@ -82,11 +82,11 @@

    Constructors, destructors, conversion operators<

    Public functions

    - auto positive() const -> const std::vector<std::pair<core::io::Key, core::io::Modifiers>>& + auto positive() const -> const std::vector<core::io::KeyWithModifiers>&
    Gets the positive key bindings.
    - auto negative() const -> const std::vector<std::pair<core::io::Key, core::io::Modifiers>>& + auto negative() const -> const std::vector<core::io::KeyWithModifiers>&
    Gets the negative key bindings.
    @@ -94,11 +94,11 @@

    Public functions

    Gets the gamepad axis bindings.
    - auto positive() -> std::vector<std::pair<core::io::Key, core::io::Modifiers>>& + auto positive() -> std::vector<core::io::KeyWithModifiers>&
    Gets the positive key bindings.
    - auto negative() -> std::vector<std::pair<core::io::Key, core::io::Modifiers>>& + auto negative() -> std::vector<core::io::KeyWithModifiers>&
    Gets the negative key bindings.
    @@ -117,10 +117,10 @@

    Public functions

    Function documentation

    -
    +

    - cubos::engine::InputAxis::InputAxis(std::vector<std::pair<core::io::Key, core::io::Modifiers>> positive, - std::vector<std::pair<core::io::Key, core::io::Modifiers>> negative, + cubos::engine::InputAxis::InputAxis(std::vector<core::io::KeyWithModifiers> positive, + std::vector<core::io::KeyWithModifiers> negative, std::vector<core::io::GamepadAxis> gamepadAxes)

    Constructs with existing bindings.

    @@ -144,9 +144,9 @@

    -
    +

    - const std::vector<std::pair<core::io::Key, core::io::Modifiers>>& cubos::engine::InputAxis::positive() const + const std::vector<core::io::KeyWithModifiers>& cubos::engine::InputAxis::positive() const

    Gets the positive key bindings.

    @@ -158,9 +158,9 @@

    -
    +

    - const std::vector<std::pair<core::io::Key, core::io::Modifiers>>& cubos::engine::InputAxis::negative() const + const std::vector<core::io::KeyWithModifiers>& cubos::engine::InputAxis::negative() const

    Gets the negative key bindings.

    @@ -186,9 +186,9 @@

    -
    +

    - std::vector<std::pair<core::io::Key, core::io::Modifiers>>& cubos::engine::InputAxis::positive() + std::vector<core::io::KeyWithModifiers>& cubos::engine::InputAxis::positive()

    Gets the positive key bindings.

    @@ -200,9 +200,9 @@

    -
    +

    - std::vector<std::pair<core::io::Key, core::io::Modifiers>>& cubos::engine::InputAxis::negative() + std::vector<core::io::KeyWithModifiers>& cubos::engine::InputAxis::negative()

    Gets the negative key bindings.

    diff --git a/docs-preview/pr-954/controller_8hpp.html b/docs-preview/pr-954/controller_8hpp.html index f9f427b2a..3a41770b2 100644 --- a/docs-preview/pr-954/controller_8hpp.html +++ b/docs-preview/pr-954/controller_8hpp.html @@ -2,7 +2,7 @@ - engine/utils/free_camera_controller/controller.hpp file | CUBOS. Docs + engine/utils/free_camera/controller.hpp file | CUBOS. Docs @@ -46,7 +46,7 @@

    - engine/utils/free_camera_controller/controller.hpp file + engine/utils/free_camera/controller.hpp file

    Component cubos::engine::FreeCameraController.

    -
    -

    - std::string modifiersToString(Modifiers modifiers) - -

    -

    Converts a Modifiers enum to a string.

    - - - - - - - - - - - - - - - - -
    Parameters
    modifiersModifiers.
    ReturnsString representation.
    -
    -
    -

    - Modifiers stringToModifiers(const std::string& str) - -

    -

    Converts a string to a Modifiers enum.

    - - - - - - - - - - - - - - - - -
    Parameters
    strString to convert.
    ReturnsModifiers.
    -
    -
    -

    - std::string keyToString(Key key) - -

    -

    Converts a Key enum to a string.

    - - - - - - - - - - - - - - - - -
    Parameters
    keyKey to convert.
    ReturnsString representation.
    -
    -
    -

    - Key stringToKey(const std::string& str) - -

    -

    Convert a string to a Key enum.

    - - - - - - - - - - - - - - - - -
    Parameters
    strThe string to convert.
    ReturnsKey.
    -

    Window openWindow(const std::string& title = "CUBOS.", diff --git a/docs-preview/pr-954/group__core-reflection.html b/docs-preview/pr-954/group__core-reflection.html index 853c638c1..3c88679f5 100644 --- a/docs-preview/pr-954/group__core-reflection.html +++ b/docs-preview/pr-954/group__core-reflection.html @@ -97,8 +97,12 @@

    Files

    Utilities for cubos::core::reflection::ConstructibleTrait.
    file dictionary.hpp
    Class cubos::core::reflection::DictionaryTrait.
    +
    file enum.hpp
    +
    Class cubos::core::reflection::EnumTrait.
    file fields.hpp
    Class cubos::core::reflection::FieldsTrait.
    +
    file mask.hpp
    +
    Class cubos::core::reflection::MaskTrait.
    file nullable.hpp
    Class cubos::core::reflection::NullableTrait.
    file string_conversion.hpp
    @@ -137,6 +141,10 @@

    Classes

    class cubos::core::reflection::FieldsTrait

    Describes the fields of a reflected type.
    +
    + class cubos::core::reflection::MaskTrait +
    +
    Provides mask functionality to an enum mask type.
    class cubos::core::reflection::NullableTrait
    diff --git a/docs-preview/pr-954/group__engine.html b/docs-preview/pr-954/group__engine.html index 44b758558..599f6d9a6 100644 --- a/docs-preview/pr-954/group__engine.html +++ b/docs-preview/pr-954/group__engine.html @@ -89,8 +89,8 @@

    Modules

    Adds viewport to all active cameras to achieve a splitscreen layout.
    module Transform
    Adds transform components which assign positions, rotations and scaling to entities.
    -
    module FreeCameraController
    -
    Adds a free camera controller to the scene that accepts input and moves a camera accordingly.
    +
    module Free Camera
    +
    Adds the free camera controller component, which locks the mouse and moves an entity.
    module Voxels
    Adds grid and palette assets to CUBOS.
    module Window
    diff --git a/docs-preview/pr-954/group__free-camera-plugin.html b/docs-preview/pr-954/group__free-camera-plugin.html new file mode 100644 index 000000000..574e345e6 --- /dev/null +++ b/docs-preview/pr-954/group__free-camera-plugin.html @@ -0,0 +1,153 @@ + + + + + Engine » Free Camera module | CUBOS. Docs + + + + + + + +
    +
    +
    +
    +
    +

    + Engine » + Free Camera module

    +

    Adds the free camera controller component, which locks the mouse and moves an entity.

    + +

    Components

    +
    +

    Files

    +
    +
    file plugin.hpp
    +
    Plugin entry point.
    +
    +
    +
    +

    Functions

    +
    +
    + void freeCameraPlugin(Cubos& cubos) +
    +
    Plugin entry function.
    +
    +
    +
    +

    Function documentation

    +
    +

    + void freeCameraPlugin(Cubos& cubos) + +

    +

    Plugin entry function.

    + + + + + + + + + + +
    Parameters
    cubosCUBOS. main class
    +
    +
    +
    +
    +
    +
    + + + +
    + + diff --git a/docs-preview/pr-954/group__tesseratos-asset-explorer-plugin.html b/docs-preview/pr-954/group__tesseratos-asset-explorer-plugin.html index 4d005305b..9419413ce 100644 --- a/docs-preview/pr-954/group__tesseratos-asset-explorer-plugin.html +++ b/docs-preview/pr-954/group__tesseratos-asset-explorer-plugin.html @@ -52,8 +52,8 @@

    -

    Events

    Dependencies

    +

    Events

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/group__tesseratos-debug-camera-plugin.html b/docs-preview/pr-954/group__tesseratos-debug-camera-plugin.html index fc569b04f..9514073e9 100644 --- a/docs-preview/pr-954/group__tesseratos-debug-camera-plugin.html +++ b/docs-preview/pr-954/group__tesseratos-debug-camera-plugin.html @@ -52,7 +52,7 @@

    -

    Dependencies

    +

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/group__tesseratos-entity-inspector-plugin.html b/docs-preview/pr-954/group__tesseratos-entity-inspector-plugin.html index 832842661..35a1add1f 100644 --- a/docs-preview/pr-954/group__tesseratos-entity-inspector-plugin.html +++ b/docs-preview/pr-954/group__tesseratos-entity-inspector-plugin.html @@ -52,7 +52,7 @@

    -

    Dependencies

    +

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/group__tesseratos-entity-selector-plugin.html b/docs-preview/pr-954/group__tesseratos-entity-selector-plugin.html index e08cbdfd9..df5c01510 100644 --- a/docs-preview/pr-954/group__tesseratos-entity-selector-plugin.html +++ b/docs-preview/pr-954/group__tesseratos-entity-selector-plugin.html @@ -52,10 +52,10 @@

    -

    This plugins exists to reduce coupling between plugins. For example, a plugin which allows selecting entities through a ImGui window only needs to depend on this plugin, instead of having to know about all the plugins which care about it. The same applies in the other direction.

    Resources

    Startup tags

    • cubos.entitySelector.init - the EntitySelector resource is initialized

    Tags

    • cubos.entitySelector.input - entity selection is handled, after cubos.window.poll and cubos.renderer.draw

    Dependencies

    +

    This plugins exists to reduce coupling between plugins. For example, a plugin which allows selecting entities through a ImGui window only needs to depend on this plugin, instead of having to know about all the plugins which care about it. The same applies in the other direction.

    Resources

    Startup tags

    • cubos.entitySelector.init - the EntitySelector resource is initialized

    Tags

    • cubos.entitySelector.input - entity selection is handled, after cubos.window.poll and cubos.renderer.draw

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/group__tesseratos-metrics-panel-plugin.html b/docs-preview/pr-954/group__tesseratos-metrics-panel-plugin.html index 4447ac6dc..fb435e610 100644 --- a/docs-preview/pr-954/group__tesseratos-metrics-panel-plugin.html +++ b/docs-preview/pr-954/group__tesseratos-metrics-panel-plugin.html @@ -52,7 +52,7 @@

    -

    Dependencies

    +

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/group__tesseratos-scene-editor-plugin.html b/docs-preview/pr-954/group__tesseratos-scene-editor-plugin.html index c78f85e56..dcd7f6e3a 100644 --- a/docs-preview/pr-954/group__tesseratos-scene-editor-plugin.html +++ b/docs-preview/pr-954/group__tesseratos-scene-editor-plugin.html @@ -52,7 +52,7 @@

    -

    Dependencies

    +

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/group__tesseratos-settings-inspector-plugin.html b/docs-preview/pr-954/group__tesseratos-settings-inspector-plugin.html index 2e36eabfe..a5cd95d8f 100644 --- a/docs-preview/pr-954/group__tesseratos-settings-inspector-plugin.html +++ b/docs-preview/pr-954/group__tesseratos-settings-inspector-plugin.html @@ -52,7 +52,7 @@

    -

    Dependencies

    +

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/group__tesseratos-toolbox-plugin.html b/docs-preview/pr-954/group__tesseratos-toolbox-plugin.html index 0fc500627..aebae490b 100644 --- a/docs-preview/pr-954/group__tesseratos-toolbox-plugin.html +++ b/docs-preview/pr-954/group__tesseratos-toolbox-plugin.html @@ -52,8 +52,8 @@

    -

    Resources

    Dependencies

    • imguiPlugin
    +

    Resources

    Dependencies

    • imguiPlugin

    Files

    diff --git a/docs-preview/pr-954/group__tesseratos-voxel-palette-editor-plugin.html b/docs-preview/pr-954/group__tesseratos-voxel-palette-editor-plugin.html index 268071231..b6c318029 100644 --- a/docs-preview/pr-954/group__tesseratos-voxel-palette-editor-plugin.html +++ b/docs-preview/pr-954/group__tesseratos-voxel-palette-editor-plugin.html @@ -52,7 +52,7 @@

    -

    Dependencies

    +

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/group__tesseratos-world-inspector-plugin.html b/docs-preview/pr-954/group__tesseratos-world-inspector-plugin.html index 0693b35ea..c65ca98a0 100644 --- a/docs-preview/pr-954/group__tesseratos-world-inspector-plugin.html +++ b/docs-preview/pr-954/group__tesseratos-world-inspector-plugin.html @@ -52,7 +52,7 @@

    -

    Dependencies

    +

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/group__voxels-plugin.html b/docs-preview/pr-954/group__voxels-plugin.html index d0574b0f3..6930d628d 100644 --- a/docs-preview/pr-954/group__voxels-plugin.html +++ b/docs-preview/pr-954/group__voxels-plugin.html @@ -52,8 +52,8 @@

    -

    Bridges

    Dependencies

    +

    Bridges

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/group__window-plugin.html b/docs-preview/pr-954/group__window-plugin.html index 19ce83739..9df7a078f 100644 --- a/docs-preview/pr-954/group__window-plugin.html +++ b/docs-preview/pr-954/group__window-plugin.html @@ -52,12 +52,12 @@

    -

    Initially sets ShouldQuit to false, and sets it to true only when the window is closed.

    Settings

    • window.title - the window's title (default: CUBOS.).
    • window.width - the window's width (default: 800).
    • window.height - the window's height (default: 600).

    Events

    Resources

    Startup tags

    • cubos.window.init - window is opened, runs after cubos.settings.

    Tags

    • cubos.window.poll - the window is polled for events, sending core::io::WindowEvent's.
    • cubos.window.render - the window's back buffers are swapped.

    Dependencies

    +

    Initially sets ShouldQuit to false, and sets it to true only when the window is closed.

    Settings

    • window.title - the window's title (default: CUBOS.).
    • window.width - the window's width (default: 800).
    • window.height - the window's height (default: 600).

    Events

    Resources

    Startup tags

    • cubos.window.init - window is opened, runs after cubos.settings.

    Tags

    • cubos.window.poll - the window is polled for events, sending core::io::WindowEvent's.
    • cubos.window.render - the window's back buffers are swapped.

    Dependencies

    Files

    diff --git a/docs-preview/pr-954/keyboard_8hpp.html b/docs-preview/pr-954/keyboard_8hpp.html index 321483727..61f6b778b 100644 --- a/docs-preview/pr-954/keyboard_8hpp.html +++ b/docs-preview/pr-954/keyboard_8hpp.html @@ -56,8 +56,8 @@

    Contents

    Reference @@ -73,6 +73,15 @@

    Namespaces

    Input and output module.
    +
    +

    Classes

    +
    +
    + struct cubos::core::io::KeyWithModifiers +
    +
    Keyboard key code and modifier flags.
    +
    +

    Enums

    @@ -189,27 +198,6 @@

    Enums

    Keyboard modifier flags enum.
    -
    -

    Functions

    -
    -
    - auto modifiersToString(Modifiers modifiers) -> std::string -
    -
    Converts a Modifiers enum to a string.
    -
    - auto stringToModifiers(const std::string& str) -> Modifiers -
    -
    Converts a string to a Modifiers enum.
    -
    - auto keyToString(Key key) -> std::string -
    -
    Converts a Key enum to a string.
    -
    - auto stringToKey(const std::string& str) -> Key -
    -
    Convert a string to a Key enum.
    -
    -
    diff --git a/docs-preview/pr-954/mask_8hpp.html b/docs-preview/pr-954/mask_8hpp.html new file mode 100644 index 000000000..e6fe199c1 --- /dev/null +++ b/docs-preview/pr-954/mask_8hpp.html @@ -0,0 +1,134 @@ + + + + + core/reflection/traits/mask.hpp file | CUBOS. Docs + + + + + + + +
    +
    + + + +
    + + diff --git a/docs-preview/pr-954/modules.html b/docs-preview/pr-954/modules.html index 12f6adda5..c805c3fe1 100644 --- a/docs-preview/pr-954/modules.html +++ b/docs-preview/pr-954/modules.html @@ -101,7 +101,7 @@

    Modules

  • module Settings Adds and manages settings.
  • module Splitscreen Adds viewport to all active cameras to achieve a splitscreen layout.
  • module Transform Adds transform components which assign positions, rotations and scaling to entities.
  • -
  • module FreeCameraController Adds a free camera controller to the scene that accepts input and moves a camera accordingly.
  • +
  • module Free Camera Adds the free camera controller component, which locks the mouse and moves an entity.
  • module Voxels Adds grid and palette assets to CUBOS.
  • module Window Creates and handles the lifecycle of a window.
  • diff --git a/docs-preview/pr-954/namespacecubos_1_1core_1_1io.html b/docs-preview/pr-954/namespacecubos_1_1core_1_1io.html index 885a6d89d..31ae4b28c 100644 --- a/docs-preview/pr-954/namespacecubos_1_1core_1_1io.html +++ b/docs-preview/pr-954/namespacecubos_1_1core_1_1io.html @@ -74,6 +74,10 @@

    Classes

    struct GamepadState
    Holds the state of a gamepad.
    +
    + struct KeyWithModifiers +
    +
    Keyboard key code and modifier flags.
    struct KeyEvent
    @@ -312,22 +316,6 @@

    Functions

    auto stringToGamepadAxis(const std::string& str) -> GamepadAxis
    Convert a string to a GamepadAxis.
    -
    - auto modifiersToString(Modifiers modifiers) -> std::string -
    -
    Converts a Modifiers enum to a string.
    -
    - auto stringToModifiers(const std::string& str) -> Modifiers -
    -
    Converts a string to a Modifiers enum.
    -
    - auto keyToString(Key key) -> std::string -
    -
    Converts a Key enum to a string.
    -
    - auto stringToKey(const std::string& str) -> Key -
    -
    Convert a string to a Key enum.
    auto openWindow(const std::string& title = "CUBOS.", const glm::ivec2& size = {800, 600}) -> Window diff --git a/docs-preview/pr-954/namespacecubos_1_1core_1_1reflection.html b/docs-preview/pr-954/namespacecubos_1_1core_1_1reflection.html index bd155b1d5..9c26c39a1 100644 --- a/docs-preview/pr-954/namespacecubos_1_1core_1_1reflection.html +++ b/docs-preview/pr-954/namespacecubos_1_1core_1_1reflection.html @@ -90,6 +90,10 @@

    Classes

    class FieldsTrait
    Describes the fields of a reflected type.
    +
    + class MaskTrait +
    +
    Provides mask functionality to an enum mask type.
    class NullableTrait
    diff --git a/docs-preview/pr-954/namespacecubos_1_1engine.html b/docs-preview/pr-954/namespacecubos_1_1engine.html index 7139cf22d..32912c5bd 100644 --- a/docs-preview/pr-954/namespacecubos_1_1engine.html +++ b/docs-preview/pr-954/namespacecubos_1_1engine.html @@ -468,7 +468,7 @@

    Functions

    Plugin entry function.
    - void freeCameraControllerPlugin(Cubos& cubos) + void freeCameraPlugin(Cubos& cubos)
    Plugin entry function.
    @@ -595,27 +595,6 @@

    -
    -

    Function documentation

    -
    -

    - void cubos::engine::freeCameraControllerPlugin(Cubos& cubos) - -

    -

    Plugin entry function.

    - - - - - - - - - - -
    Parameters
    cubosCUBOS. main class
    -
    -
    diff --git a/docs-preview/pr-954/pages.html b/docs-preview/pr-954/pages.html index 7b4efa72d..862dd6137 100644 --- a/docs-preview/pr-954/pages.html +++ b/docs-preview/pr-954/pages.html @@ -120,6 +120,7 @@

    Pages

  • Contribution guidelines Guide on the project's conventions and code style.
  • Enum Trait Exposing an enumeration with variants.
  • +
  • Mask Trait Exposing a bit mask type.
  • Nullable Trait Handling null type representation.
  • + +
    + + diff --git a/docs-preview/pr-954/structcubos_1_1engine_1_1FreeCameraController.html b/docs-preview/pr-954/structcubos_1_1engine_1_1FreeCameraController.html index 87c7d30d1..b32f8477a 100644 --- a/docs-preview/pr-954/structcubos_1_1engine_1_1FreeCameraController.html +++ b/docs-preview/pr-954/structcubos_1_1engine_1_1FreeCameraController.html @@ -47,7 +47,7 @@

    cubos::engine::FreeCameraController struct - +

    Component which moves the camera.