#include <kanzi/core.ui/assets/runtime_assets.hpp>
#include <kanzi/core.ui/domain/domain.hpp>
#include <kanzi/core.ui/node/screen.hpp>
#include <kanzi/core.ui/node/viewport2d.hpp>
#include <kanzi/core.ui/util/frame_time_queue.hpp>
#include <kanzi/core/cpp/chrono.hpp>
#include <kanzi/core/profiling/startup_profiler_registry.hpp>
#include <kanzi/core/legacy/debug/kzs_error.hpp>
#include <kanzi/core/legacy/kzs_types.hpp>
Classes | |
struct | KzuEngine |
Structure for graphics engine core functionality. Handles the state machine, pipeline and storage specific functionality. More... | |
Namespaces | |
kanzi | |
Easing functions that require external dependencies for calculation. | |
Macros | |
#define | KZU_ENGINE_DEFAULT_INDEX_BUFFER_POOL_SIZE |
Default index buffer pool size. More... | |
#define | KZU_ENGINE_DEFAULT_VERTEX_BUFFER_POOL_SIZE |
Default vertex buffer pool size. More... | |
Typedefs | |
using | kanzi::FramebufferSharedPtr = shared_ptr< Framebuffer > |
Framebuffer shared pointer type. More... | |
Functions | |
kzsError | kzuEngineCreate (kanzi::Domain *domain, kzString binaryName, kanzi::StartupProfilerRegistry *m_startupProfilerRegistry, struct KzuEngine **out_engine) |
Create a new engine and necessary components for it, such as renderer and its default materials. More... | |
kzsError | kzuEngineDelete (KzuEngine *engine) |
Deletes an engine. More... | |
kzFloat | kzuEngineGetFramesPerSecond (const struct KzuEngine *engine) |
Gets frames per second from engine (FPS), measuring the overall frames per second. More... | |
kanzi::Vector2 | kzuEngineGetRenderingAreaOffset (struct KzuEngine *engine) |
kanzi::TextureSharedPtr | kzuEngineGetRootCompositionTarget (struct KzuEngine *engine) |
Access root framebuffer from engine. More... | |
kanzi::ScreenSharedPtr | kzuEngineGetScreen (const struct KzuEngine *engine) |
Gets screen of engine. More... | |
kzsError | kzuEngineInvalidateGPUResources (const struct KzuEngine *engine) |
void | kzuEngineInvalidateScreenLayout (struct KzuEngine *engine) |
Invalidates the layout of the attached screen. More... | |
kzsError | kzuEngineLoadBinary (struct KzuEngine *engine, kzBool toolPresent) |
Loads the KZB files if they have not yet been loaded. More... | |
void | kzuEngineMeasurePerformance (struct KzuEngine *engine, kanzi::chrono::nanoseconds deltaTime) |
Updates engine FPS calculations. More... | |
kzsError | kzuEngineRestoreNodeResources (const struct KzuEngine *engine) |
void | kzuEngineSetRenderingAreaOffset (struct KzuEngine *engine, const kanzi::Vector2 &offset) |
void | kzuEngineSetRootCompositionTarget (struct KzuEngine *engine, kanzi::TextureSharedPtr framebuffer) |
Set root framebuffer for engine to use. More... | |
kzsError | kzuEngineSetScreen (struct KzuEngine *engine, kanzi::ScreenSharedPtr screen) |
Sets screen of engine. More... | |
kzsError | kzuEngineSetScreenOrientation (struct KzuEngine *engine, kanzi::WindowOrientation orientation) |
Sets the orientation of the screen. More... | |
#define KZU_ENGINE_DEFAULT_VERTEX_BUFFER_POOL_SIZE |
Default vertex buffer pool size.
#define KZU_ENGINE_DEFAULT_INDEX_BUFFER_POOL_SIZE |
Default index buffer pool size.
kzsError kzuEngineCreate | ( | kanzi::Domain * | domain, |
kzString | binaryName, | ||
kanzi::StartupProfilerRegistry * | m_startupProfilerRegistry, | ||
struct KzuEngine ** | out_engine | ||
) |
Create a new engine and necessary components for it, such as renderer and its default materials.
void kzuEngineMeasurePerformance | ( | struct KzuEngine * | engine, |
kanzi::chrono::nanoseconds | deltaTime | ||
) |
Updates engine FPS calculations.
Should be called once per frame.
Gets frames per second from engine (FPS), measuring the overall frames per second.
Loads the KZB files if they have not yet been loaded.
kzsError kzuEngineSetScreen | ( | struct KzuEngine * | engine, |
kanzi::ScreenSharedPtr | screen | ||
) |
Sets screen of engine.
kanzi::ScreenSharedPtr kzuEngineGetScreen | ( | const struct KzuEngine * | engine | ) |
Gets screen of engine.
kzsError kzuEngineSetScreenOrientation | ( | struct KzuEngine * | engine, |
kanzi::WindowOrientation | orientation | ||
) |
Sets the orientation of the screen.
void kzuEngineInvalidateScreenLayout | ( | struct KzuEngine * | engine | ) |
Invalidates the layout of the attached screen.
void kzuEngineSetRootCompositionTarget | ( | struct KzuEngine * | engine, |
kanzi::TextureSharedPtr | framebuffer | ||
) |
Set root framebuffer for engine to use.
engine | Engine. |
framebuffer | Root framebuffer used from now on. |
kanzi::TextureSharedPtr kzuEngineGetRootCompositionTarget | ( | struct KzuEngine * | engine | ) |
Access root framebuffer from engine.
engine | Engine. |
kanzi::Vector2 kzuEngineGetRenderingAreaOffset | ( | struct KzuEngine * | engine | ) |
void kzuEngineSetRenderingAreaOffset | ( | struct KzuEngine * | engine, |
const kanzi::Vector2 & | offset | ||
) |