DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
ComponentFactory.h File Reference

Classes

class  Deki::ComponentFactory
 Creates components by type id and tells which class an id belongs to. More...

Namespaces

namespace  Deki

Macros

#define COMPONENT_FACTORY_API

Functions

template<class T, class Base = void>
constexpr ComponentTypeInfo Deki::MakeHandWrittenTypeInfo (bool declaresUpdate, const ComponentMeta *meta=nullptr, ComponentType typeId=TypeId< T >(), const char *name=TypeName< T >())
 Base names the direct component base when it is not Deki::Component (a test renderer deriving from RendererComponent), so lookups by base type find the instance.
template<class T>
const ComponentTypeInfo * Deki::TypeInfoFor ()
 The class entry AddComponent<T> attaches to a new T: the codegen's registered entry, or a hand-written one for a class it never saw.

Macro Definition Documentation

◆ COMPONENT_FACTORY_API

#define COMPONENT_FACTORY_API