Structure for engine. More...
#include <kanzi/core.ui/node/screen.hpp>
#include <kanzi/core/legacy/kzs_types.hpp>
#include <kanzi/core/legacy/debug/kzs_error.hpp>
#include <kanzi/core.ui/application/splash.hpp>
#include <kanzi/core.ui/application/watermark.hpp>
#include <kanzi/core.ui/assets/runtime_assets.hpp>
#include <kanzi/core.ui/domain/domain.hpp>
#include <kanzi/core/legacy/legacy_conversions.hpp>
#include <kanzi/core.ui/node/camera.hpp>
#include <kanzi/core.ui/node/light.hpp>
#include <kanzi/core.ui/node/node.hpp>
#include <kanzi/core.ui/node/scene.hpp>
#include <kanzi/core.ui/node/viewport2d.hpp>
#include <kanzi/core/metadata/meta_object_factory.hpp>
#include <kanzi/core.ui/resource/resource_manager.hpp>
#include <kanzi/core.ui/template/prefab.hpp>
#include <kanzi/core.ui/object/register_default_types.hpp>
#include <kanzi/core.ui/resource/register_default_resources.hpp>
#include <kanzi/core.ui/kzb/kzu_binary_directory.h>
#include <kanzi/core.ui/kzb/kzu_binary_loader.h>
#include <kanzi/core.ui/kzb/kzu_binary_util.h>
#include <kanzi/core.ui/graphics3d/kzu_object_source.h>
#include <kanzi/core.ui/legacy/kzu_error_codes.h>
#include <kanzi/core.ui/kzb/kzu_preview_patcher.h>
#include <kanzi/core.ui/node/kzu_transformed_object.h>
#include <kanzi/core.ui/node/kzu_transformed_scene.h>
#include <kanzi/core.ui/input/kzu_input_manager.h>
#include <kanzi/core.ui/scheduler/kzu_task_scheduler.h>
#include <kanzi/core.ui/text/kzu_text_renderer.h>
#include <kanzi/core.ui/legacy/kzu_frame_time_queue.hpp>
#include <kanzi/core/legacy/memory/kzc_memory_manager.hpp>
#include <kanzi/core/legacy/memory/kzc_memory_quick.hpp>
#include <kanzi/core/legacy/util/collection/kzc_dynamic_array.hpp>
#include <kanzi/core/legacy/util/collection/kzc_hash_map.hpp>
#include <kanzi/core/legacy/util/collection/kzc_hash_set.hpp>
#include <kanzi/core/legacy/util/string/kzc_string.hpp>
#include <kanzi/core/legacy/thread/kzs_thread.hpp>
#include <kanzi/core/legacy/time/kzs_tick.hpp>
#include <kanzi/core/legacy/file/kzs_mmap.hpp>
Classes | |
struct | KzuEngine |
Structure for graphics engine core functionality. More... | |
Namespaces | |
kanzi | |
Macros | |
#define | KZU_ENGINE_DEFAULT_VERTEX_BUFFER_POOL_SIZE |
Default vertex buffer pool size. More... | |
#define | KZU_ENGINE_DEFAULT_INDEX_BUFFER_POOL_SIZE |
Default index buffer pool size. More... | |
Typedefs | |
typedef shared_ptr< Framebuffer > | kanzi::FramebufferSharedPtr |
Functions | |
KANZI_API kzsError | kzuEngineCreate (KzcMemoryManager *memoryManager, kzUint loadingThreadCount, kzString binaryName, kzBool useMemoryMappedLoading, kzBool enableEditing, struct KzuEngine **out_engine) |
Create a new engine and necessary components for it, such as renderer and its default materials. More... | |
KANZI_API kzsError | kzuEngineDelete (KzuEngine *engine) |
Deletes an engine. More... | |
KANZI_API kzUint | kzuEngineGetDeltaWallTime (const struct KzuEngine *engine) |
Returns the wall time interval between the two latest updates. More... | |
KANZI_API void | kzuEngineMeasurePerformance (struct KzuEngine *engine) |
Updates engine FPS calculations. More... | |
KANZI_API kzFloat | kzuEngineGetFramesPerSecond (const struct KzuEngine *engine) |
Gets frames per second from engine (FPS), measuring the overall frames per second. More... | |
KANZI_API kzsError | kzuEngineInitialize (struct KzuEngine *engine, kzBool toolPresent) |
Initialization. More... | |
KANZI_API kzsError | kzuEngineLoadBinary (struct KzuEngine *engine, kzBool toolPresent) |
Loads the KZB files if they have not yet been loaded. More... | |
KANZI_API kzsError | kzuEngineSetBinary (struct KzuEngine *engine, kzString binaryName) |
Makes engine to load a new binary from given binary name in the beginning of next update loop. More... | |
KANZI_API struct KzuBinaryLoader * | kzuEngineGetBinaryLoader (const struct KzuEngine *engine) |
KANZI_API kzsError | kzuEngineSetScreen (struct KzuEngine *engine, kanzi::ScreenSharedPtr screen) |
Sets screen of engine. More... | |
KANZI_API kanzi::ScreenSharedPtr | kzuEngineGetScreen (const struct KzuEngine *engine) |
Gets screen of engine. More... | |
KANZI_API kzsError | kzuEngineSetScreenOrientation (struct KzuEngine *engine, enum KzsWindowOrientation orientation) |
Sets the orientation of the screen. More... | |
KANZI_API void | kzuEngineInvalidateScreenLayout (struct KzuEngine *engine) |
Invalidates the layout of the attached screen. More... | |
KANZI_API kzsError | kzuEnginePatchProject (struct KzuEngine *engine, kzUint byteCount, const kzByte *bytes) |
KANZI_API kzsError | kzuEnginePatchProjectFromFile (const struct KzuEngine *engine, kzString binaryPath) |
KANZI_API kzsError | kzuEnginePatchProjectFromFileResource (const struct KzuEngine *engine, kzString resourceFile) |
KANZI_API kzsError | kzuEngineInvalidateGPUResources (const struct KzuEngine *engine) |
KANZI_API kzsError | kzuEngineRestoreNodeResources (const struct KzuEngine *engine) |
KANZI_API void | kzuEngineSetRootFramebuffer (struct KzuEngine *engine, kanzi::FramebufferSharedPtr framebuffer) |
Set root framebuffer for engine to use. More... | |
KANZI_API kanzi::FramebufferSharedPtr | kzuEngineGetRootFramebuffer (struct KzuEngine *engine) |
Access root framebuffer from engine. More... | |
KANZI_API kanzi::Vector2 | kzuEngineGetRenderingAreaOffset (struct KzuEngine *engine) |
KANZI_API void | kzuEngineSetRenderingAreaOffset (struct KzuEngine *engine, const kanzi::Vector2 &offset) |
KANZI_API kzUint | kzuEngineGetLastFrameTime (const struct KzuEngine *engine) |
Gets last frame time in milliseconds. More... | |
Structure for engine.
Contains pipeline specific assets (current scene, renderer), timer, etc.
Copyright 2008-2017 by Rightware. All rights reserved.
#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.
KANZI_API kzsError kzuEngineCreate | ( | KzcMemoryManager * | memoryManager, |
kzUint | loadingThreadCount, | ||
kzString | binaryName, | ||
kzBool | useMemoryMappedLoading, | ||
kzBool | enableEditing, | ||
struct KzuEngine ** | out_engine | ||
) |
Create a new engine and necessary components for it, such as renderer and its default materials.
Returns the wall time interval between the two latest updates.
Updates engine FPS calculations.
Should be called once per frame.
Gets frames per second from engine (FPS), measuring the overall frames per second.
Initialization.
Loads metadata, including properties and messages from all .KZB files.
Loads the KZB files if they have not yet been loaded.
Makes engine to load a new binary from given binary name in the beginning of next update loop.
binaryName | Path to either the binary config file listing all .kzb files that are loaded to project, or a path to a single .kzb file. |
KANZI_API struct KzuBinaryLoader* kzuEngineGetBinaryLoader | ( | const struct KzuEngine * | engine | ) |
KANZI_API kzsError kzuEngineSetScreen | ( | struct KzuEngine * | engine, |
kanzi::ScreenSharedPtr | screen | ||
) |
Sets screen of engine.
KANZI_API kanzi::ScreenSharedPtr kzuEngineGetScreen | ( | const struct KzuEngine * | engine | ) |
Gets screen of engine.
KANZI_API kzsError kzuEngineSetScreenOrientation | ( | struct KzuEngine * | engine, |
enum KzsWindowOrientation | orientation | ||
) |
Sets the orientation of the screen.
Invalidates the layout of the attached screen.
KANZI_API kzsError kzuEnginePatchProject | ( | struct KzuEngine * | engine, |
kzUint | byteCount, | ||
const kzByte * | bytes | ||
) |
KANZI_API kzsError kzuEnginePatchProjectFromFile | ( | const struct KzuEngine * | engine, |
kzString | binaryPath | ||
) |
KANZI_API kzsError kzuEnginePatchProjectFromFileResource | ( | const struct KzuEngine * | engine, |
kzString | resourceFile | ||
) |
KANZI_API void kzuEngineSetRootFramebuffer | ( | struct KzuEngine * | engine, |
kanzi::FramebufferSharedPtr | framebuffer | ||
) |
Set root framebuffer for engine to use.
engine | Engine. |
framebuffer | Root framebuffer used from now on. |
KANZI_API kanzi::FramebufferSharedPtr kzuEngineGetRootFramebuffer | ( | struct KzuEngine * | engine | ) |
Access root framebuffer from engine.
engine | Engine. |
KANZI_API kanzi::Vector2 kzuEngineGetRenderingAreaOffset | ( | struct KzuEngine * | engine | ) |
KANZI_API void kzuEngineSetRenderingAreaOffset | ( | struct KzuEngine * | engine, |
const kanzi::Vector2 & | offset | ||
) |