16 Commits

Author SHA1 Message Date
Vincent Pelletier
8c1954359e TINYGL: Fix glopClear
ClearBufferDrawCall expects 0..255 color values, not the internal 16-bits
fixed-point format.
Also, fix a typo in glopClear on Z scaling.
2017-05-01 08:32:25 +00:00
Vincent Pelletier
054a2bd920 TINYGL: Fix line color
As in ztriangle, vertex color must be shifted from internal 16-bits
fixed-point format to 8-bits colors.
To do so, define values similar to the ones describing for ST fixed-point
format.
Also, use these in tglClear instead of hard-coded multiplicands, as is
done in tglColor4f and gl_transform_to_viewport.
Also, make tglClear take into account requested clear depth.
2017-05-01 02:21:40 +00: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
Pawel Kolodziejski
1b48414d7e TINYGL: cleanup license headers 2014-08-13 18:52:52 +02:00
Stefano Musumeci
6cd062826b TINYGL: Renamed zrect in zdirty rect 2014-08-07 17:56:01 +02:00
Stefano Musumeci
75ea6893ef TINYGL: renamed glIssueDrawCall to tglIssueDrawCall. 2014-08-07 17:38:11 +02:00
Stefano Musumeci
7fdd5bcd9a TINYGL: Implemented ClearBuffer draw call type. 2014-07-25 16:02:23 +02:00
Stefano Musumeci
1a5b6272fc TINYGL: Refactored the name of FrameBuffer instance from zb to fb 2014-06-28 20:39:09 +02:00
Stefano Musumeci
a2de6a0eef TINYGL: Moved a few external C functions inside ZBuffer. 2014-06-28 20:39:05 +02:00
Stefano Musumeci
4fbb2d0dc3 TINYGL: Done several optimizations to the maths code. 2014-06-28 17:58:24 +02:00
Stefano Musumeci
d31c3e7744 TINYGL: Fixed an issue with vertices transformation and matrix-vector multiplication. 2014-06-28 17:58:21 +02:00
Stefano Musumeci
c1040a9cdf TINYGL: Started replacing the old classes with the new ones.
TINYGL: Removed all the use of the old classes of Vector and Matrix.
2014-06-27 11:28:59 +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
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