20 #ifndef PS_EFFECT_OBJ_SPIRE_HEADER 21 #define PS_EFFECT_OBJ_SPIRE_HEADER 24 #include <imesh/genmesh.h> 43 this->parent = parent;
89 const csVector3*
UpdateVertices(csTicks current,
const csVector3* verts,
int num_verts, uint32 version_id);
90 const csVector2*
UpdateTexels(csTicks current,
const csVector2* texels,
int num_texels, uint32 version_id);
96 const csColor4*
UpdateColors(csTicks current,
const csColor4* colors,
int num_colors, uint32 version_id);
107 bool Load(iDocumentNode* node, iLoaderContext* ldr_context);
108 bool Render(
const csVector3 &up);
109 bool Update(csTicks elapsed);
135 static void CalculateData(
int shape,
int segments, csVector3* verts, csVector2* texels,
float topScale=1,
float height=1,
float padding=1);
142 csRef<iGeneralMeshState> genState;
const csColor4 * UpdateColors(csTicks current, const csColor4 *colors, int num_colors, uint32 version_id)
virtual ~MeshAnimControl()
The manager of all 2D effect elements.
void Update(csTicks, int, uint32)
const csVector3 * UpdateNormals(csTicks, const csVector3 *normals, int, uint32)
bool AnimatesBBoxRadius() const
bool Render(const csVector3 &up)
Renders the effect.
const csBox3 & UpdateBoundingBox(csTicks, uint32, const csBox3 &bbox)
const csBox3 * UpdateBoundingBoxes(csTicks, uint32)
csRef< MeshAnimControl > meshControl
bool Load(iDocumentNode *node, iLoaderContext *ldr_context)
Loads the effect object from an xml node.
psEffectObj * Clone() const
Clones the effect object.
const csVector3 * UpdateVertices(csTicks current, const csVector3 *verts, int num_verts, uint32 version_id)
const float UpdateRadius(csTicks, uint32, const float radius)
bool AnimatesVertices() const
An effect is not much more than a collection of effect objects.
MeshAnimControl(psEffectObjSpire *parent)
virtual ~psEffectObjSpire()
bool AnimatesColors() const
bool AnimatesTexels() const
bool AnimatesNormals() const
const csVector2 * UpdateTexels(csTicks current, const csVector2 *texels, int num_texels, uint32 version_id)
psEffectObjSpire(iView *parentView, psEffect2DRenderer *renderer2d)
psEffect2DRenderer * renderer2d