Planeshift
pseffectobjmesh.h
Go to the documentation of this file.
1 /*
2  * Author: Andrew Robberts
3  *
4  * Copyright (C) 2003 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef PS_EFFECT_OBJ_MESH_HEADER
21 #define PS_EFFECT_OBJ_MESH_HEADER
22 
23 #include "pseffectobj.h"
24 #include <imesh/sprite3d.h>
25 
26 class psEffect2DRenderer;
27 
33 {
34 public:
35 
36  psEffectObjMesh(iView* parentView, psEffect2DRenderer* renderer2d);
38 
39  // inheritted function overloads
40  bool Load(iDocumentNode* node, iLoaderContext* ldr_context);
41  bool Render(const csVector3 &up);
42  bool Update(csTicks elapsed);
43  psEffectObj* Clone() const;
44 
45 private:
46 
50  bool PostSetup(iLoaderContext* ldr_context);
51 
52  csString factName;
53  csRef<iThreadReturn> factory;
54  csRef<iSprite3DState> sprState;
55 };
56 
59 #endif
The manager of all 2D effect elements.
bool Load(iDocumentNode *node, iLoaderContext *ldr_context)
Loads the effect object from an xml node.
An effect is not much more than a collection of effect objects.
Definition: pseffectobj.h:207
psEffectObjMesh(iView *parentView, psEffect2DRenderer *renderer2d)
bool Render(const csVector3 &up)
Renders the effect.
psEffectObj * Clone() const
Clones the effect object.
bool Update(csTicks elapsed)
Updates the spell effect – called every frame.
psEffect2DRenderer * renderer2d
Definition: pseffectobj.h:529