Permalink
Browse files

Sprite2D: add renderFlags ivar

  • Loading branch information...
1 parent a713f3f commit baa8252c3a02196659236189ee1b190e73aa0b5c @bradallred bradallred committed Jun 14, 2013
Showing with 5 additions and 0 deletions.
  1. +1 −0 gemrb/core/Sprite2D.cpp
  2. +4 −0 gemrb/core/Sprite2D.h
View
@@ -37,6 +37,7 @@ Sprite2D::Sprite2D(int Width, int Height, int Bpp, void* vptr, const void* pixel
YPos = 0;
RefCount = 1;
colorkey = 0;
+ renderFlags = 0;
}
Sprite2D::~Sprite2D()
View
@@ -33,6 +33,9 @@
#include "Palette.h"
#include "TypeID.h"
+#define RENDER_FLIP_HORIZONTAL 0x00000001
+#define RENDER_FLIP_VERTICAL 0x00000002
+
namespace GemRB {
class AnimationFactory;
@@ -69,6 +72,7 @@ class GEM_EXPORT Sprite2D {
/** Pointer to the Driver Video Structure */
void* vptr;
bool BAM;
+ ieDword renderFlags;
const void* pixels;
Sprite2D(int Width, int Height, int Bpp, void* vptr, const void* pixels);
~Sprite2D();

0 comments on commit baa8252

Please sign in to comment.