|
| Random () noexcept |
| Default construct a new Random object.
|
|
| Random (size_t seed) noexcept |
| Construct a new Random object from a seed. More...
|
|
auto | Fork () noexcept |
| Returns a new Random instance seeded with the next generator value. More...
|
|
void | Seed (size_t seed) noexcept |
| Seed the generator. More...
|
|
auto | Seed () const noexcept |
| Get the current seed. More...
|
|
auto | Get () noexcept -> float |
| Generate a random float in the range [0, 1]. More...
|
|
auto | GetU64 () noexcept -> size_t |
| Generate a random size_t in the range [0, std::numeric_limits<size_t>::max()]. More...
|
|
auto | GetVector2 () noexcept -> Vector2 |
| Generate a random Vector2 with components in the range [0, 1]. More...
|
|
auto | GetVector3 () noexcept -> Vector3 |
| Generate a random Vector3 with components in the range [0, 1]. More...
|
|
auto | GetVector4 () noexcept -> Vector4 |
| Generate a random Vector4 with components in the range [0, 1]. More...
|
|
auto | Between (float min, float max) noexcept -> float |
| Generate a random float in the range [min, max]. More...
|
|
auto | Between (size_t min, size_t max) noexcept -> size_t |
| Generate a random size_t in the range [min, max]. More...
|
|
auto | Between (const Vector2 &min, const Vector2 &max) noexcept -> Vector2 |
| Generate a random Vector2 with components in the range [min, max]. More...
|
|
auto | Between (const Vector3 &min, const Vector3 &max) noexcept -> Vector3 |
| Generate a random Vector3 with components in the range [min, max]. More...
|
|
auto | Between (const Vector4 &min, const Vector4 &max) noexcept -> Vector4 |
| Generate a random Vector4 with components in the range [min, max]. More...
|
|
| Module (size_t id=0) noexcept |
| Constructor for the Module interface. More...
|
|
auto | Id () const noexcept |
| Get the module's unique id.
|
|
virtual void | OnBuildTaskGraph (task::UpdateTasks &, task::RenderTasks &) |
| Called on registered modules when the task graphs are constructed.
|
|
virtual void | OnBeforeSceneLoad () |
| Called on registered modules prior to loading a new scene.
|
|
virtual void | OnBeforeSceneFragmentLoad () |
| Called on registered modules immediately before loading a SceneFragment file.
|
|
virtual void | OnAfterSceneFragmentLoad () |
| Called on registered modules immediately after loading a SceneFragment file.
|
|
virtual void | Clear () noexcept |
| Called on registered modules prior to clearing the Registry. This includes Scene::Unload() and NcEngine::Shutdown().
|
|
Random number generator.
A shared Random instance can be retrieved from the NcEngine pointer. Additional instances can be constructed, copied, and forked as needed.