Benjamin ‘Touky’ Huet
|
bb0051ae8e
|
render : Added DebugRenderMode & corresponding shaders. naive (VERY) implementation in MeshViewer.
|
13 vuotta sitten |
Sam Hocevar
|
06c4ec01c3
|
base: move headers around and promote gpu/ to lol/gpu/.
|
13 vuotta sitten |
Sam Hocevar
|
1f487e5e6f
|
gpu: OpenGL ES compilation fix: GL_RGB8 is desktop OpenGL only.
|
13 vuotta sitten |
Sam Hocevar
|
29d5bb3b96
|
gpu: fix compilation on GL ES platforms.
|
13 vuotta sitten |
Sam Hocevar
|
42fb9b6853
|
gpu: support 1-component (luminance) textures.
|
13 vuotta sitten |
Sam Hocevar
|
9f6814fbd8
|
gpu: fix PS3 compilation caused by wrong function names.
|
13 vuotta sitten |
Sam Hocevar
|
e960628223
|
gpu: allow to set array uniform values.
|
13 vuotta sitten |
Benjamin ‘Touky’ Huet
|
c7219ff1dd
|
New year copyright update.
|
13 vuotta sitten |
Sam Hocevar
|
d6634da83f
|
build: fix the WTFPL site URL in all code comments.
|
13 vuotta sitten |
Sam Hocevar
|
84a308af4e
|
gpu: warn when a vertex shader attribute isn’t found and do not crash
when a stream is not found in the vertex declaration at bind time.
|
13 vuotta sitten |
Sam Hocevar
|
0149c30df4
|
core: refactor the Hash class so that we can hash base types, too.
|
13 vuotta sitten |
Sam Hocevar
|
7658744c44
|
gpu: remove some crap from vertexbuffer.cpp and allow for
empty vertex declarations even though many video card
drivers do not support them — and they should.
|
13 vuotta sitten |
Sam Hocevar
|
fa646c41c3
|
gpu: fix the computed element count in DrawIndexedElements on Direct3D.
|
13 vuotta sitten |
Sam Hocevar
|
6944db663b
|
tutorial: add a new texture generation example.
|
13 vuotta sitten |
Sam Hocevar
|
0ea16b413e
|
gpu: D3DFMT_R8G8B8 doesn't seem to exist on the X360.
|
13 vuotta sitten |
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 vuotta sitten |
Sam Hocevar
|
f626d36b47
|
gpu: don't use D3DLOCK_DISCARD on the X360, it's not there.
|
13 vuotta sitten |
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 vuotta sitten |
Sam Hocevar
|
8a688a7d50
|
misc: compilation fixes for Windows, X360 and PS3 introduced by the
texture class refactor.
|
13 vuotta sitten |
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 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.
|
13 vuotta sitten |
Sam Hocevar
|
004d21a4c4
|
ps3: support for texture coordinates on the PS3.
|
13 vuotta sitten |
Sam Hocevar
|
5b57aa50fe
|
core: fix a bad format string and disable an annoying warning in Array<>.
|
13 vuotta sitten |
Sam Hocevar
|
ca5238b145
|
lolfx: names such as "x" or "bgra" are field selectors, but we must also
accept them as variable names.
|
13 vuotta sitten |
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 vuotta sitten |
Sam Hocevar
|
549566cbf1
|
lolfx: use square brackets to indicate shader sections.
|
13 vuotta sitten |
Sam Hocevar
|
26c432be90
|
gpu: sip an empty LolFx class that embeds the compiler.
|
13 vuotta sitten |
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 vuotta sitten |
Sam Hocevar
|
babb2f827e
|
gpu: fix a few minor compiler warnings.
|
13 vuotta sitten |
Sam Hocevar
|
3e206b60e0
|
gpu: do not try to call glVertexAttribIPointer if Glew did not find it.
|
13 vuotta sitten |
Sam Hocevar
|
4fc8ce6470
|
gpu: now shaders can only be created from a LolFx file.
|
13 vuotta sitten |
Sam Hocevar
|
2297288114
|
gpu: get rid of the inline 2D shader and create "tile.lolfx".
|
13 vuotta sitten |
Sam Hocevar
|
544f1e873b
|
gpu: increase default minimum shader model.
|
13 vuotta sitten |
Sam Hocevar
|
47d98bde9a
|
gpu: use a valid default framebuffer color format on the PS3.
|
13 vuotta sitten |
Sam Hocevar
|
2df85645fb
|
gpu: document and tweak some class declarations.
|
13 vuotta sitten |
Sam Hocevar
|
50de813d99
|
gpu: explicitly create render targets on the Xbox 360.
|
13 vuotta sitten |
Sam Hocevar
|
6aed414491
|
gpu: port FBO code to the Xbox360.
|
13 vuotta sitten |
Sam Hocevar
|
e4cc84d5b3
|
gpu: finalise the framebuffer object Direct3D implementation.
|
13 vuotta sitten |
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 vuotta sitten |
Sam Hocevar
|
0fa5d6ae57
|
gpu: on the PS3, use the OES version of the framebuffer GL calls.
|
13 vuotta sitten |
Sam Hocevar
|
1277f66fb6
|
gpu: activate FBO support on Android.
|
13 vuotta sitten |
Sam Hocevar
|
2e3db290cb
|
gpu: support framebuffer objects on OpenGL ES (depth buffer isn't
supported yet).
|
13 vuotta sitten |
Sam Hocevar
|
23ab462042
|
gpu: try to patch some simple GLSL shaders on the fly so that they
work on OpenGL ES contexts.
|
13 vuotta sitten |
Sam Hocevar
|
9ff675579a
|
gpu: only unbind vertex attribs that we actually bound.
|
13 vuotta sitten |
Sam Hocevar
|
1ae419aaa3
|
gpu: enable backface culling for indexed meshes, too.
|
13 vuotta sitten |
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 vuotta sitten |
Sam Hocevar
|
f3dfadd1f9
|
gpu: fix vertex and index buffer behaviour on the PS3.
|
13 vuotta sitten |
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 vuotta sitten |
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 vuotta sitten |
Sam Hocevar
|
28728814cc
|
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
|
13 vuotta sitten |