Benjamin ‘Touky’ Huet
fe7f7b9fdb
Added Base directory logic similar to File class, with windows only implementation -for now-
Added tile cam index to have tileset available with other 3d stuff ..... 2014 is now !
11 years ago
Sam Hocevar
32143b8bb4
scene: allow to rotate sprites around the Z axis.
11 years ago
Sam Hocevar
6c0cab193c
scene: position sprite tiles from their centre instead of their corner.
11 years ago
Benjamin ‘Touky’ Huet
dbb1d02aa6
Added 2D to 3D DebugLines
11 years ago
Benjamin ‘Touky’ Huet
cc8e6ced51
Added Debug DrawBox+DrawCapsule+DrawCircle+DrawSphere for ze lulz
11 years ago
Benjamin ‘Touky’ Huet
b1fbc0259f
Added Mask & StickyTime to Draw Debug
11 years ago
Sam Hocevar
232fa4126d
gpu: rename uniforms here and there for consistency.
12 years ago
Sam Hocevar
0f3805be4c
android: various fixes, but the switch to NativeActivity isn't complete.
12 years ago
Sam Hocevar
1945e85afc
scene: start working on the scene class reorganisation.
12 years ago
Benjamin ‘Touky’ Huet
accce03e6f
small tweaks in EZMesh shader compatibilities
12 years ago
Benlitz
f104674963
gpu: removed attribute name, everything works using semantic only now. For glsl, semantic is determined from the attribute name which must follow this pattern: in_[Semantic][index], index being optional. Note: this may break most of the projects although I tried to updated every shader accordingly
12 years ago
Sam Hocevar
f193bc2caa
scene: break text rendering again so that 2D games work properly...
12 years ago
Sam Hocevar
ccc9369660
gpu: avoid unnecessary OpenGL context changes.
12 years ago
Sam Hocevar
da12e9cf97
scene: for now, restore the ortho cam when blitting tiles.
12 years ago
Sam Hocevar
ad8144f0e8
scene: use a global g_scene object instead of Scene::GetDefault().
12 years ago
Sam Hocevar
a75e07d329
gpu: add full support for alpha test in GL and D3D.
12 years ago
Sam Hocevar
87a9c3730c
gpu: implement all depth test functions in the renderer.
12 years ago
Sam Hocevar
45c13689ec
gpu: implement blend function and alpha test in the renderer.
12 years ago
Sam Hocevar
b97cbbe27f
gpu: use the RenderContext class in a few friendly places.
12 years ago
Sam Hocevar
bd2abf9a78
mrpigeon: try the new tile definition system… which doesn’t work.
12 years ago
Sam Hocevar
9a752c84d8
tileset: refactor the tile generation code.
12 years ago
Sam Hocevar
d4dcdb75e6
gpu: account for the HLSL half-texel offset on the PS3.
12 years ago
Sam Hocevar
9819425ba0
math: replace RandF() with a more generic rand() template function
that lets us draw integer random values too.
12 years ago
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
12 years ago
Sam Hocevar
872efdb880
debug: add Debug::DrawLine() and Debug::DrawBox() methods.
12 years ago
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.
12 years ago
Sam Hocevar
bb28344eb7
build: fix compiler warnings and Linux and PS3 build issues.
13 years ago
Sam Hocevar
0ba4e6d9e0
easymesh: interface the shiny shader with new Light objects.
13 years ago
Sam Hocevar
3adf42b00c
build: hide LolFx external declarations behind macros.
13 years ago
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
13 years ago
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
13 years ago
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.
13 years ago
Sam Hocevar
1f8ba128d4
core: fix sorting of 2D scenes.
13 years ago
Sam Hocevar
2297288114
gpu: get rid of the inline 2D shader and create "tile.lolfx".
13 years ago
Sam Hocevar
d684c0d113
scene: avoid doing hundreds of useless OpenGL calls if no 2D sprite is
being displayed in the scene.
13 years ago
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
13 years ago
Sam Hocevar
6467a06e90
core: convert some realloc() calls to our nice dynamic Array class.
13 years ago
Sam Hocevar
bfada5d920
core: move some of the camera view logic from the Video class to the
Scene and Camera classes.
13 years ago
Sam Hocevar
fe9bab81c1
gpu: fix a great lot of Direct3D problems, spotted using PIX.
13 years ago
Sam Hocevar
48c7070243
gpu: replace exit(0) in D3D error checks with lol::Abort().
13 years ago
Sam Hocevar
0d49891632
gpu: fix a nasty bug in the D3D9 vertex declaration code that caused
wrong offset computations.
13 years ago
Sam Hocevar
f7770f7387
gpu: add an Unbind() method for textures for clean up. Unfortunately
the Scene code still breaks Direct3D rendering.
13 years ago
Sam Hocevar
560d5cc6be
gpu: fix the core scene renderer.
13 years ago
Sam Hocevar
6169c874e4
gpu: port the vertex buffer abstraction layer to OpenGL.
13 years ago
Sam Hocevar
5014b90b3e
build: compilation fixes for errors introduced in the recent Direct3D
and Android changes.
13 years ago
Sam Hocevar
57f393d0d3
gpu: port the texture and scene handling code to Direct3D. Not functional.
13 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.
13 years ago
Sam Hocevar
88f10fe54b
build: allow to build the Direct3D 9 driver with the mingw compiler.
13 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.
13 years ago
Sam Hocevar
f35f4284b0
core: allow each blitted tile to be stretched differently.
13 years ago