Commit Graph
56 Commits
Author SHA1 Message Date
Lars Buitinck e5e2c3701a TINYGL: rename variable to get rid of warning 2014-05-18 16:26:09 +02:00
Einar Johan Trøan Sømåen 7f77f55d10 TINYGL: Update ChangeLog 2014-02-20 19:33:27 +01:00
Einar Johan Trøan Sømåen 1b3753bc48 TINYGL: Remove typedef from struct-definitions. 2014-02-20 19:08:55 +01:00
Einar Johan Trøan Sømåen 206975fb13 TINYGL: Make read-only parameters in zmath const.
(This also changes a by-value pass in gl_M4_InvOrtho to const-reference,
thanks to Botje for pointing that one out).
2014-02-20 18:58:03 +01:00
Einar Johan Trøan Sømåen 698ef4a37c TINYGL: Use astyle to (semi-selectively) apply the code-formatting conventions to TinyGL. 2014-02-20 18:46:49 +01:00
Einar Johan Trøan Sømåen b21271bd82 TINYGL: Put declaration of counting variable inside for-construct. 2014-02-20 18:06:04 +01:00
Pawel Kolodziejski 9f54d1a56e JANITORIAL: cleanup licences 2014-02-16 17:57:34 +01:00
Christian Krause 344d86bf45 TINYGL: Fix coverity and compile warning
- change void* to byte*, otherwise delete[] is undefined
2014-02-15 18:40:30 +01:00
Joel Teichroeb f989e29d09 TINYGL: Add obviously missing break 2013-12-08 11:37:51 -08:00
Joel Teichroeb 96f2dd1748 TINYGL: Remove default case as the current cases already represent all possible values 2013-12-08 11:37:39 -08:00
Joel Teichroeb edce904439 TINYGL: Do not check the same conditions twice 2013-12-08 11:37:24 -08:00
Joel Teichroeb 7331ccf4da TINYGL: Use the right delete 2013-12-08 11:37:14 -08:00
Joel Teichroeb f10c953d28 TINYGL: Remove dead assignments 2013-12-06 14:56:13 -08:00
Dries Harnie 6bd38b1801 TINYGL: Support ColorMask
Note, this is just basic support, it is either all or nothing.
Disabling select channels is not possible.
2013-07-02 00:22:59 +02:00
Giulio Camuffo 80109ca3fe GRIM: Fix ActorToClean behaviour. Bump save version to 22.4. Fix #701.
The clean buffer code needs two layers. Every actor needs its buffer,
but we also need a global one. The actors' buffers blit to the global buffer
which then gets blitted to screen.
2013-01-11 12:44:30 +01:00
Paweł Kołodziejski 8f418e2247 tinygl: fix: endian issue
(cherry picked from commit 3c0a12d30d4032957f21902d3ccd87eb09d949e8)
2013-01-07 19:09:27 +01:00
Paweł Kołodziejski 175620b62a ALL: change license headers from LGPL to GPL, and few updates 2012-12-19 23:15:43 +01:00
Giulio Camuffo 1e9c530ccd GRAPHICS/TinyGL: Fix the color format on big endian. 2012-12-19 20:45:55 +01:00
Einar Johan Trøan Sømåen 51babbf092 TinyGL: Fix ZB_fillTriangleSmooth to support the colour-support patch. 2012-10-24 22:51:38 +02:00
Andrea Corna 173846c3df TINYGL: Remove an unneeded header 2012-04-21 12:20:06 +02:00
Andrea Corna bd14146a78 TINYGL: Fix some memory leaks 2012-04-21 12:18:42 +02:00
Giulio Camuffo 2b29820241 TinyGL: Try to not blit the clean buffer if empty. 2012-02-13 21:28:19 +01:00
Giulio Camuffo 8156e3a9a3 TinyGL: Remove the double zbuffer. Just use the 32bit one. 2012-02-13 19:21:37 +01:00
Giulio Camuffo 2c527f3993 TinyGL: Add an offscreen buffer, used to draw once and blit many times. 2012-02-13 17:59:48 +01:00
Giulio Camuffo b42bbe5259 TinyGL: Support for different color modes, part 2. 2012-01-24 21:36:47 +01:00
Giulio Camuffo 158a19df31 TinyGL: Support for different color modes, first part. 2012-01-24 21:36:46 +01:00
Einar Johan T. Sømåen 3394bd15ef TINYGL: Add tglColor4ub, to have less diff between tgl-code and gl-code 2012-01-10 09:10:16 +01:00
Einar Johan T. Sømåen 97a3fec971 TINYGL: Add conversion RGB/BGR -> RGBA
Thus allowing for such textures to be loaded without
needing external conversion before creating them.
2012-01-10 08:44:18 +01:00
Pawel Kolodziejski 626e91f23a rename -> ResidualVM 2012-01-06 23:15:48 +01:00
Paweł Kołodziejski 9d2203c8ea Merge pull request #457 from guillemj/master
Assorted segfault fixes
2012-01-06 05:41:46 -08:00
Pawel Kolodziejski 4fa79cd323 rename -> ResidualVM 2012-01-06 11:37:57 +01:00
Guillem Jover a50201481d TinyGL: Do not underflow on specular light calculation
When casting from float to int, the value can underflow making the index
negative which causes a segmentation fault when accessing the array.

Fixes #320
2012-01-05 20:39:53 +01:00
Giulio Camuffo f1f1b32490 TinyGL: Fix enabling of lights. Fix #393 2011-10-28 18:23:17 +02:00
Ori Avtalion c4870a2a20 TinyGL: Silence clang warnings about =- 2011-07-30 11:35:18 +03:00
Pawel Kolodziejski 7329a5d164 ALL: sync with scummvm 2011-06-09 11:17:15 +02:00
Vincent Pelletier 66aa114957 TINYGL: Don't mask shifted-out bits. 2011-05-22 09:44:05 +02:00
Pawel Kolodziejski 0f5de71f70 sync with scummvm 2011-05-08 15:38:26 +02:00
Pawel Kolodziejski 44e31ba08e formatting 2011-05-08 11:07:51 +02:00
Vincent Pelletier e3cd3286cd Add some missing gl_add_op.
Found by gcc 3.6 -Wunused-but-set-variable .
2011-05-05 05:08:34 +08:00
Pawel Kolodziejski 21fae5e42b GRIM: SYSTEM_*_ENDIAN -> SCUMM_*_ENDIAN 2011-05-01 21:05:45 +02:00
Pawel Kolodziejski a02ae4bc5d fix compilation 2011-05-01 18:12:07 +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
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
Pawel Kolodziejski 252d484434 common/sys.h -> common/scummsys.h to minimalize diffs with scummvm 2011-04-17 01:00:10 +02:00
Giulio Camuffo 66bba94bcf Fixed some warnings. Patch by Torbjorn Andersson. 2011-04-05 21:45:20 +02:00
Matthew Hoops 1554e1ab2f ALL: Silence a ton of warnings 2011-03-25 07:42:03 +08:00
Pawel Kolodziejski 788713d3b4 fix warnings 2009-10-17 12:48:23 +00:00
Pawel Kolodziejski bc1cb4ce27 formating 2009-06-06 16:23:31 +00:00