From dfe143137aa89909c9bf0fd24a359be8af9c2834 Mon Sep 17 00:00:00 2001 From: richiesams Date: Fri, 30 Aug 2013 17:09:46 -0500 Subject: ZVISION: Remove extraneous TODO After redoing the math, I now know that the algorithm requires for(x) { for(y) {}} --- engines/zvision/render_table.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'engines/zvision') 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++) { -- cgit v1.2.3