Sam Hocevar
a54bb70d64
build: minor Windows compilation fixes.
12 years ago
Sam Hocevar
6169c874e4
gpu: port the vertex buffer abstraction layer to OpenGL.
12 years ago
Sam Hocevar
f7e202a7c8
gpu: implement vertex buffer streams for Direct3D. OpenGL is missing for now.
12 years ago
Sam Hocevar
2601c970a2
gpu: refactor the vertex declaration code to allow several vertex streams.
12 years ago
Sam Hocevar
3ab2f621f8
gpu: fix compilation errors and warnings in the vertex declaration code.
12 years ago
Sam Hocevar
5218c59ab7
gpu: start working on a template-based vertex buffer class.
12 years ago
Sam Hocevar
f048a0a552
build: add some ignored files to .gitignore.
12 years ago
Sam Hocevar
5014b90b3e
build: compilation fixes for errors introduced in the recent Direct3D
and Android changes.
12 years ago
Sam Hocevar
57f393d0d3
gpu: port the texture and scene handling code to Direct3D. Not functional.
12 years ago
Sam Hocevar
e67d6a1866
mrpigeon: add missing files to the Visual Studio project.
12 years ago
Sam Hocevar
15c4e8016a
android: slightly update Android project for newer SDK versions.
12 years ago
Sam Hocevar
8f0fc94027
tutorial: fix a compilation error and remove now useless vector type casts.
12 years ago
Sam Hocevar
64da211c62
math: do not use #pragma diagnostic push for GCC prior to 4.6.
12 years ago
Sam Hocevar
701eb778a3
tutorial: fix the texture swizzling for the fractal viewer on Xbox 360.
12 years ago
Sam Hocevar
1485e5bf63
gpu: add support for integer uniforms and fix a few PS3 and Linux compilation
issues that were introduced with the Direct3D changes.
12 years ago
Sam Hocevar
458378003c
win32: the uniform handling code was completely broken; we now properly
retrieve the constant's register index in the description table. This also
allows us to use a single uniform handle for both the vertex and pixel
shaders in a PS3 Cg program.
12 years ago
Sam Hocevar
c2ff2ad9b7
win32: add Direct3D texture creation code in the fractal zoomer. Shader
support is still missing.
12 years ago
Sam Hocevar
88f10fe54b
build: allow to build the Direct3D 9 driver with the mingw compiler.
12 years ago
Sam Hocevar
682b9dbdd3
build: start configuring the build for Win64.
12 years ago
Sam Hocevar
5d2ddbdb6f
math: use size_t instead of int for vector subscript to avoid torrents
of compiler warnings in 64-bit mode when sizeof(foo) is used as the
argument for the array subscript operator. No need to care about the
non-signedness since only positive indices work.
12 years ago
Sam Hocevar
090834b149
win32: start porting the graphical backend to DirectX 9. Apparently I
cannot used DirectX 10 because my video card only supports DX9, and there
is no compatibility layer. DX11 has feature levels for older hardware so
it would work with a DX9 card, but it's not available for WinXP.
12 years ago
Sam Hocevar
d855e72198
win32: the GDI+ byte swapping was wrong; fix that.
12 years ago
Sam Hocevar
d539f3b80c
win32: shuffle bytes in GDI images to match what OpenGL supports.
12 years ago
Sam Hocevar
fea2c18f71
build: make one Visual Studio file slightly shorter.
12 years ago
Sam Hocevar
c009074493
build: add Visual Studio props file that had mistakenly disappeared.
12 years ago
Sam Hocevar
a3f410d697
video: allow to set the default clear color.
12 years ago
Sam Hocevar
f35f4284b0
core: allow each blitted tile to be stretched differently.
12 years ago
Sam Hocevar
4fac6d468b
tutorial: fix unbalanced parenthesis breaking compilation.
12 years ago
Sam Hocevar
4c7ce44cdb
tutorial: port the rotating cube tutorial to the Xbox 360 and
tweak the triangle tutorial to make it shorter.
12 years ago
Sam Hocevar
a911b0f2bf
build: ensure all projects have a <ItemDefinitionGroup> entry,
otherwise Xbox 360 debugging does not work properly. For real.
12 years ago
Sam Hocevar
bd69c76f90
xbox: fix a few problems in the shader handling code; the first tutorial now
works on the Xbox.
12 years ago
Sam Hocevar
2f017eeddb
build: more Visual Studio project refactoring, with multiprocessor
compilation and a few other tweaks.
12 years ago
Sam Hocevar
39b59b3d42
test: fix uninitialised member variable.
12 years ago
Sam Hocevar
49552f2dde
build: do the Visual Studio project refactoring a bit differently.
12 years ago
Sam Hocevar
02449e11b2
build: more Visual Studio project file refactoring.
12 years ago
Sam Hocevar
2831476774
build: major refactoring of the Win32 and Xbox project files; we now
link properly on the Xbox.
12 years ago
Sam Hocevar
6868b1eb32
math: remove old non-working vector code for the float to half conversion.
12 years ago
Sam Hocevar
fac42dd7a2
xbox: create the Xbox application class and add a project file for MrPigeon.
12 years ago
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 years ago
Sam Hocevar
edfa3dfc4b
core: allow to stretch 2D sprits in both X and Y directions.
12 years ago
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 years ago
Sam Hocevar
130071bd6a
math: add a few comments.
12 years ago
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 years ago
Sam Hocevar
43e152053a
win32: add a lot of DirectX stubs.
12 years ago
Sam Hocevar
59ee25e0b3
win32: a few compilation fixes, including GDI+ linking properly now.
12 years ago
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 years ago
Sam Hocevar
33a3897b06
math: add vectors of "half" to vector.h.
12 years ago
Sam Hocevar
2d3307c6b2
math: move cross product out of the .cpp file.
12 years ago
Sam Hocevar
2f4c181f7d
gl: compilation fix due to #if/#elif confusion.
12 years ago
Sam Hocevar
60a2e83d54
xbox: start working on an Xbox/Direct3D port.
12 years ago