mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
EMI: Move _current{Quat,Pos} up to GfxBase
This commit is contained in:
@@ -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) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user