Sam Hocevar
|
4624e6394a
|
math: fix VS2010 compiler warnings in the float/half conversion tables, and
replace the well known DeBruijn sequence with a custom magic value to spare
one binary operation.
|
12 年前 |
Sam Hocevar
|
edfa3dfc4b
|
core: allow to stretch 2D sprits in both X and Y directions.
|
12 年前 |
Sam Hocevar
|
ad64711c84
|
sdl: convert any opened image to 8 bit per channel because we don't have
any mechanism yet for uploading exotic formats to the GPU.
|
12 年前 |
Sam Hocevar
|
130071bd6a
|
math: add a few comments.
|
12 年前 |
Sam Hocevar
|
56e4332597
|
build: reorganise math files in a single "math" directory, and get rid of the
"shader" source directory since we have "gpu".
|
12 年前 |
Sam Hocevar
|
43e152053a
|
win32: add a lot of DirectX stubs.
|
12 年前 |
Sam Hocevar
|
59ee25e0b3
|
win32: a few compilation fixes, including GDI+ linking properly now.
|
12 年前 |
Sam Hocevar
|
d9f600f7e3
|
math: disable vectors of halfs until we find a way to speed up the build
time, for now the .h takes 17 seconds to compile for each file!
|
12 年前 |
Sam Hocevar
|
33a3897b06
|
math: add vectors of "half" to vector.h.
|
12 年前 |
Sam Hocevar
|
2d3307c6b2
|
math: move cross product out of the .cpp file.
|
12 年前 |
Sam Hocevar
|
2f4c181f7d
|
gl: compilation fix due to #if/#elif confusion.
|
12 年前 |
Sam Hocevar
|
60a2e83d54
|
xbox: start working on an Xbox/Direct3D port.
|
12 年前 |
Sam Hocevar
|
40be36ec2c
|
test: fix logic bugs in two tutorials.
|
12 年前 |
Sam Hocevar
|
7fd393b7ef
|
sdl: on Windows, perform the input tick in the main drawing thread.
|
12 年前 |
Sam Hocevar
|
835fa4a865
|
win32: fix cross-project dependencies for recently added projects.
|
12 年前 |
Sam Hocevar
|
b79b651cd7
|
mrpigeon: create source tree for MrPigeon.
|
12 年前 |
Sam Hocevar
|
811de0ac78
|
win32: fix SDL support in lolcore.
|
12 年前 |
Sam Hocevar
|
0303a8384f
|
win32: fix Visual Studio compilation and link issues.
|
12 年前 |
Sam Hocevar
|
89c3b3a60f
|
ps3: fix PS3 build after the Queue refactoring.
|
12 年前 |
Sam Hocevar
|
8bea4cf189
|
math: ensure real::fabs() is never chosen over std::fabs() for arguments
that are not explicitly real, even with namespace mistakes.
|
12 年前 |
Sam Hocevar
|
c0cb995fd2
|
win32: various compilation fixes, mostly project updates, but also a
workaround for a Visual Studio compiler bug (Connect Id #730878).
|
12 年前 |
Sam Hocevar
|
7867c6ea3e
|
math: fix minor warnings in half.h and vector.h.
|
12 年前 |
Sam Hocevar
|
b4610706c0
|
math: move half.h into the public headers.
|
12 年前 |
Sam Hocevar
|
420a005214
|
math: disable annoying compiler warnings in vector.h.
|
12 年前 |
Sam Hocevar
|
7723d892f7
|
math: make sure magic swizzling vectors don't actually store data, and
do the swizzling by using their address rather than their members.
|
12 年前 |
Sam Hocevar
|
06081053ba
|
math: minor tweak to avoid using macros with empty parameters.
|
12 年前 |
Sam Hocevar
|
06d9d00c34
|
win32: no longer ship GDI+ because MinGW ships a working version, including
for Win64.
|
12 年前 |
Sam Hocevar
|
8684d237e9
|
win32: add a few predefined macros to the VS build system.
|
12 年前 |
Sam Hocevar
|
481212559e
|
math: disable const union members on GCC prior to 4.6.
|
12 年前 |
Sam Hocevar
|
8942c9a939
|
math: add new coercion rules for vector classes.
|
12 年前 |
Sam Hocevar
|
1a6acffe34
|
build: disable excessive image cleanup rules.
|
12 年前 |
Sam Hocevar
|
12414bc6b9
|
math: some refactoring in the vector operations, to make it easier to
implement automatic promotion in the future.
|
12 年前 |
Sam Hocevar
|
8bca639606
|
math: add missing operators (==, !, <= etc.) to the "half" class so that
it can at last be put into a vector.
|
12 年前 |
Sam Hocevar
|
6951578bb7
|
math: minor compilation fixes for Visual Studio. Still does not link.
|
12 年前 |
Sam Hocevar
|
d27443a5d7
|
math: allow vectors of half and real; they don't support swizzling or rgba
getter aliases.
|
12 年前 |
Sam Hocevar
|
64f6c5818b
|
test: that cast was necessary, after all...
|
12 年前 |
Sam Hocevar
|
54f74a1b20
|
win32: some compilation fixes here and there.
|
12 年前 |
Sam Hocevar
|
03250fa321
|
test: remove a useless cast.
|
12 年前 |
Sam Hocevar
|
db728e48fe
|
threads: change Queue to a template so that we can manage the element type.
|
12 年前 |
Sam Hocevar
|
38624cb909
|
math: disallow using vector swizzling components as lvalues until we
switch to C++11.
|
13 年前 |
Sam Hocevar
|
8f2817e813
|
math: use const references instead of passing arguments by value in
the magic vector swizzling assignment methods.
|
13 年前 |
Sam Hocevar
|
6838ff88b6
|
math: add "const" to many vector swizzling patterns to forbid constructs
such as "foo.xx = bar.xy".
|
13 年前 |
Sam Hocevar
|
2fe8d1f9a0
|
math: fix a syntax error in vector.h due to duplicate macro declaration.
|
13 年前 |
Sam Hocevar
|
0a52e68f6f
|
math: rename matrix.h to vector.h and simplify some stuff, especially in
the matrix code itself.
|
13 年前 |
Sam Hocevar
|
e3220b2d74
|
math: some simplifications in the magic vector templates, and some macros
removed because they were used only once.
|
13 年前 |
Sam Hocevar
|
c8d5630e4e
|
math: finally get the GLSL-like swizzling to work.
|
13 年前 |
Sam Hocevar
|
57df2357de
|
math: try to implement the magic getter/setter pattern. BREAKS BUILD.
|
13 年前 |
Sam Hocevar
|
d38a79ee3d
|
math: move most vector and matrix member functions to global functions.
|
13 年前 |
Sam Hocevar
|
bf604ef1f7
|
math: use the usual GLSL member names for vectors (xyzw, rgba, stpq).
|
13 年前 |
Sam Hocevar
|
bed5dea0c0
|
math: implement ulp() for reals, which returns the smallest real y > 0 such
that x + y != x, and nextafter() which behaves like the C function.
|
13 年前 |