Merge, now you can see sprites.

Merge remote-tracking branch 'origin/deffered_rendering' into particles

Conflicts:
	src/GameWorld.cpp
This commit is contained in:
Stiffly
2014-05-31 00:00:00 +02:00
7 changed files with 92 additions and 69 deletions
+2 -3
View File
@@ -4,16 +4,15 @@
#include <string>
#include "Component.h"
#include "Color.h"
namespace Components
{
struct Model : Component
{
Model() : Visible(true), ShadowCaster(true), Transparent(false) { }
Model() : Color(glm::vec4(1.0f, 1.0f, 1.0f, 1.0f)), Visible(true), ShadowCaster(true), Transparent(false) { }
std::string ModelFile;
Color Color;
glm::vec4 Color;
bool Visible;
bool ShadowCaster;
bool Transparent;
+3 -2
View File
@@ -4,15 +4,16 @@
#include <string>
#include "Component.h"
#include "Color.h"
namespace Components
{
struct Sprite : Component
{
Sprite() : Color(glm::vec4(1.0f, 1.0f, 1.0f, 1.0f)) { }
std::string SpriteFile;
Color Color;
glm::vec4 Color;
virtual Sprite* Clone() const override { return new Sprite(*this); }
};