Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
SceneFormat Namespace Reference

Namespaces

namespace  Fields

Classes

class  ComponentFactory
 Creates components by type id (see the file comment above). More...
class  SceneMsgPackParser
 Embedded-friendly MessagePack parser for scene files No dynamic allocation, fixed stack depth. More...
class  SceneMsgPackWriter
 MessagePack writer for saving scenes from editor. More...

Typedefs

using ComponentCreator = DekiComponent* (*)()
 Function pointer type for component creators.
using AssetResolver = std::function<std::string(const std::string& guid)>
using SubAssetResolverCallback = std::function<bool(const std::string& guid, std::string& outParentGuid)>

Enumerations

enum class  MPType : uint8_t {
  MP_NIL = 0xc0 , MP_FALSE = 0xc2 , MP_TRUE = 0xc3 , FLOAT32 = 0xca ,
  INT8 = 0xd0 , INT16 = 0xd1 , INT32 = 0xd2 , UINT8 = 0xcc ,
  UINT16 = 0xcd , UINT32 = 0xce , FIXSTR_BASE = 0xa0 , STR8 = 0xd9 ,
  STR16 = 0xda , FIXMAP_BASE = 0x80 , MAP16 = 0xde , FIXARRAY_BASE = 0x90 ,
  ARRAY16 = 0xdc
}

Variables

constexpr const char * SCENE_EXTENSION = ".scene"
 Scene file extension.
constexpr uint16_t SCENE_FORMAT_VERSION = 1
 Scene format version.

Typedef Documentation

◆ ComponentCreator

Function pointer type for component creators.

◆ AssetResolver

using SceneFormat::AssetResolver = std::function<std::string(const std::string& guid)>

◆ SubAssetResolverCallback

using SceneFormat::SubAssetResolverCallback = std::function<bool(const std::string& guid, std::string& outParentGuid)>

Enumeration Type Documentation

◆ MPType

enum class SceneFormat::MPType : uint8_t
strong
Enumerator
MP_NIL 
MP_FALSE 
MP_TRUE 
FLOAT32 
INT8 
INT16 
INT32 
UINT8 
UINT16 
UINT32 
FIXSTR_BASE 
STR8 
STR16 
FIXMAP_BASE 
MAP16 
FIXARRAY_BASE 
ARRAY16 

Variable Documentation

◆ SCENE_EXTENSION

const char* SceneFormat::SCENE_EXTENSION = ".scene"
constexpr

Scene file extension.

◆ SCENE_FORMAT_VERSION

uint16_t SceneFormat::SCENE_FORMAT_VERSION = 1
constexpr

Scene format version.