Vincent Pelletier
ce5af40a0b
TinyGL: Store spot direction in eye coordinates.
...
As per OpenGL specifications:
The spot direction is transformed by the upper 3x3 of the modelview
matrix when glLight is called, and it is stored in eye coordinates.
2015-05-06 19:49:35 +02:00
Pawel Kolodziejski
1b48414d7e
TINYGL: cleanup license headers
2014-08-13 18:52:52 +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
Stefano Musumeci
63fd685589
TINYGL: Implemented alpha interpolation in triangle rasterization routine.
2014-07-01 14:29:44 +02:00
Stefano Musumeci
19c819e2b0
TINYGL: Fixed an error in matrix transpose method and optimized the code a little bit more.
2014-06-28 17:58:27 +02:00
Stefano Musumeci
f40cfb020c
TINYGL: Changed the way vertices are transformed, increased performance (now it's comparable to the previous version and sometimes it performs even faster).
2014-06-28 17:58:27 +02:00
Stefano Musumeci
6c7eaca2eb
TINYGL: Last optimization batch, performance comparable to the previous version.
2014-06-28 17:58:26 +02:00
Stefano Musumeci
d45c455be4
TINYGL: Done some more optimization on maths code.
2014-06-28 17:58:25 +02:00
Stefano Musumeci
5642d195e0
TINYGL: Done some optimization by moving the logic inside the class Matrix4.
2014-06-28 17:58:25 +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
8b92e5ec83
TINYGL: Fixed all the issues that arised after the refactoring.
2014-06-28 17:57:27 +02:00
Stefano Musumeci
b7853b48f8
TINYGL: Fixed a few mistakes during the refactoring.
2014-06-28 17:57:24 +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
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
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
44e31ba08e
formatting
2011-05-08 11:07:51 +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
Pawel Kolodziejski
49b578ec6a
put tinygl internals into namespace, left only api
2009-05-25 13:19:29 +00:00
Pawel Kolodziejski
41b92f44c7
formating
2009-05-17 08:57:38 +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