void RenderManager::renderImageToBackground(const Common::String &fileName, int16 destX, int16 destY, uint32 keycolor) { Graphics::Surface surface; readImageToSurface(fileName, surface); blitSurfaceToBkg(surface, destX, destY, keycolor); surface.free(); }
void RenderManager::renderImageToBackground(const Common::String &fileName, int16 destX, int16 destY, int16 keyX, int16 keyY) { Graphics::Surface surface; readImageToSurface(fileName, surface); uint16 keycolor = *(uint16 *)surface.getBasePtr(keyX, keyY); blitSurfaceToBkg(surface, destX, destY, keycolor); surface.free(); }
Graphics::Surface *RenderManager::loadImage(Common::String file, bool transposed) { Graphics::Surface *tmp = new Graphics::Surface; readImageToSurface(file, *tmp, transposed); return tmp; }
Graphics::Surface *RenderManager::loadImage(Common::String file) { Graphics::Surface *tmp = new Graphics::Surface; readImageToSurface(file, *tmp); return tmp; }
void RenderManager::setBackgroundImage(const Common::String &fileName) { readImageToSurface(fileName, _currentBackgroundImage); _backgroundWidth = _currentBackgroundImage.w; _backgroundHeight = _currentBackgroundImage.h; _backgroundDirtyRect = Common::Rect(_backgroundWidth, _backgroundHeight); }
void RenderManager::readImageToSurface(const Common::String &fileName, Graphics::Surface &destination) { bool isTransposed = _renderTable.getRenderState() == RenderTable::PANORAMA; readImageToSurface(fileName, destination, isTransposed); }
void RenderManager::setBackgroundImage(const Common::String &fileName) { readImageToSurface(fileName, _currentBackground); moveBackground(0); }
void RenderManager::renderImageToScreen(const Common::String &fileName, int16 destinationX, int16 destinationY, bool wrap) { Graphics::Surface surface; readImageToSurface(fileName, surface); renderSubRectToScreen(surface, destinationX, destinationY, wrap); }