Sam Hocevar
7c8fc6df12
gpu: move more platform-specific code from Video to Render.
11 роки тому
Benlitz
60b06ee98e
added BytesPerPixel() method to PixelFormat structure
11 роки тому
Sam Hocevar
95369e26db
base: a few minor style tweaks.
11 роки тому
Sam Hocevar
9a752c84d8
tileset: refactor the tile generation code.
11 роки тому
Sam Hocevar
9e236b8946
gpu: fix several bugs introduced by the tileset refactoring.
11 роки тому
Sam Hocevar
d34d31dae0
base: some refactoring in the tileset class.
12 роки тому
Sam Hocevar
aeda5c74f7
gpu: ugly hack to avoid sprite artifacts on the PS3.
12 роки тому
Sam Hocevar
d4dcdb75e6
gpu: account for the HLSL half-texel offset on the PS3.
12 роки тому
Sam Hocevar
e6b0bd07bf
image: hide the constructor behind a factory so that we can later
return an already created object if necessary.
12 роки тому
Sam Hocevar
f16704ecb0
image: GetData returns uint8_t* instead of void*, it's a lot safer.
12 роки тому
Sam Hocevar
c46b3fbfec
image: remove the Image::Format enum and use PixelFormat instead.
12 роки тому
Sam Hocevar
6e282a674a
base: remove some sprintf() calls in profit of string ops.
12 роки тому
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
12 роки тому
Benjamin ‘Touky’ Huet
77dcb3c146
EasyMesh : vdecl/vbo flag test fixup.
Tileset : added GetTileSize().
12 роки тому
Benjamin ‘Touky’ Huet
a573b0908b
MeshViewer : Added shitty texture to bulletproof easymesh UV, and therefore correct wrongly set ones.
12 роки тому
Sam Hocevar
42fb9b6853
gpu: support 1-component (luminance) textures.
12 роки тому
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
12 роки тому
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
12 роки тому
Sam Hocevar
26c945a31f
gpu: allow to specify the pixel format when creating a texture; the
internal format is then automatically deduced. Only a few 8-bit RGB
or RGBA formats are supported for now.
12 роки тому
Sam Hocevar
87f653c504
gpu: if 2D tiles have negative scaling, switch the triangle winding.
12 роки тому
Sam Hocevar
3bfbb6c408
build: fix shitloads of warnings.
12 роки тому
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
12 роки тому
Sam Hocevar
d452194326
gpu: activate backface culling on OpenGL to remain consistent with
the Direct3D backend.
12 роки тому
Sam Hocevar
90bfc79b22
core: tick methods now use seconds, like any sane system.
12 роки тому
Sam Hocevar
fe9bab81c1
gpu: fix a great lot of Direct3D problems, spotted using PIX.
12 роки тому
Sam Hocevar
f7770f7387
gpu: add an Unbind() method for textures for clean up. Unfortunately
the Scene code still breaks Direct3D rendering.
12 роки тому
Sam Hocevar
57f393d0d3
gpu: port the texture and scene handling code to Direct3D. Not functional.
12 роки тому
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 роки тому
Sam Hocevar
f35f4284b0
core: allow each blitted tile to be stretched differently.
12 роки тому
Sam Hocevar
edfa3dfc4b
core: allow to stretch 2D sprits in both X and Y directions.
12 роки тому
Sam Hocevar
43e152053a
win32: add a lot of DirectX stubs.
12 роки тому
Sam Hocevar
bf604ef1f7
math: use the usual GLSL member names for vectors (xyzw, rgba, stpq).
13 роки тому
Sam Hocevar
b2d73f6310
core: prefix Entity members with m_ to avoid accidental shadowing.
13 роки тому
Sam Hocevar
01ebcec3b8
core: split vector operations into linear and non-linear so that we can
reuse the linear operations in quaternions. Also mark some constructors
explicit to better spot coding errors.
13 роки тому
Sam Hocevar
5521b9fd01
build: start adding Xbox 360 configuration settings to the VS projects.
13 роки тому
Sam Hocevar
2b9d64f7a8
core: more vec?i -> ?veci renames.
13 роки тому
Sam Hocevar
6bbe943492
core: rename vec2i to ivec2 etc. to better match GLSL.
13 роки тому
Sam Hocevar
dc13c1f742
tiler: ensure AddTile() and BlitTile() accept vec3i arguments.
13 роки тому
Sam Hocevar
1fb4205d61
tiler: Tiler::GetSize can now return a different value for different tiles.
13 роки тому
Sam Hocevar
3d4af0869a
ps3: start a minimal PS3 port using PSGL, but not CG yet.
13 роки тому
Sam Hocevar
8f72b1739a
gl: use glActiveTexture() instead of glClientActiveTexture() to match
the GLES2 codepath.
14 роки тому
Sam Hocevar
0e7bec2977
Use glClientActiveTexture() wherever it appears to make sense.
14 роки тому
Sam Hocevar
4aff0049b3
Use the new Image class instead of SDL_image in the TileSet class.
14 роки тому
Sam Hocevar
8848cf53db
Put everything in the "lol" namespace. Better late than never.
14 роки тому
Sam Hocevar
e41dd3a949
Create the SdlApp class to avoid code duplication. Ensure USE_SDL is
tested wherever relevant.
14 роки тому
Sam Hocevar
6e173ee3eb
Put the OpenGL header handling in <lolgl.h> for more convenience.
14 роки тому
Sam Hocevar
6405ef32ea
Get rid of float3, float4, int3 etc. in favour of GLSL types.
14 роки тому
Sam Hocevar
4df4ba3a78
Get rid of the SHADER_CRAP macro and use LOL_EXPERIMENTAL instead,
together with the --enable-experimental flag. Use LOL_DEBUG and
LOL_RELEASE instead of the previous values.
14 роки тому
Sam Hocevar
9a66d6b1bb
Switch scene rendering method to vertex buffer objects.
14 роки тому
Sam Hocevar
bcca962ba9
Allow to query for a tileset's size and/or number of tiles.
14 роки тому