Sam Hocevar
47e71bda63
base: rough implementation of safe enums with minimal ToString() support.
10 år sedan
Sam Hocevar
7e769d6c79
base: make the safe enums slightly safer. :-)
10 år sedan
Benjamin ‘Touky’ Huet
1e4af19a89
Praise the Safe-Enum.
Implemented Safe-Enum for everyone.
Now the power is in the Safe-Enum for all.
10 år sedan
Sam Hocevar
c9b8ff54a1
misc: some refactoring in texture handling.
11 år sedan
Sam Hocevar
73891294fe
gpu: fix a buffer overflow in our shader compilation wrapper.
11 år sedan
Benjamin ‘Touky’ Huet
7c3dab6af9
Fixed an error for Emscripten.
11 år sedan
Sam Hocevar
a7d169caff
ps3: some compilation fixes.
11 år sedan
Sam Hocevar
9cfe17fd8b
core: fix some minor compiler warnings.
11 år sedan
Benlitz
b07f6aba93
mesh: submesh class working, can be rendered with any compatible shader without caring of attributes
11 år sedan
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
11 år sedan
Benlitz
1a2bfe6609
gpu: fixed vbo attribute binding when one of the attribute on the buffer does not exist in the shader
11 år sedan
Lolbot
8cc04f0ba9
fixed 7 files out of 2745:
- removed 0 CR characters
- removed 21 trailing whitespaces
- replaced 42 tabs with spaces
11 år sedan
Benlitz
3fc469b1f6
shaders now cache attribute location once they have been retrieved for the first time.
11 år sedan
Sam Hocevar
c6ffd1ffcf
build: fix the X360 port.
11 år sedan
Sam Hocevar
532f679f8a
gpu: get rid of the global D3D device pointer and move D3D initialisation
code from the Video to the Renderer class.
11 år sedan
Lolbot
cbb4dadd6c
fixed 4 files out of 2730:
- removed 24 CR characters
- removed 1 trailing whitespaces
- replaced 63 tabs with spaces
11 år sedan
Benlitz
d13a006945
SetMagFiltering and SetMinFiltering for class Texture.
11 år sedan
Sam Hocevar
95369e26db
base: a few minor style tweaks.
12 år sedan
Sam Hocevar
6e282a674a
base: remove some sprintf() calls in profit of string ops.
12 år sedan
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
12 år sedan
Sam Hocevar
9f6814fbd8
gpu: fix PS3 compilation caused by wrong function names.
12 år sedan
Sam Hocevar
e960628223
gpu: allow to set array uniform values.
12 år sedan
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
12 år sedan
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
12 år sedan
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.
12 år sedan
Sam Hocevar
0149c30df4
core: refactor the Hash class so that we can hash base types, too.
12 år sedan
Sam Hocevar
549566cbf1
lolfx: use square brackets to indicate shader sections.
12 år sedan
Sam Hocevar
4fc8ce6470
gpu: now shaders can only be created from a LolFx file.
12 år sedan
Sam Hocevar
544f1e873b
gpu: increase default minimum shader model.
12 år sedan
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.
12 år sedan
Sam Hocevar
23ab462042
gpu: try to patch some simple GLSL shaders on the fly so that they
work on OpenGL ES contexts.
12 år sedan
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
12 år sedan
Sam Hocevar
2feb505b72
gpu: be more verbose about shader compilation; some warnings are useful.
12 år sedan
Sam Hocevar
286c5edeb6
neercs: some refactoring.
13 år sedan
Sam Hocevar
e5e598bd68
gpu: first shot at a Shader::SetTexture() function.
13 år sedan
Sam Hocevar
e110495464
gpu: define the _XBOX macro in our HLSL compilation.
13 år sedan
Sam Hocevar
a606290ed2
gpu: allow to load a .lolfx file instead of all those shaders.
13 år sedan
Sam Hocevar
28b3a4f639
gpu: implement a few CG calls.
13 år sedan
Sam Hocevar
a327302484
gpu: fix Direct3D handling of float3x3 uniforms; they need padding.
13 år sedan
Sam Hocevar
f1c0e3ba4e
gpu: add methods to send mat2 and mat3 matrices to the shader.
13 år sedan
Sam Hocevar
fe9bab81c1
gpu: fix a great lot of Direct3D problems, spotted using PIX.
13 år sedan
Sam Hocevar
6169c874e4
gpu: port the vertex buffer abstraction layer to OpenGL.
13 år sedan
Sam Hocevar
f7e202a7c8
gpu: implement vertex buffer streams for Direct3D. OpenGL is missing for now.
13 år sedan
Sam Hocevar
57f393d0d3
gpu: port the texture and scene handling code to Direct3D. Not functional.
13 år sedan
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 år sedan
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.
13 år sedan
Sam Hocevar
88f10fe54b
build: allow to build the Direct3D 9 driver with the mingw compiler.
13 år sedan
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 år sedan
Sam Hocevar
bd69c76f90
xbox: fix a few problems in the shader handling code; the first tutorial now
works on the Xbox.
13 år sedan
Sam Hocevar
56e4332597
build: reorganise math files in a single "math" directory, and get rid of the
"shader" source directory since we have "gpu".
13 år sedan