Sam Hocevar
|
232fa4126d
|
gpu: rename uniforms here and there for consistency.
|
11 years ago |
Sam Hocevar
|
73891294fe
|
gpu: fix a buffer overflow in our shader compilation wrapper.
|
11 years ago |
Sam Hocevar
|
752829b7ed
|
gpu: shader fixes for the Web version.
|
11 years ago |
Sam Hocevar
|
1945e85afc
|
scene: start working on the scene class reorganisation.
|
11 years ago |
Benlitz
|
845a870c9f
|
gpu: fixed Video::GetSize(), it was previously returning the size of the current viewport, it is now returning the size of the back buffer.
|
11 years ago |
Sam Hocevar
|
15c3039ba5
|
misc: fix some coding errors found by Coverity.
|
11 years ago |
Benjamin ‘Touky’ Huet
|
7c3dab6af9
|
Fixed an error for Emscripten.
|
11 years ago |
Sam Hocevar
|
5f3ad5cc15
|
math: add constant vectors vec2::zero, vec2::axis_x, etc.
|
11 years ago |
Sam Hocevar
|
a7d169caff
|
ps3: some compilation fixes.
|
11 years ago |
Sam Hocevar
|
9cfe17fd8b
|
core: fix some minor compiler warnings.
|
11 years ago |
Benlitz
|
b07f6aba93
|
mesh: submesh class working, can be rendered with any compatible shader without caring of attributes
|
11 years ago |
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 years ago |
Benlitz
|
d775d7da19
|
gpu: added a SetStream that takes an array of attributes
|
11 years ago |
Sam Hocevar
|
1b157def49
|
gpu: add SetDepthMask/GetDepthMask to render contexts.
|
11 years ago |
Lolbot
|
1f03fedb2d
|
fixed 19 files out of 2773:
- removed 2278 CR characters
- removed 0 trailing whitespaces
- replaced 115 tabs with spaces
- fixed 18 svn:eol-style properties
|
11 years ago |
Benlitz
|
26191e40da
|
gpu: getters in RenderContext class
|
11 years ago |
Benlitz
|
1a2bfe6609
|
gpu: fixed vbo attribute binding when one of the attribute on the buffer does not exist in the shader
|
11 years ago |
Lolbot
|
8cc04f0ba9
|
fixed 7 files out of 2745:
- removed 0 CR characters
- removed 21 trailing whitespaces
- replaced 42 tabs with spaces
|
11 years ago |
Benlitz
|
3fc469b1f6
|
shaders now cache attribute location once they have been retrieved for the first time.
|
11 years ago |
Sam Hocevar
|
01547a0a20
|
gpu: add a 16-bit depth buffer to framebuffers on WebGL and GL ES.
|
11 years ago |
Sam Hocevar
|
c6ffd1ffcf
|
build: fix the X360 port.
|
11 years ago |
Sam Hocevar
|
7ac9be9704
|
build: fix PS3 and Android builds.
|
11 years ago |
Sam Hocevar
|
a490c8c4c7
|
lolfx: preprocessor support in the LolFx parser. But this shit is going
nowhere, we’re probably gonna ditch the approach in favour of a GLSL to
HLSL translator instead.
|
11 years ago |
Sam Hocevar
|
8ff1cf9b32
|
base: disable exceptions in Bison-generated parsers.
|
11 years ago |
Sam Hocevar
|
068a328651
|
gpu: fix the Direct3D version of most rendering functions.
|
11 years ago |
Sam Hocevar
|
f0e8676248
|
gpu: don't use PolygonMode on GL ES.
|
11 years ago |
Sam Hocevar
|
9158677eae
|
gpu: implement polygon rendering mode in GL and D3D.
|
11 years ago |
Sam Hocevar
|
ad8144f0e8
|
scene: use a global g_scene object instead of Scene::GetDefault().
|
11 years ago |
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 years ago |
Sam Hocevar
|
13fb52cebe
|
gpu: move Video::Clear to Renderer::Clear.
|
11 years ago |
Sam Hocevar
|
084a98be87
|
gpu: framebuffers now use the g_render object to restore viewport data.
|
11 years ago |
Sam Hocevar
|
9befaa5468
|
gpu: glGenerateMipmap is not available on the PS3, use glGenerateMipmapOES.
|
11 years ago |
Sam Hocevar
|
024ea25e27
|
gpu: disable alpha test on GL ES platforms.
|
11 years ago |
Sam Hocevar
|
a75e07d329
|
gpu: add full support for alpha test in GL and D3D.
|
11 years ago |
Sam Hocevar
|
87a9c3730c
|
gpu: implement all depth test functions in the renderer.
|
11 years ago |
Sam Hocevar
|
0b93890556
|
gpu: implement face culling mode in render contexts.
|
11 years ago |
Sam Hocevar
|
45c13689ec
|
gpu: implement blend function and alpha test in the renderer.
|
11 years ago |
Benlitz
|
eaa63d0b69
|
Added mipmap generation function for textures (i lied, it was easy with d3d9 <3)
|
11 years ago |
Sam Hocevar
|
7c8fc6df12
|
gpu: move more platform-specific code from Video to Render.
|
11 years ago |
Sam Hocevar
|
274a732e3c
|
gpu: move SetClearColor and SetClearDepth to the Renderer and RenderContext
classes instead of Video.
|
11 years ago |
Sam Hocevar
|
1b213612a5
|
gpu: handle depth test, alpha blending and face culling in Renderer.
|
11 years ago |
Sam Hocevar
|
716c2b5592
|
gpu: create a Renderer and a RenderContext class to handle render states
such as alpha blending, depth test, etc.
|
11 years ago |
Sam Hocevar
|
3b90e19739
|
gpu: fix framebuffer handling in OpenGL ES and add some sanity checks.
|
11 years ago |
Lolbot
|
cbb4dadd6c
|
fixed 4 files out of 2730:
- removed 24 CR characters
- removed 1 trailing whitespaces
- replaced 63 tabs with spaces
|
11 years ago |
Benlitz
|
d13a006945
|
SetMagFiltering and SetMinFiltering for class Texture.
|
11 years ago |
Benlitz
|
c75c255e26
|
Fixed D3D9 compilation (note: D3D9 version still not working)
|
11 years ago |
Lolbot
|
b078ba08ea
|
fixed 15 files out of 2730:
- removed 49 CR characters
- removed 2 trailing whitespaces
- replaced 1622 tabs with spaces
|
11 years ago |
Benlitz
|
19e57f4fa9
|
Fixed GetStream function when the VertexDeclaration maps over multiple VertexStreams
|
11 years ago |
Benlitz
|
9a38b27bd8
|
vertex buffer: added some accessors to inspect a VertexDeclaration/Stream/Buffer
|
11 years ago |
Sam Hocevar
|
1a24fb898c
|
gpu: OS X and iOS compilation fix.
|
12 years ago |