Sam Hocevar
ccc9369660
gpu: avoid unnecessary OpenGL context changes.
11 vuotta sitten
Sam Hocevar
da12e9cf97
scene: for now, restore the ortho cam when blitting tiles.
11 vuotta sitten
Sam Hocevar
ad8144f0e8
scene: use a global g_scene object instead of Scene::GetDefault().
11 vuotta sitten
Sam Hocevar
a75e07d329
gpu: add full support for alpha test in GL and D3D.
11 vuotta sitten
Sam Hocevar
87a9c3730c
gpu: implement all depth test functions in the renderer.
11 vuotta sitten
Sam Hocevar
45c13689ec
gpu: implement blend function and alpha test in the renderer.
11 vuotta sitten
Sam Hocevar
b97cbbe27f
gpu: use the RenderContext class in a few friendly places.
11 vuotta sitten
Sam Hocevar
bd2abf9a78
mrpigeon: try the new tile definition system… which doesn’t work.
11 vuotta sitten
Sam Hocevar
9a752c84d8
tileset: refactor the tile generation code.
11 vuotta sitten
Sam Hocevar
d4dcdb75e6
gpu: account for the HLSL half-texel offset on the PS3.
11 vuotta sitten
Sam Hocevar
9819425ba0
math: replace RandF() with a more generic rand() template function
that lets us draw integer random values too.
11 vuotta sitten
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
11 vuotta sitten
Sam Hocevar
872efdb880
debug: add Debug::DrawLine() and Debug::DrawBox() methods.
11 vuotta sitten
Sam Hocevar
16a620d537
scene: start refactoring the camera code; we now have a stack of cameras
in the scene where we can push and pop cameras.
11 vuotta sitten
Sam Hocevar
bb28344eb7
build: fix compiler warnings and Linux and PS3 build issues.
11 vuotta sitten
Sam Hocevar
0ba4e6d9e0
easymesh: interface the shiny shader with new Light objects.
12 vuotta sitten
Sam Hocevar
3adf42b00c
build: hide LolFx external declarations behind macros.
12 vuotta sitten
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
12 vuotta sitten
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
12 vuotta sitten
Sam Hocevar
ad00a34984
gpu: add support for triangle strips and fans, and change the DrawElement
calls so that they take a number of vertices or indexes, not elements.
12 vuotta sitten
Sam Hocevar
1f8ba128d4
core: fix sorting of 2D scenes.
12 vuotta sitten
Sam Hocevar
2297288114
gpu: get rid of the inline 2D shader and create "tile.lolfx".
12 vuotta sitten
Sam Hocevar
d684c0d113
scene: avoid doing hundreds of useless OpenGL calls if no 2D sprite is
being displayed in the scene.
12 vuotta sitten
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
12 vuotta sitten
Sam Hocevar
6467a06e90
core: convert some realloc() calls to our nice dynamic Array class.
12 vuotta sitten
Sam Hocevar
bfada5d920
core: move some of the camera view logic from the Video class to the
Scene and Camera classes.
12 vuotta sitten
Sam Hocevar
fe9bab81c1
gpu: fix a great lot of Direct3D problems, spotted using PIX.
12 vuotta sitten
Sam Hocevar
48c7070243
gpu: replace exit(0) in D3D error checks with lol::Abort().
12 vuotta sitten
Sam Hocevar
0d49891632
gpu: fix a nasty bug in the D3D9 vertex declaration code that caused
wrong offset computations.
12 vuotta sitten
Sam Hocevar
f7770f7387
gpu: add an Unbind() method for textures for clean up. Unfortunately
the Scene code still breaks Direct3D rendering.
12 vuotta sitten
Sam Hocevar
560d5cc6be
gpu: fix the core scene renderer.
12 vuotta sitten
Sam Hocevar
6169c874e4
gpu: port the vertex buffer abstraction layer to OpenGL.
12 vuotta sitten
Sam Hocevar
5014b90b3e
build: compilation fixes for errors introduced in the recent Direct3D
and Android changes.
12 vuotta sitten
Sam Hocevar
57f393d0d3
gpu: port the texture and scene handling code to Direct3D. Not functional.
12 vuotta sitten
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 vuotta sitten
Sam Hocevar
88f10fe54b
build: allow to build the Direct3D 9 driver with the mingw compiler.
12 vuotta sitten
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 vuotta sitten
Sam Hocevar
f35f4284b0
core: allow each blitted tile to be stretched differently.
12 vuotta sitten
Sam Hocevar
bd69c76f90
xbox: fix a few problems in the shader handling code; the first tutorial now
works on the Xbox.
12 vuotta sitten
Sam Hocevar
43e152053a
win32: add a lot of DirectX stubs.
12 vuotta sitten
Sam Hocevar
bc331e0116
gl: do not enable or disable GL_TEXTURE_2D with GLES 2.0, it's now illegal.
13 vuotta sitten
Sam Hocevar
3978ea9e2a
core: fix bugs in mat4::lookat() and mat4::perspective(), and ensure these
function use degrees rather than radians.
13 vuotta sitten
Sam Hocevar
804f6684b5
scene: try to disable all activated GL features in the scene rendering.
13 vuotta sitten
Sam Hocevar
356917292d
osx: link with the proper OpenGL libraries on OS X.
13 vuotta sitten
Sam Hocevar
2b9d64f7a8
core: more vec?i -> ?veci renames.
13 vuotta sitten
Sam Hocevar
05ed66b18d
ps3: port our naive dithering algorithm to the PS3's shader language.
13 vuotta sitten
Sam Hocevar
7cfcfb2413
shader: factor the uniform handling logic into platform-independent methods
for both OpenGL and the PS3.
13 vuotta sitten
Sam Hocevar
394fffe057
gl: implement the PS3 version of our bitmap renderer.
13 vuotta sitten
Sam Hocevar
28f8fce429
gl: do not call glDeleteBuffers with a zero-length list, it crashes on
the PS3.
13 vuotta sitten
Sam Hocevar
dc13c1f742
tiler: ensure AddTile() and BlitTile() accept vec3i arguments.
13 vuotta sitten