Class name fix

This commit is contained in:
Jack Andersen 2016-02-07 17:31:05 -10:00
parent 080c484a96
commit 259eb89b00
7 changed files with 37 additions and 57 deletions

View File

@ -14,7 +14,7 @@ namespace Retro
class CMetroidModelInstance; class CMetroidModelInstance;
class CLight; class CLight;
class CAreaOctTree; class CAreaOctTree;
class CParticleGen; class CElementGen;
class CModel; class CModel;
class CSkinnedModel; class CSkinnedModel;
@ -42,7 +42,7 @@ public:
virtual void DrawSortedGeometry(const std::vector<CLight>&, int, unsigned int, unsigned int); virtual void DrawSortedGeometry(const std::vector<CLight>&, int, unsigned int, unsigned int);
virtual void DrawStaticGeometry(const std::vector<CLight>&, int, unsigned int, unsigned int); virtual void DrawStaticGeometry(const std::vector<CLight>&, int, unsigned int, unsigned int);
virtual void PostRenderFogs(); virtual void PostRenderFogs();
virtual void AddParticleGen(const CParticleGen&); virtual void AddParticleGen(const CElementGen&);
virtual void AddPlaneObject(const void*, const CAABox&, const CPlane&, int); virtual void AddPlaneObject(const void*, const CAABox&, const CPlane&, int);
virtual void AddDrawable(void const *, const CVector3f&, const CAABox&, int, EDrawableSorting); virtual void AddDrawable(void const *, const CVector3f&, const CAABox&, int, EDrawableSorting);
virtual void SetDrawableCallback(TDrawableCallback, const void*); virtual void SetDrawableCallback(TDrawableCallback, const void*);

View File

@ -1,12 +1,20 @@
#ifndef __RETRO_CELEMENTGEN_HPP__ #ifndef __RETRO_CELEMENTGEN_HPP__
#define __RETRO_CELEMENTGEN_HPP__ #define __RETRO_CELEMENTGEN_HPP__
#include "CParticleGen.hpp" #include "../RetroTypes.hpp"
#include "CTransform.hpp"
#include "CColor.hpp"
#include "CAABox.hpp"
namespace Retro namespace Retro
{ {
class CWarp;
class CLight;
class CGenDescription
{
};
class CElementGen : public CParticleGen class CElementGen
{ {
bool x68_particleEmission; bool x68_particleEmission;
float x78_generatorRate; float x78_generatorRate;
@ -40,6 +48,29 @@ public:
{ {
} }
void BuildParticleSystemBounds(); void BuildParticleSystemBounds();
virtual ~CElementGen() {}
virtual void Update(double);
virtual void Render();
virtual void SetOrientation(const Zeus::CTransform&);
virtual void SetTranslation(const Zeus::CVector3f&);
virtual void SetGlobalOrientation(const Zeus::CTransform&);
virtual void SetGlobalTranslation(const Zeus::CVector3f&);
virtual void SetGlobalScale(const Zeus::CVector3f&);
virtual void SetLocalScale(const Zeus::CVector3f&);
virtual void SetParticleEmission(bool);
virtual void SetModulationColor(const Zeus::CColor&);
virtual const Zeus::CTransform& GetOrientation() const;
virtual const Zeus::CVector3f& GetTranslation() const;
virtual const Zeus::CVector3f& GetGlobalScale() const;
virtual const Zeus::CColor& GetModulationColor() const;
virtual bool IsSystemDeletable() const;
virtual Zeus::CAABox GetBounds() const;
virtual u32 GetParticleCount() const;
virtual bool SystemHasLight() const;
virtual CLight GetLight() const;
virtual void DestroyParticles();
virtual void AddModifier(CWarp*);
}; };
} }

View File

@ -14,7 +14,6 @@ add_library(RuntimeCommonParticle
CDecalDescription.hpp CDecalDescription.cpp CDecalDescription.hpp CDecalDescription.cpp
CWeaponDescription.hpp CWeaponDescription.cpp CWeaponDescription.hpp CWeaponDescription.cpp
CDecalDataFactory.hpp CDecalDataFactory.cpp CDecalDataFactory.hpp CDecalDataFactory.cpp
CParticleGen.hpp CParticleGen.cpp
CElementGen.hpp CElementGen.cpp CElementGen.hpp CElementGen.cpp
CParticleSwoosh.hpp CParticleSwoosh.cpp CParticleSwoosh.hpp CParticleSwoosh.cpp
CParticleElectric.hpp CParticleElectric.cpp CParticleElectric.hpp CParticleElectric.cpp

View File

@ -6,7 +6,7 @@
namespace Retro namespace Retro
{ {
class CParticleElectric : public CParticleGen class CParticleElectric : public CElementGen
{ {
}; };

View File

@ -1,50 +0,0 @@
#ifndef __RETRO_CPARTICLEGEN_HPP__
#define __RETRO_CPARTICLEGEN_HPP__
#include "../RetroTypes.hpp"
#include "CParticleGen.hpp"
#include "CTransform.hpp"
#include "CColor.hpp"
#include "CAABox.hpp"
namespace Retro
{
class CWarp;
class CLight;
class CGenDescription
{
};
class CParticleGen
{
public:
virtual ~CParticleGen() {}
virtual void Update(double);
virtual void Render();
virtual void SetOrientation(const Zeus::CTransform&);
virtual void SetTranslation(const Zeus::CVector3f&);
virtual void SetGlobalOrientation(const Zeus::CTransform&);
virtual void SetGlobalTranslation(const Zeus::CVector3f&);
virtual void SetGlobalScale(const Zeus::CVector3f&);
virtual void SetLocalScale(const Zeus::CVector3f&);
virtual void SetParticleEmission(bool);
virtual void SetModulationColor(const Zeus::CColor&);
virtual const Zeus::CTransform& GetOrientation() const;
virtual const Zeus::CVector3f& GetTranslation() const;
virtual const Zeus::CTransform& GetGlobalOrientation() const;
virtual const Zeus::CVector3f& GetGlobalTranslation() const;
virtual const Zeus::CVector3f& GetGlobalScale() const;
virtual bool GetParticleEmission() const;
virtual const Zeus::CColor& GetModulationColor() const;
virtual bool IsSystemDeletable() const;
virtual Zeus::CAABox GetBounds() const;
virtual u32 GetParticleCount() const;
virtual bool SystemHasLight() const;
virtual CLight GetLight() const;
virtual void DestroyParticles();
virtual void AddModifier(CWarp*);
};
}
#endif // __RETRO_CPARTICLEGEN_HPP__

View File

@ -6,7 +6,7 @@
namespace Retro namespace Retro
{ {
class CParticleSwoosh : public CParticleGen class CParticleSwoosh : public CElementGen
{ {
}; };