Skip to content

KDGpuExample::Engine

Module: KDGpuExample API

Engine ...

#include <KDGpuExample/engine.h>

Inherits from KDFoundation::Object

Public Functions

Name
Engine()
~Engine() override
EngineLayer * attachEngineLayer(std::unique_ptr< EngineLayer > && engineLayer)
std::unique_ptr< EngineLayer > detachEngineLayer(EngineLayer * engineLayer)
const std::vector< std::unique_ptr< EngineLayer > > & engineLayers() const
template <typename T ,typename... Ts>
T *
createEngineLayer(Ts... args)
template <typename T >
T *
engineLayer() const
void event(KDFoundation::EventReceiver * target, KDFoundation::Event * ev) override
void requestFrame()
void doFrame()
TimePoint startTime() const
TimePoint currentFrameTime() const
TimePoint previousFrameTime() const
uint64_t frameNumber() const
float deltaTimeSeconds() const
std::chrono::nanoseconds simulationTime() const

Public Attributes

Name
KDBindings::Property< bool > running
KDBindings::Property< double > fps

Public Functions Documentation

function Engine

1
Engine()

function ~Engine

1
~Engine() override

function attachEngineLayer

1
2
3
EngineLayer * attachEngineLayer(
    std::unique_ptr< EngineLayer > && engineLayer
)

function detachEngineLayer

1
2
3
std::unique_ptr< EngineLayer > detachEngineLayer(
    EngineLayer * engineLayer
)

function engineLayers

1
inline const std::vector< std::unique_ptr< EngineLayer > > & engineLayers() const

function createEngineLayer

1
2
3
4
5
template <typename T ,
typename... Ts>
inline T * createEngineLayer(
    Ts... args
)

function engineLayer

1
2
template <typename T >
inline T * engineLayer() const

function event

1
2
3
4
void event(
    KDFoundation::EventReceiver * target,
    KDFoundation::Event * ev
) override

function requestFrame

1
void requestFrame()

function doFrame

1
void doFrame()

function startTime

1
inline TimePoint startTime() const

function currentFrameTime

1
inline TimePoint currentFrameTime() const

function previousFrameTime

1
inline TimePoint previousFrameTime() const

function frameNumber

1
inline uint64_t frameNumber() const

function deltaTimeSeconds

1
inline float deltaTimeSeconds() const

function simulationTime

1
inline std::chrono::nanoseconds simulationTime() const

Public Attributes Documentation

variable running

1
KDBindings::Property< bool > running { false };

variable fps

1
KDBindings::Property< double > fps { 0.0 };

Updated on 2024-05-27 at 00:10:35 +0000