EMI: Move _current{Quat,Pos} up to GfxBase

This commit is contained in:
Dries Harnie
2012-07-03 20:02:57 +02:00
parent 79ca2f004c
commit 1bc9155cb7
4 changed files with 6 additions and 9 deletions
+3 -1
View File
@@ -28,7 +28,9 @@ namespace Grim {
GfxBase::GfxBase() :
_renderBitmaps(true),
_renderZBitmaps(true),
_shadowModeActive(false) {
_shadowModeActive(false),
_currentPos(0,0,0),
_currentQuat(0,0,0,1) {
}
+3
View File
@@ -24,6 +24,7 @@
#define GRIM_GFX_BASE_H
#include "math/vector3d.h"
#include "math/quat.h"
#include "graphics/pixelformat.h"
@@ -269,6 +270,8 @@ protected:
bool _shadowModeActive;
Graphics::PixelFormat _pixelFormat;
SpecialtyMaterial _specialty[8];
Math::Vector3d _currentPos;
Math::Quaternion _currentQuat;
};
// Factory-like functions:
-4
View File
@@ -24,7 +24,6 @@
#define GRIM_GFX_OPENGL_H
#include "engines/grim/gfx_base.h"
#include "math/quat.h"
#ifdef USE_OPENGL
@@ -139,9 +138,6 @@ private:
GLuint _dimFragProgram;
GLint _maxLights;
float _alpha;
Math::Vector3d _currentPos;
Math::Quaternion _currentQuat;
};
} // end of namespace Grim
-4
View File
@@ -24,7 +24,6 @@
#define GRIM_GFX_TINYGL_H
#include "engines/grim/gfx_base.h"
#include "math/quat.h"
#include "graphics/tinygl/zgl.h"
@@ -132,9 +131,6 @@ private:
Graphics::PixelBuffer _storedDisplay;
float _alpha;
Math::Vector3d _currentPos;
Math::Quaternion _currentQuat;
void readPixels(int x, int y, int width, int height, uint8 *buffer);
void blit(const Graphics::PixelFormat &format, BlitImage *blit, byte *dst, byte *src, int x, int y, int width, int height, bool trans);
};