Johannes Schickel
71bdb86e02
Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
...
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16
Conflicts:
graphics/png.cpp
2011-05-01 16:54:45 +02:00
Giulio Camuffo
4882f42a1f
GRAPHICS: Added a Line3d class.
2011-04-28 21:48:36 +02:00
Joost Peters
31f3728164
TINYGL: Fix material and lighting color on 64-bit CPUs; the old code assumed sizeof(float)==sizeof(void*)
2011-04-29 00:59:37 +08:00
Joost Peters
11631bdb16
TINYGL: Use the safe READ_* macros for unaligned reads. This fixes a crash in the software renderer on certain platforms.
2011-04-28 20:33:24 +08:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Ori Avtalion
cd6ee0589d
JANITORIAL: Format forward declarations to follow convention
2011-04-28 12:20:34 +03:00
md5
27e4a1dee5
PNG: Changed getPalette() to properly return a copy of the image palette
2011-04-27 13:44:19 +03:00
md5
99e3028459
PNG: Improved code readability a bit
2011-04-27 13:43:03 +03:00
Pawel Kolodziejski
20c5f61288
tab ident
2011-04-26 12:42:38 +02:00
Pawel Kolodziejski
78c006c446
increase max lights for tinygl
2011-04-25 17:37:59 +02:00
Johannes Schickel
33a88e5cac
PNG: This PNG::getPalette.
...
Formerly the palette parameter was a value copy, which was assigned in
getPalette. That did not make much sense, thus I changed it to be a reference.
Since I am not quite sure whether this really shouldn't make a palette copy
I added an TODO comment about it.
2011-04-25 15:45:05 +02:00
Giulio Camuffo
09259203f7
Fixed Vector3d::normalize().
2011-04-21 18:08:34 +02:00
Johannes Schickel
da734a4af0
ALL/GRAPHICS: Remove Surface::bytesPerPixel.
2011-04-17 21:27:34 +02:00
Johannes Schickel
3fd919060c
GRPAHICS: Do not access Surface::bytesPerPixel anymore.
2011-04-17 20:58:08 +02:00
Johannes Schickel
39b993fb02
GRAPHICS: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
2011-04-17 16:24:52 +02:00
Johannes Schickel
4fd3e3d6fe
GRAPHICS: Add a PixelFormat member to Surface.
2011-04-17 15:17:42 +02:00
Pawel Kolodziejski
252d484434
common/sys.h -> common/scummsys.h to minimalize diffs with scummvm
2011-04-17 01:00:10 +02:00
Pawel Kolodziejski
b18b857558
cleanup headers - grim part
2011-04-16 14:12:44 +02:00
Pawel Kolodziejski
99ee683308
cleanup headers
2011-04-16 14:08:33 +02:00
Alyssa Milburn
cfacca1a26
GRAPHICS: Tidy up 4bpp handling a little.
2011-04-14 21:47:56 +02:00
Alyssa Milburn
c60e773981
GRAPHICS: Handle 4bpp paletted PNG files.
2011-04-14 21:08:03 +02:00
Alyssa Milburn
2ac86f8140
GRAPHICS: Replace PNG_HEADER macro with MKTAG
2011-04-14 18:37:27 +02:00
Pawel Kolodziejski
adbbe39d24
fix compilation under unix
2011-04-14 13:11:41 +02:00
Pawel Kolodziejski
0640dcf2c7
synced with scummvm to 2011-Apr-13
2011-04-14 12:41:26 +02:00
Max Horn
0ce2ca4e00
COMMON: Replace MKID_BE by MKTAG
...
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Pawel Kolodziejski
241c7a8c6e
synced with scummvm svn rev 53000
2011-04-11 15:40:01 +02:00
Pawel Kolodziejski
697ed42447
synced with scummvm svn rev 51000
2011-04-11 11:41:07 +02:00
Pawel Kolodziejski
be1b3ab884
synced with scummvm svn rev 50000
2011-04-11 02:28:51 +02:00
Pawel Kolodziejski
e3a475ff7b
synced with scummvm rev svn 49000
2011-04-10 21:59:04 +02:00
Pawel Kolodziejski
bccbcae43c
synced rest files, missed with last sync rev 47951
2011-04-10 15:45:37 +02:00
Giulio Camuffo
66bba94bcf
Fixed some warnings. Patch by Torbjorn Andersson.
2011-04-05 21:45:20 +02:00
Giulio Camuffo
19fcfd63b4
Fix the calculation of the angle in the x-y plane.
2011-03-31 21:01:35 +02:00
dhewg
d83a83ef50
JANITORIAL: Remove/comment unused vars
...
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
Matthew Hoops
1554e1ab2f
ALL: Silence a ton of warnings
2011-03-25 07:42:03 +08:00
Giulio Camuffo
24f02a74d7
Fixed yaw calculation.
2011-03-21 05:39:55 +08:00
dhewg
2def212de7
ALL: s/PI/M_PI/
...
Tip of the day: git grep -w PI
2011-03-19 11:24:06 +01:00
md5
334e1cd675
GRAPHICS: Silenced a warning
2011-03-19 02:30:03 +02:00
Matthew Hoops
4e7b66b1bc
GRAPHICS: Cleanup WinCursorGroup functions a bit
...
ScopedPtr is now used on the streams to avoid having repetitive delete calls.
2011-03-07 16:37:12 -05:00
Matthew Hoops
b158a40844
GRAPHICS: Add doxygen comments for WinCursorGroup
2011-03-07 13:24:05 -05:00
Matthew Hoops
4dba6962f5
GRAPHICS: Fix a missing 'f'
...
Thanks, fuzzie
2011-03-07 11:40:54 -05:00
Matthew Hoops
d49f3a8a78
GRAPHICS: Improve support of Windows 8bpp cursors
2011-03-07 00:53:40 -05:00
Matthew Hoops
5b907e828b
GRAPHICS: Fix PE cursors
...
Initial work on 8bpp cursors has also been added
2011-03-06 19:53:17 -05:00
Matthew Hoops
6143fe965b
GRAPHICS: Add support for PE cursors in WinCursorGroup
...
Only 1bpp still
2011-03-05 13:36:55 -05:00
Matthew Hoops
c66233f83e
GRAPHICS: Split the NE cursor code from the NEResources class
...
Now the code lies in Graphics and all cursors are not cached upon opening an exe. The engine is now in charge of caching which cursors it wants.
2011-03-04 23:17:57 -05:00
Matthew Hoops
550cff84f8
GRAPHICS: Add support for PE FON files
...
This hopefully will work out of the box, but requires testing
2011-02-23 14:43:18 -05:00
Matthew Hoops
a2a0b13de2
COMMON: Begin to merge some NE/PE code
...
The ID classes are now common to both. The files have been renamed to better illustrate their purpose.
2011-02-22 20:03:18 -05:00
Johannes Schickel
9afc89e67c
GRAPHICS: Let PNG::getPalette take an uint16 for the palette entry count.
...
This is in analogy to r55742 / 2f08dcb .
I also took the freedom to clarify that the PNG loader uses a RGBA palette
format.
2011-02-20 21:43:24 +01:00
Johannes Schickel
75ee5af7c9
GRAPHICS: Remove leftover RGBA reference in PaletteManager documentation.
2011-02-20 21:38:40 +01:00
Matthew Hoops
5091f846a7
GRAPHICS: Switch PICT's palette from RGBA to RGB
2011-02-20 00:45:59 -05:00
Matthew Hoops
098581b3b5
GRAPHICS: Use the DirectBits size instead of the overall PICT dimensions
...
Fixes some Myst ME images
2011-02-20 00:43:18 -05:00