Engine » Tools » Selection module

Adds a resource which keeps track of what the current selection is.

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.

Files

file plugin.hpp
Plugin entry point.
file selection.hpp
Resource cubos::engine::Selection.

Classes

struct cubos::engine::Selection
Resource which identifies the current selection.

Functions

auto selectionPlugin(Cubos& cubos) -> CUBOS_ENGINE_API void
Plugin entry function.

Function documentation

CUBOS_ENGINE_API void selectionPlugin(Cubos& cubos)

Plugin entry function.

Parameters
cubos Cubos main class