Vincent Pelletier
03da50312b
TINYGL: Move the task of writing to z-buffer to FrameBuffer::writePixel.
...
Because writePixel may decide to not write anything (alpha test), in which
case no z-buffer write should happen.
Factorises code.
Fixes apparent back-face culling in GRIM behind transparent textures, like
the tube (the 3d-shape Manny takes out, not the flat image in foreground)
in set mo.
2016-07-14 21:30:18 +00:00
Pawel Kolodziejski
b8bddf64da
GRIM: fixed transparency in TinyGL renderer
2014-12-25 15:16:50 +01:00
Pawel Kolodziejski
e20ef7a4f8
TINYGL: added support for alpha channel for non texture triangles.
2014-09-12 06:50:17 +02:00
Stefano Musumeci
2cf70d6d76
Merge branch 'master' into tinygl-dirty-rects-fixed
...
Conflicts:
graphics/tinygl/ztriangle.cpp
2014-08-16 16:03:27 +02:00
Joni Vähämäki
5bdfbb29eb
TINYGL: Do not write to the depth buffer if depth test is disabled.
2014-08-14 22:01:18 +03:00
Stefano Musumeci
f9332da316
TINYGL: Refactored if-else sequence with progressive function calls.
2014-08-13 22:38:24 +02:00
Pawel Kolodziejski
1b48414d7e
TINYGL: cleanup license headers
2014-08-13 18:52:52 +02:00
Stefano Musumeci
6e75f6b594
TINYGL: Renamed rasterization functions template parameters with constants naming convention.
2014-08-10 20:31:07 +02:00
Stefano Musumeci
f107e7cf6b
TINYGL: Renamed variables to camelCase.
2014-08-09 12:00:43 +02:00
Stefano Musumeci
a4b57371e2
TINYGL: Refactored out duplicated code.
2014-08-08 13:09:44 +02:00
Stefano Musumeci
8c94a65a70
TINYGL: Optimized rasterization routines by moving more data from dynamic evaluation to static evaluation.
2014-08-06 21:52:41 +02:00
Stefano Musumeci
4d2dc3f0aa
TINYGL: Added pixel scissoring logic to triangle rasterization.
2014-08-05 13:21:25 +02:00
Pawel Kolodziejski
9a81f8997c
TINYGL: properly handle color for FLAT mode and lines drawing. Respect FLAT/SMOOTH mode for triangle drawing
2014-07-05 20:54:14 +02:00
Pawel Kolodziejski
97b03aed01
TINYGL: changed code to allow initialize TinyGL with specific internal texture dimension.
...
Grim: 256x256, Myst3: 1024x1024
2014-07-05 13:08:34 +02:00
Pawel Kolodziejski
f477946646
TINYGL: allow change internal texture size at compilation time. Now it's 1024x1024 pixels.
2014-07-05 12:13:03 +02:00
Pawel Kolodziejski
2072e51813
Revert "TINYGL: fixing T texture cordinate"
...
This reverts commit 5d65e40e1f .
2014-07-05 11:08:30 +02:00
Pawel Kolodziejski
5d65e40e1f
TINYGL: fixing T texture cordinate
2014-07-05 11:06:34 +02:00
Pawel Kolodziejski
e6924e894c
TINYGL: eliminate not clear use of define
2014-07-05 09:29:38 +02:00
Pawel Kolodziejski
1b8dd28bc7
TINYGL: implemented tglDepthFunc
2014-07-04 23:14:44 +02:00
Stefano Musumeci
38aa730b76
TINYGL: Implemented tglDepthMask.
2014-07-03 17:02:01 +02:00
Pawel Kolodziejski
e350350908
TINYGL: formatting code
2014-07-02 07:59:22 +02:00
Stefano Musumeci
109767e513
TINYGL: Implemented alpha blending and color transformation in sprite blitting for Grim TinyGL renderer.
2014-07-02 00:09:13 +02:00
Stefano Musumeci
63fd685589
TINYGL: Implemented alpha interpolation in triangle rasterization routine.
2014-07-01 14:29:44 +02:00
Stefano Musumeci
03072c4b7b
TINYGL: Encapsulated pixel access in FrameBuffer class, provided an implementation of glBlendFunc.
2014-07-01 14:27:40 +02:00
Stefano Musumeci
e373f12d64
TINYGL: Removed unnecessary files and updated changelog.
2014-06-29 19:13:18 +02:00
Stefano Musumeci
4555f10cd8
TINYGL: Refactored line drawing routines.
2014-06-29 19:13:18 +02:00
Stefano Musumeci
2d6940923a
TINYGL: Removed all the macros from triangle draw routines.
2014-06-28 20:39:10 +02:00
Stefano Musumeci
e630fb398a
TINYGL: Refactored shadow drawing routines
2014-06-28 20:39:10 +02:00
Stefano Musumeci
4f140b6520
TINYGL: Refactored the triangle function in a template fashion
2014-06-28 20:39:09 +02:00
Stefano Musumeci
b9e0b28ed9
TINYGL: Renamed ZBuffer into FrameBuffer
2014-06-28 20:39:08 +02:00
Stefano Musumeci
81b5d40588
TINYGL: Refactored fill functions inside ZBuffer struct.
2014-06-28 20:39:07 +02:00
Stefano Musumeci
2be487a1f0
TINYGL: Added assert to ensure correct texture format.
2014-06-28 20:39:07 +02:00
Stefano Musumeci
10c4d6d4f5
TINYGL: Refactored zTriangleFill texture access code.
2014-06-28 20:39:06 +02: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
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
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
Giulio Camuffo
8156e3a9a3
TinyGL: Remove the double zbuffer. Just use the 32bit one.
2012-02-13 19:21:37 +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
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
788713d3b4
fix warnings
2009-10-17 12:48:23 +00:00
Pawel Kolodziejski
bc1cb4ce27
formating
2009-06-06 16:23:31 +00:00
Pawel Kolodziejski
49b578ec6a
put tinygl internals into namespace, left only api
2009-05-25 13:19:29 +00:00
Pawel Kolodziejski
110527019b
make compilable after latest change
2009-05-08 07:32:33 +00:00
Pawel Kolodziejski
f85c21fa4c
moved tinygl
2009-05-08 07:17:43 +00:00