mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 10:51:11 +00:00
SLUDGE: Added debug ouptut to parallax drawing
This commit is contained in:
parent
836825abcf
commit
90a998f742
@ -117,17 +117,17 @@ void GraphicsManager::drawParallax() {
|
||||
|
||||
// TODO: simulate image repeating effect
|
||||
warning("Drawing parallaxStuff");
|
||||
#if 0
|
||||
// display parallax from bottom to top
|
||||
for (ParallaxLayers::iterator it it = _parallax.begin(); it != _parallax.end(); ++it) {
|
||||
(*it)->cameraX = sortOutPCamera(cameraX, (*it)->fractionX, (int)(_sceneWidth - (float)winWidth / cameraZoom), (int)((*it)->surface.w - (float)winWidth / cameraZoom));
|
||||
(*it)->cameraY = sortOutPCamera(cameraY, (*it)->fractionY, (int)(_sceneHeight - (float)winHeight / cameraZoom), (int)((*it)->surface.h - (float)winHeight / cameraZoom));
|
||||
for (ParallaxLayers::iterator it = _parallaxLayers->begin(); it != _parallaxLayers->end(); ++it) {
|
||||
(*it)->cameraX = sortOutPCamera(_cameraX, (*it)->fractionX, (int)(_sceneWidth - (float)_winWidth / _cameraZoom), (int)((*it)->surface.w - (float)_winWidth / _cameraZoom));
|
||||
(*it)->cameraY = sortOutPCamera(_cameraY, (*it)->fractionY, (int)(_sceneHeight - (float)_winHeight / _cameraZoom), (int)((*it)->surface.h - (float)_winHeight / _cameraZoom));
|
||||
|
||||
uint w = ((*it)->wrapS) ? sceneWidth : (*it)->surface.w;
|
||||
uint h = ((*it)->wrapT) ? sceneHeight : (*it)->surface.h;
|
||||
uint w = ((*it)->wrapS) ? _sceneWidth : (*it)->surface.w;
|
||||
uint h = ((*it)->wrapT) ? _sceneHeight : (*it)->surface.h;
|
||||
|
||||
warning("camX: %d camY: %d dims: %d x %d sceneDims: %d x %d", (*it)->cameraX, (*it)->cameraY, w, h, _sceneWidth, _sceneHeight);
|
||||
|
||||
#if 0
|
||||
const GLfloat vertices[] = {
|
||||
(GLfloat) - (*it)->cameraX, (GLfloat) - (*it)->cameraY, 0.1f,
|
||||
w - (*it)->cameraX, (GLfloat) - (*it)->cameraY, 0.1f,
|
||||
@ -142,9 +142,9 @@ void GraphicsManager::drawParallax() {
|
||||
texw, texh
|
||||
};
|
||||
drawQuad(shader.smartScaler, vertices, 1, texCoords);
|
||||
#endif
|
||||
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void GraphicsManager::saveParallax(Common::WriteStream *stream) {
|
||||
|
Loading…
Reference in New Issue
Block a user