Implemented the new g3d spec

This commit is contained in:
mathusummut
2018-06-28 21:36:10 +02:00
parent 90556c870e
commit b1760253fd
24 changed files with 225 additions and 338 deletions

View File

@@ -18,6 +18,7 @@
#endif
#include "model_renderer.h"
#include "model_renderer_gl.h"
#include "texture_manager.h"
#include "model.h"
#include "texture.h"
@@ -37,6 +38,7 @@ using Shared::Graphics::Texture2D;
using Shared::Graphics::ParticleRenderer;
using Shared::Graphics::ParticleManager;
using Shared::Graphics::ParticleSystem;
using Shared::Graphics::Gl::MeshCallbackTeamColor;
//#include "model_renderer.h"
using Shared::Graphics::MeshCallback;
@@ -47,26 +49,6 @@ using namespace Shared::Graphics;
namespace Shared {
namespace G3dViewer {
// ===============================================
// class MeshCallbackTeamColor
// ===============================================
class MeshCallbackTeamColor : public MeshCallback {
private:
const Texture *teamTexture;
bool hasAlpha;
public:
MeshCallbackTeamColor() : MeshCallback() {
teamTexture = NULL;
}
void setTeamTexture(const Texture *teamTexture) {
this->teamTexture = teamTexture;
}
virtual void execute(const Mesh *mesh);
};
// ===============================
// class Renderer
// ===============================