mirror of https://github.com/PrimeDecomp/prime.git
24 lines
591 B
C++
24 lines
591 B
C++
#ifndef __IWEAPONRENDERER_HPP__
|
|
#define __IWEAPONRENDERER_HPP__
|
|
|
|
class CParticleGen;
|
|
class IWeaponRenderer {
|
|
virtual ~IWeaponRenderer() {}
|
|
virtual void AddParticleGen(const CParticleGen& gen) = 0;
|
|
|
|
static void SetRenderer(IWeaponRenderer* renderer) { sWeaponRenderer = renderer; }
|
|
private:
|
|
static IWeaponRenderer* sWeaponRenderer;
|
|
};
|
|
|
|
|
|
class CDefaultRenderer : public IWeaponRenderer {
|
|
public:
|
|
~CDefaultRenderer();
|
|
void AddParticleGen(const CParticleGen& gen);
|
|
};
|
|
|
|
static CDefaultRenderer sDefaultRenderer = CDefaultRenderer();;
|
|
|
|
#endif //__IWEAPONRENDERER_HPP__
|