SleakEngine 0.1.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
SceneBase.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  Sleak
 Root namespace for everything the engine exposes.

Functions

template<typename Pred>
static GameObject * Sleak::FindOwned (GameObject *obj, const Pred &pred)
 Depth-first search of obj and the descendants it owns.
template<typename Fn>
static void Sleak::ForEachOwned (GameObject *obj, Fn &fn)
 Calls fn on obj and the descendants it owns, skipping scene owned ones.
static void Sleak::RegisterTree (GameObject *obj, LightManager *lights, Physics::PhysicsWorld *world)
static void Sleak::UnregisterTree (GameObject *obj, LightManager *lights, Physics::PhysicsWorld *world)
 Unregisters lights and colliders in obj's owned subtree.