aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-08-30 17:09:46 -0500
committerWillem Jan Palenstijn2013-09-24 13:59:39 +0200
commitdfe143137aa89909c9bf0fd24a359be8af9c2834 (patch)
tree9d31a3a771c777111fcaedd87aa5992db7b2ce3e
parent21474d32ab2d2de784c6cd12f85e0f9ad68bcea4 (diff)
downloadscummvm-rg350-dfe143137aa89909c9bf0fd24a359be8af9c2834.tar.gz
scummvm-rg350-dfe143137aa89909c9bf0fd24a359be8af9c2834.tar.bz2
scummvm-rg350-dfe143137aa89909c9bf0fd24a359be8af9c2834.zip
ZVISION: Remove extraneous TODO
After redoing the math, I now know that the algorithm requires for(x) { for(y) {}}
-rw-r--r--engines/zvision/render_table.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/engines/zvision/render_table.cpp b/engines/zvision/render_table.cpp
index 55285b45e6..a4dfe67c53 100644
--- a/engines/zvision/render_table.cpp
+++ b/engines/zvision/render_table.cpp
@@ -163,7 +163,6 @@ void RenderTable::generatePanoramaLookupTable() {
float fovInRadians = (_panoramaOptions.fieldOfView * M_PI / 180.0f);
float cylinderRadius = halfHeight / tan(fovInRadians);
- // TODO: Change the algorithm to write a whole row at a time instead of a whole column at a time. AKA: for(y) { for(x) {}} instead of for(x) { for(y) {}}
for (uint x = 0; x < _numColumns; x++) {
// Add an offset of 0.01 to overcome zero tan/atan issue (vertical line on half of screen)
// Alpha represents the horizontal angle between the viewer at the center of a cylinder and x
@@ -173,7 +172,6 @@ void RenderTable::generatePanoramaLookupTable() {
// We also scale it by _panoramaOptions.linearScale
int32 xInCylinderCoords = int32(floor((cylinderRadius * _panoramaOptions.linearScale * alpha) + halfWidth));
-
float cosAlpha = cos(alpha);
for (uint y = 0; y < _numRows; y++) {