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
29 virtual ~fsIRenderDataFactory();
30
31protected:
32
33 typedef fsIRenderData* (*TCreateFnc)();
34
35 std::map<fsStr, TCreateFnc> mRenderDataTypes;
36
37private:
38};
39
40#endif
static void destroy()
Definition fsIRenderDataFactory.cpp:45
fsIRenderData * renderDataCreate(const fsStr &pRenderData)
Definition fsIRenderDataFactory.cpp:18
std::map< fsStr, TCreateFnc > mRenderDataTypes
Definition fsIRenderDataFactory.h:35
static void create()
Definition fsIRenderDataFactory.cpp:32
fsIRenderDataFactory()
Definition fsIRenderDataFactory.cpp:51
virtual ~fsIRenderDataFactory()
Definition fsIRenderDataFactory.cpp:55
Definition fsIRenderData.h:24
Definition fsStr.h:23