ScummVM API documentation
ParticleManager.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
/*
23
* Copyright (C) 2006-2010 - Frictional Games
24
*
25
* This file is part of HPL1 Engine.
26
*/
27
28
#ifndef HPL_PARTICLE_SYSTEM_MANAGER_H
29
#define HPL_PARTICLE_SYSTEM_MANAGER_H
30
31
#include "hpl1/engine/resources/ResourceManager.h"
32
33
#include "hpl1/engine/math/MathTypes.h"
34
35
namespace
hpl
{
36
37
class
cGraphics;
38
class
cResources;
39
class
iParticleSystem2D;
40
class
cParticleSystem3D;
41
class
cParticleSystemData3D;
42
43
//----------------------------------------------------
44
45
typedef
Common::StableMap<tString, cParticleSystemData3D *>
tParticleSystemData3DMap;
46
typedef
tParticleSystemData3DMap::iterator
tParticleSystemData3DMapIt;
47
48
//----------------------------------------------------
49
50
class
cParticleManager
:
public
iResourceManager
{
51
public
:
52
cParticleManager
(
cGraphics
*apGraphics,
cResources
*apResources);
53
~
cParticleManager
();
54
61
iResourceBase
*
Create
(
const
tString
&asName);
62
63
iParticleSystem2D *CreatePS2D(
const
tString
&asName,
cVector3f
avSize);
64
65
cParticleSystem3D
*CreatePS3D(
const
tString
&asName,
const
tString
&asType,
cVector3f
avSize,
66
const
cMatrixf
&a_mtxTransform);
67
68
void
AddData3D(
cParticleSystemData3D
*apData);
69
70
void
Preload(
const
tString
&asFile);
71
72
void
Destroy(
iResourceBase
*apResource);
73
void
Unload(
iResourceBase
*apResource);
74
75
private
:
76
cGraphics
*mpGraphics;
77
cResources
*mpResources;
78
79
Common::List<cParticleSystem3D *>
mlstSystems;
80
81
// tParticleSystemData3DMap m_mapData3D;
82
};
83
84
}
// namespace hpl
85
86
#endif // HPL_PARTICLE_SYSTEM_MANAGER_H
hpl
Definition:
AI.h:36
Common::String
Definition:
str.h:59
hpl::iResourceBase
Definition:
ResourceBase.h:36
Common::List< cParticleSystem3D * >
Common::StableMap::iterator
typename TreeT::BasicIterator iterator
Definition:
stablemap.h:48
Common::StableMap
Definition:
stablemap.h:43
hpl::cVector3< float >
hpl::cParticleManager
Definition:
ParticleManager.h:50
hpl::cParticleManager::Create
iResourceBase * Create(const tString &asName)
hpl::cParticleSystem3D
Definition:
ParticleSystem3D.h:90
hpl::cResources
Definition:
Resources.h:160
hpl::iResourceManager
Definition:
ResourceManager.h:52
hpl::cMatrix< float >
hpl::cGraphics
Definition:
Graphics.h:46
hpl::cParticleSystemData3D
Definition:
ParticleSystem3D.h:45
engines
hpl1
engine
resources
ParticleManager.h
Generated on Fri Aug 30 2024 09:12:59 for ScummVM API documentation by
1.8.13