Fission FSN
Loading...
Searching...
No Matches
fsIRenderDataFactory.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsIRenderDataFactory.h
4*
5* Purpose: Interface for render data factory
6*
7*********************************************************************/
8
9#ifndef fsIRenderDataFactoryhdr
10#define fsIRenderDataFactoryhdr
11
12#include <map>
13
14#include <fsCore/fsStr.h>
15
16class fsIRenderData;
17
18
20{
21public:
22
23 static void create();
24 static void destroy();
25
26 fsIRenderData* renderDataCreate(const fsStr& pRenderData);
27 fsBool renderDataRegisteredGet(const fsStr& pRenderData) const;
28
30 virtual ~fsIRenderDataFactory();
31
32protected:
33
34 typedef fsIRenderData* (*TCreateFnc)();
35
36 std::map<fsStr, TCreateFnc> mRenderDataTypes;
37
38private:
39};
40
41#endif
static void destroy()
Definition fsIRenderDataFactory.cpp:50
fsIRenderData * renderDataCreate(const fsStr &pRenderData)
Definition fsIRenderDataFactory.cpp:18
std::map< fsStr, TCreateFnc > mRenderDataTypes
Definition fsIRenderDataFactory.h:36
static void create()
Definition fsIRenderDataFactory.cpp:37
fsIRenderDataFactory()
Definition fsIRenderDataFactory.cpp:56
fsBool renderDataRegisteredGet(const fsStr &pRenderData) const
Definition fsIRenderDataFactory.cpp:32
virtual ~fsIRenderDataFactory()
Definition fsIRenderDataFactory.cpp:60
Definition fsIRenderData.h:24
Definition fsStr.h:23
bool fsBool
Definition fsBaseTypes.h:26