Sam Hocevar
|
fa646c41c3
|
gpu: fix the computed element count in DrawIndexedElements on Direct3D.
|
13 jaren geleden |
Sam Hocevar
|
6944db663b
|
tutorial: add a new texture generation example.
|
13 jaren geleden |
Sam Hocevar
|
0ea16b413e
|
gpu: D3DFMT_R8G8B8 doesn't seem to exist on the X360.
|
13 jaren geleden |
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.
|
13 jaren geleden |
Sam Hocevar
|
f626d36b47
|
gpu: don't use D3DLOCK_DISCARD on the X360, it's not there.
|
13 jaren geleden |
Sam Hocevar
|
e0330e18d7
|
gpu: fix some Direct3D programming errors; we cannot call SetVertexDeclaration
with a null argument, and the texture stuff was completely messed up.
|
13 jaren geleden |
Sam Hocevar
|
8a688a7d50
|
misc: compilation fixes for Windows, X360 and PS3 introduced by the
texture class refactor.
|
13 jaren geleden |
Sam Hocevar
|
b9aba5d27a
|
gpu: put the texture creation code in its own class; for now a lot of things are
hardcoded and only the fractal demo uses it, but everything will eventually switch.
|
13 jaren geleden |
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 jaren geleden |
Sam Hocevar
|
004d21a4c4
|
ps3: support for texture coordinates on the PS3.
|
13 jaren geleden |
Sam Hocevar
|
5b57aa50fe
|
core: fix a bad format string and disable an annoying warning in Array<>.
|
13 jaren geleden |
Sam Hocevar
|
ca5238b145
|
lolfx: names such as "x" or "bgra" are field selectors, but we must also
accept them as variable names.
|
13 jaren geleden |
Sam Hocevar
|
787c96b47c
|
lolfx: improve the LolFx compiler, including error reporting. We can now
successfully parse a few of our full GLSL/HLSL shaders.
|
13 jaren geleden |
Sam Hocevar
|
549566cbf1
|
lolfx: use square brackets to indicate shader sections.
|
13 jaren geleden |
Sam Hocevar
|
26c432be90
|
gpu: sip an empty LolFx class that embeds the compiler.
|
13 jaren geleden |
Sam Hocevar
|
c69e487dfc
|
gpu: do not use GLEW on OS X until we are sure that the version we detected
will not try to use X11.
|
13 jaren geleden |
Sam Hocevar
|
babb2f827e
|
gpu: fix a few minor compiler warnings.
|
13 jaren geleden |
Sam Hocevar
|
3e206b60e0
|
gpu: do not try to call glVertexAttribIPointer if Glew did not find it.
|
13 jaren geleden |
Sam Hocevar
|
4fc8ce6470
|
gpu: now shaders can only be created from a LolFx file.
|
13 jaren geleden |
Sam Hocevar
|
2297288114
|
gpu: get rid of the inline 2D shader and create "tile.lolfx".
|
13 jaren geleden |
Sam Hocevar
|
544f1e873b
|
gpu: increase default minimum shader model.
|
13 jaren geleden |
Sam Hocevar
|
47d98bde9a
|
gpu: use a valid default framebuffer color format on the PS3.
|
13 jaren geleden |
Sam Hocevar
|
2df85645fb
|
gpu: document and tweak some class declarations.
|
13 jaren geleden |
Sam Hocevar
|
50de813d99
|
gpu: explicitly create render targets on the Xbox 360.
|
13 jaren geleden |
Sam Hocevar
|
6aed414491
|
gpu: port FBO code to the Xbox360.
|
13 jaren geleden |
Sam Hocevar
|
e4cc84d5b3
|
gpu: finalise the framebuffer object Direct3D implementation.
|
13 jaren geleden |
Sam Hocevar
|
7d5fe8a7c6
|
gpu: create the ShaderTexture class, replace Shader::SetTexture with a
Shader::SetUniform override, and implement most of the FBO code for
the Direct3D backend.
|
13 jaren geleden |
Sam Hocevar
|
0fa5d6ae57
|
gpu: on the PS3, use the OES version of the framebuffer GL calls.
|
13 jaren geleden |
Sam Hocevar
|
1277f66fb6
|
gpu: activate FBO support on Android.
|
13 jaren geleden |
Sam Hocevar
|
2e3db290cb
|
gpu: support framebuffer objects on OpenGL ES (depth buffer isn't
supported yet).
|
13 jaren geleden |
Sam Hocevar
|
23ab462042
|
gpu: try to patch some simple GLSL shaders on the fly so that they
work on OpenGL ES contexts.
|
13 jaren geleden |
Sam Hocevar
|
9ff675579a
|
gpu: only unbind vertex attribs that we actually bound.
|
13 jaren geleden |
Sam Hocevar
|
1ae419aaa3
|
gpu: enable backface culling for indexed meshes, too.
|
13 jaren geleden |
Sam Hocevar
|
65ea695de1
|
core: start working on a higher level LolFx compiler based on the latest
GLSL grammar and some personal attempts at writing an HLSL grammar.
|
13 jaren geleden |
Sam Hocevar
|
f3dfadd1f9
|
gpu: fix vertex and index buffer behaviour on the PS3.
|
13 jaren geleden |
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 jaren geleden |
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 jaren geleden |
Sam Hocevar
|
28728814cc
|
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
|
13 jaren geleden |
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 jaren geleden |
Sam Hocevar
|
95d26d18dd
|
gpu: remove FrameBuffer::Clear(), it's not really useful.
|
13 jaren geleden |
Sam Hocevar
|
18d22e1fc5
|
gpu: better state restoration after vertex buffer usage.
|
13 jaren geleden |
Sam Hocevar
|
27d22a9778
|
gpu: do not convert u8vec4 to integers when set as array buffers, since we
want to normalise them to floats.
|
13 jaren geleden |
Sam Hocevar
|
67113aa9f0
|
gpu: do not convert integers in vertex streams to floats.
|
13 jaren geleden |
Sam Hocevar
|
2feb505b72
|
gpu: be more verbose about shader compilation; some warnings are useful.
|
13 jaren geleden |
Sam Hocevar
|
ca5781ec1d
|
gpu: fix a harmless inconsistency in vertexbuffer function order that could
have confused the reader.
|
13 jaren geleden |
Sam Hocevar
|
ce4c8eb731
|
gpu: add GL points support to the primitive rendering.
|
13 jaren geleden |
Sam Hocevar
|
286c5edeb6
|
neercs: some refactoring.
|
13 jaren geleden |
Sam Hocevar
|
e2295392b8
|
gpu: first FrameBuffer GPU class.
|
13 jaren geleden |
Sam Hocevar
|
e5e598bd68
|
gpu: first shot at a Shader::SetTexture() function.
|
13 jaren geleden |
Sam Hocevar
|
add39177c5
|
gpu: disable all vertex attributes upon vertex declaration unbind, just
because we don't know yet how to disable them selectively.
|
13 jaren geleden |