Willem Jan Palenstijn
14cb1f09c0
WINTERMUTE: Partially fix rotoscale coordinate confusion
...
This fixes two issues:
* The rendering rectangle was not rotated, causing garbage to be
drawn if the rotated rectangle did not fully cover the unrotated
rectangle, or sprites to be clipped in the opposite case.
* The order of mirror/scale/rotation operations was inconsistent.
This commit does scaling first, followed by rotation. (This is only an
issue because scaling is specified separately in X and Y directions.)
For now only FIXMEs are added for mirroring.
2013-10-06 17:34:19 +02:00
Einar Johan Trøan Sømåen
a932e51b14
WINTERMUTE: Fix formatting.
2013-08-05 03:25:22 +02:00
Tobia Tesan
c32769e0b7
WINTERMUTE; Indentation in transform_*
2013-08-01 02:51:40 +02:00
Tobia Tesan
381df0c64a
WINTERMUTE: Various explicit casts
...
* for floor/ceil output in transform_tools.cpp
* for projX/Y in transparent_surface.cpp
* in transpaprent_surface.cpp
2013-08-01 02:10:42 +02:00
Tobia Tesan
1ecdd2d61a
WINTERMUTE: #define to const for TransformStruct defaults
2013-08-01 00:23:51 +02:00
Tobia Tesan
0d407fd206
WINTERMUTE: Express 180.0f as float in TransformTools
2013-08-01 00:21:35 +02:00
Tobia Tesan
d2d72c0110
WINTERMUTE: #define to const for TransformStruct defaults
2013-08-01 00:21:25 +02:00
Tobia Tesan
6f03fbac84
WINTERMUTE: Pass structs by const reference
2013-08-01 00:06:38 +02:00
Tobia Tesan
ab022b1798
WINTERMUTE: // End of namespace Wintermute
2013-08-01 00:06:37 +02:00
Tobia Tesan
9f97ad6a3e
WINTERMUTE: s/*transform/const &transform/
2013-08-01 00:04:21 +02:00
Tobia Tesan
f014cccb94
WINTERMUTE: Formatting
2013-08-01 00:03:50 +02:00
Tobia Tesan
b34d7b7539
WINTERMUTE: *transform as pointer in transform_tools
2013-08-01 00:03:46 +02:00
Tobia Tesan
d2a249384e
WINTERMUTE: Partial fix for mirrored sprites
...
Still weird with rotated + mirrored + scaled sprites. Offset.
2013-08-01 00:02:49 +02:00
Tobia Tesan
3c0089e31e
WINTERMUTE: Introduce TransformTools
2013-07-31 23:47:57 +02:00