Sam Hocevar
f3dfadd1f9
gpu: fix vertex and index buffer behaviour on the PS3.
пре 13 година
Sam Hocevar
74edd6cbab
build: OS X compilation fixes: use GL_INVALID_ENUM instead of GL_INVALID_INDEX
and support automake 1.12 in the bootstrap script.
пре 13 година
Sam Hocevar
4fa458d653
gpu: disable framebuffer objects on GL ES for now, and disable integer
attributes if GL version isn't 3.0 at least.
пре 13 година
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
пре 13 година
Sam Hocevar
8375f3443d
build: fix the PS3 port by using our trig.h everywhere instead of stdlib
functions; also remove a lot of idiotic "using namespace std" from the
codebase.
пре 13 година
Sam Hocevar
95d26d18dd
gpu: remove FrameBuffer::Clear(), it's not really useful.
пре 13 година
Sam Hocevar
18d22e1fc5
gpu: better state restoration after vertex buffer usage.
пре 13 година
Sam Hocevar
27d22a9778
gpu: do not convert u8vec4 to integers when set as array buffers, since we
want to normalise them to floats.
пре 13 година
Sam Hocevar
67113aa9f0
gpu: do not convert integers in vertex streams to floats.
пре 13 година
Sam Hocevar
2feb505b72
gpu: be more verbose about shader compilation; some warnings are useful.
пре 13 година
Sam Hocevar
ca5781ec1d
gpu: fix a harmless inconsistency in vertexbuffer function order that could
have confused the reader.
пре 13 година
Sam Hocevar
ce4c8eb731
gpu: add GL points support to the primitive rendering.
пре 14 година
Sam Hocevar
286c5edeb6
neercs: some refactoring.
пре 14 година
Sam Hocevar
e2295392b8
gpu: first FrameBuffer GPU class.
пре 14 година
Sam Hocevar
e5e598bd68
gpu: first shot at a Shader::SetTexture() function.
пре 14 година
Sam Hocevar
add39177c5
gpu: disable all vertex attributes upon vertex declaration unbind, just
because we don't know yet how to disable them selectively.
пре 14 година
Sam Hocevar
1b9facda49
gpu: silently ignore empty vertex and index buffers instead of crashing
and letting the user guess what happened. This doesn't prevent us from
displaying an additional friendly warning later.
пре 14 година
Sam Hocevar
a71562bd83
core: rename f64vec4 to dvec4 etc. for consistency with GLSL.
пре 14 година
Sam Hocevar
55a195d931
gpu: irrelevant tweaks to a test material file.
пре 14 година
Sam Hocevar
fc618350f6
gpu: start working on the LolFx format.
пре 14 година
Sam Hocevar
59ba6e6c87
core: no longer deactivate std::ostream features on Android.
пре 14 година
Sam Hocevar
e110495464
gpu: define the _XBOX macro in our HLSL compilation.
пре 14 година
Sam Hocevar
a606290ed2
gpu: allow to load a .lolfx file instead of all those shaders.
пре 14 година
Sam Hocevar
1443b5628f
win32: add a custom build rule for '.lolfx' files. The files are properly
transformed to C++ but aren't compiled into the project yet.
пре 14 година
Sam Hocevar
d452194326
gpu: activate backface culling on OpenGL to remain consistent with
the Direct3D backend.
пре 14 година
Sam Hocevar
64b37d8897
gpu: fix a memory leak in the VertexBuffer and IndexBuffer classes.
пре 14 година
Sam Hocevar
cbf13dac65
gpu: temporarily enable alpha blending in the vertex buffer code.
пре 14 година
Sam Hocevar
f23b47a8e2
ps3: start fixing the vertex buffer logic in there.
пре 14 година
Sam Hocevar
28b3a4f639
gpu: implement a few CG calls.
пре 14 година
Sam Hocevar
9960f73351
gpu: normalize 8-bit integer data in 0..1 by default.
пре 14 година
Sam Hocevar
a327302484
gpu: fix Direct3D handling of float3x3 uniforms; they need padding.
пре 14 година
Sam Hocevar
f1c0e3ba4e
gpu: add methods to send mat2 and mat3 matrices to the shader.
пре 14 година
Sam Hocevar
bc5bf62886
gpu: assume 8-bit unsigned vertex data is expected to be normalised on 0-1.
пре 14 година
Sam Hocevar
8894958f0e
gpu: fix a stupid signed/unsigned inconsistency causing vertex declaration
creation failures.
пре 14 година
Sam Hocevar
578368f452
gpu: abstraction class for index buffers; the cube tutorial no longer
needs to know about Direct3D headers etc.
пре 14 година
Sam Hocevar
b6c330f3d8
gpu: remove old code in VertexBuffer that caused a memory leak.
пре 14 година
Sam Hocevar
fe9bab81c1
gpu: fix a great lot of Direct3D problems, spotted using PIX.
пре 14 година
Sam Hocevar
48c7070243
gpu: replace exit(0) in D3D error checks with lol::Abort().
пре 14 година
Sam Hocevar
0d49891632
gpu: fix a nasty bug in the D3D9 vertex declaration code that caused
wrong offset computations.
пре 14 година
Sam Hocevar
169a16b63e
gpu: move the platform-specific triangle drawing call to the VertexDeclaration
class, so that the calling code does not need to know what the backend is.
пре 14 година
Sam Hocevar
560d5cc6be
gpu: fix the core scene renderer.
пре 14 година
Sam Hocevar
6169c874e4
gpu: port the vertex buffer abstraction layer to OpenGL.
пре 14 година
Sam Hocevar
f7e202a7c8
gpu: implement vertex buffer streams for Direct3D. OpenGL is missing for now.
пре 14 година
Sam Hocevar
2601c970a2
gpu: refactor the vertex declaration code to allow several vertex streams.
пре 14 година
Sam Hocevar
3ab2f621f8
gpu: fix compilation errors and warnings in the vertex declaration code.
пре 14 година
Sam Hocevar
5218c59ab7
gpu: start working on a template-based vertex buffer class.
пре 14 година
Sam Hocevar
57f393d0d3
gpu: port the texture and scene handling code to Direct3D. Not functional.
пре 14 година
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.
пре 14 година
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.
пре 14 година
Sam Hocevar
88f10fe54b
build: allow to build the Direct3D 9 driver with the mingw compiler.
пре 14 година