Planeshift
pseffectobjsimpmesh.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_SIMPMESH_HEADER
21 #define PS_EFFECT_OBJ_SIMPMESH_HEADER
22 
23 #include "pseffectobj.h"
24 
25 class psEffect2DRenderer;
26 
32 {
33 public:
34 
37 
38  // inheritted function overloads
39  bool Load(iDocumentNode* node, iLoaderContext* ldr_context);
40  bool Render(const csVector3 &up);
41  bool Update(csTicks elapsed);
42  psEffectObj* Clone() const;
43 
44 private:
45 
49  bool PostSetup();
50 
51  csString fileName;
52  csString meshName;
53 };
54 
57 #endif
bool Render(const csVector3 &up)
Renders the effect.
The manager of all 2D effect elements.
bool Update(csTicks elapsed)
Updates the spell effect – called every frame.
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
psEffectObj * Clone() const
Clones the effect object.
psEffectObjSimpMesh(iView *parentView, psEffect2DRenderer *renderer2d)
psEffect2DRenderer * renderer2d
Definition: pseffectobj.h:529