Commit Graph

18 Commits

Author SHA1 Message Date
richiesams
a3315037ff ZVISION: Create methods for converting screen coords to image coords 2013-08-11 13:44:23 -05:00
richiesams
c828074df9 ZVISION: Remove extraneous comments 2013-08-04 13:33:12 -05:00
richiesams
3fd5a8ab5a ZVISION: Offset the RenderTable index by the normalized coords, not the subRect coords 2013-08-04 13:33:11 -05:00
richiesams
f1135292d0 ZVISION: Optimize integer type usages
The general thought is int is faster than int16 or byte. So if you can afford the
space, use it over int16 or byte. Also, only use int32 when you specifically need
the 32 bits.
2013-08-04 13:32:55 -05:00
richiesams
2063cb711d ZVISION: Add 'reverse' to _tiltOptions and _panoramaOptions to handle Control options 2013-08-04 13:32:51 -05:00
richiesams
cf9790a9d6 ZVISION: Create mutators for _tiltOptions 2013-08-04 13:32:49 -05:00
Filippos Karapetis
032afd3c1a ZVISION: Fix compilation 2013-08-04 13:32:48 -05:00
richiesams
e076d8e52f ZVISION: Change default panorama FoV to 27 degrees
This is to match Marisa Chan's implementation. Images at this FoV also look better.
2013-08-04 13:32:47 -05:00
richiesams
8f3e27cbd0 ZVISION: Fix closing braces on generateTiltLookupTable 2013-08-04 13:32:46 -05:00
richiesams
0e4e6ee9bf ZVISION: Create methods for altering panoramaOptions and create console commands for them 2013-08-04 13:32:46 -05:00
richiesams
5376aa7b3c ZVISION: Move generating the RenderTable to outside setRenderState
This allows the panorama/tilt options to mutated without having to generate the table multiple times.
2013-08-04 13:32:45 -05:00
richiesams
48b9741f41 ZVISION: Rename Point template class to Vector2
Also remove templating
2013-08-04 13:32:44 -05:00
richiesams
f8bc82080a ZVISION: Create function for mixing two RGB<555> colors 2013-08-04 13:32:43 -05:00
richiesams
4acdf5b7d5 ZVISION: Convert panoramaOptions and tiltOptions to floats 2013-08-04 13:32:43 -05:00
richiesams
a23970bbc6 ZVISION: Convert RenderTable to only storing (x,y) offsets instead of absolute postions.
This allows the destRectangle to be offset within the RenderTable
2013-08-04 13:32:42 -05:00
richiesams
34b3a78898 ZVISION: Fix error causing image discontinutities
The width and height were swapped when passed to the class constructor.
2013-08-04 13:32:41 -05:00
richiesams
3d223e2123 ZVISION: Modify the RenderTable panorama math to account for panoramas being transposed 2013-08-04 13:32:39 -05:00
richiesams
cd51b646f3 ZVISION: Create a class for handling all render table logic
Aka, creating the lookup tables, storing the current render state, and eventually doing
the image mutations.
2013-08-04 13:32:33 -05:00