- Added particle support to g3d viewer

This commit is contained in:
Mark Vejvoda
2010-05-25 18:06:42 +00:00
parent 69d7070f54
commit 4b6e017241
14 changed files with 1043 additions and 286 deletions

View File

@@ -11,7 +11,10 @@
#include "model_renderer.h"
#include "texture_manager.h"
#include "model.h"
#include "texture.h"
#include "texture.h"
#include "particle_renderer.h"
//#include "model_manager.h"
//#include "graphics_factory_gl.h"
@@ -19,7 +22,9 @@ using Shared::Graphics::ModelRenderer;
using Shared::Graphics::TextureManager;
using Shared::Graphics::Model;
using Shared::Graphics::Texture2D;
using Shared::Graphics::ParticleRenderer;
using Shared::Graphics::ParticleManager;
using Shared::Graphics::ParticleSystem;
//#include "model_renderer.h"
using Shared::Graphics::MeshCallback;
@@ -67,6 +72,10 @@ private:
ModelRenderer *modelRenderer;
TextureManager *textureManager;
ParticleRenderer *particleRenderer;
ParticleManager *particleManager;
Texture2D *customTextureRed;
Texture2D *customTextureBlue;
Texture2D *customTextureYellow;
@@ -96,6 +105,14 @@ public:
void loadTheModel(Model *model, string file);
void renderTheModel(Model *model, float f);
void manageParticleSystem(ParticleSystem *particleSystem);
void updateParticleManager();
void renderParticleManager();
Texture2D *getPlayerColorTexture(PlayerColor playerColor);
Texture2D * getNewTexture2D();
void initTextureManager();
void end();
};
}}//end namespace