FULLPIPE: Implement BigPicture::draw()

This commit is contained in:
Eugene Sandulenko 2013-12-22 01:44:08 +02:00
parent 787868c1db
commit 7f3443c424
2 changed files with 30 additions and 1 deletions

View File

@ -1178,6 +1178,34 @@ bool BigPicture::load(MfcArchive &file) {
return true;
}
void BigPicture::draw(int x, int y, int style, int angle) {
if (_bitmap)
init();
if (_bitmap) {
_bitmap->_flags &= 0xFEFFFFFF;
int nx = _x;
int ny = _y;
if (x != -1)
nx = x;
if (y != -1)
ny = y;
if (_alpha < 0xFF) {
//vrtSetAlphaBlendMode(g_vrtDrawHandle, 1, v9);
}
_bitmap->putDib(nx, ny, 0);
if (_alpha < 0xFF) {
//vrtSetAlphaBlendMode(g_vrtDrawHandle, 0, 255);
}
}
}
Shadows::Shadows() {
_staticAniObjectId = 0;
_movementId = 0;

View File

@ -94,7 +94,7 @@ class Picture : public MemoryObject {
void init();
void getDibInfo();
Bitmap *getPixelData();
void draw(int x, int y, int style, int angle);
virtual void draw(int x, int y, int style, int angle);
void drawRotated(int x, int y, int angle);
byte getAlpha() { return (byte)_alpha; }
@ -116,6 +116,7 @@ class BigPicture : public Picture {
public:
BigPicture() {}
virtual bool load(MfcArchive &file);
virtual void draw(int x, int y, int style, int angle);
};
class GameObject : public CObject {