Sam Hocevar
|
1a24fb898c
|
gpu: OS X and iOS compilation fix.
|
12 years ago |
Sam Hocevar
|
be652e00b0
|
gpu: refactor the framebuffer format retrieval code.
|
12 years ago |
Lolbot
|
e045fecbbd
|
fixed 1 files out of 2673:
- removed 46 CR characters
- removed 237 trailing whitespaces
- replaced 0 tabs with spaces
|
12 years ago |
Benjamin ‘Touky’ Huet
|
842697b9b7
|
framebuffer : build fix
|
12 years ago |
Benjamin ‘Touky’ Huet
|
566d495ffe
|
iOS default value doesn't build.
|
12 years ago |
Benjamin ‘Touky’ Huet
|
a472e53e69
|
framebuffer : mac opengl build setup.
|
12 years ago |
Sam Hocevar
|
c5d6d72220
|
gpu: remove mistakenly committed debug code.
|
12 years ago |
Sam Hocevar
|
bd2abf9a78
|
mrpigeon: try the new tile definition system… which doesn’t work.
|
12 years ago |
Sam Hocevar
|
95369e26db
|
base: a few minor style tweaks.
|
12 years ago |
Sam Hocevar
|
cbd3aa1519
|
build: various compilation fixes.
|
12 years ago |
Sam Hocevar
|
2c3092ef28
|
gpu: rename FrameBuffer to Framebuffer.
|
12 years ago |
Benjamin ‘Touky’ Huet
|
0d344595ff
|
Added FrameBufferFormat struct : a wrapper for RenderTarget-format. NOT TESTED on PS3 & DirectX. Default values are the same as previous code, though.
|
12 years ago |
Benjamin ‘Touky’ Huet
|
23f9299a59
|
video : Added SetAlphaBlend() SetFaceCulling() SetCustomSize()
FrameBuffer : Added GetSize() & tweaked Bind()/Unbind() with size update for correct rendering.
|
12 years ago |
Sam Hocevar
|
6faf4ee067
|
base: roll our own constants because it’s always a pain in the ass
to get M_PI from the platform headers and cast it to float.
|
12 years ago |
Sam Hocevar
|
8dbe2e5224
|
gpu: only add the half-texel offset on the X360.
|
12 years ago |
Sam Hocevar
|
d4dcdb75e6
|
gpu: account for the HLSL half-texel offset on the PS3.
|
12 years ago |
Sam Hocevar
|
c46b3fbfec
|
image: remove the Image::Format enum and use PixelFormat instead.
|
12 years ago |
Sam Hocevar
|
6e282a674a
|
base: remove some sprintf() calls in profit of string ops.
|
12 years ago |
Sam Hocevar
|
39a8c26fb5
|
base: start removing occurrences of NULL on our long journey to nullptr.
|
12 years ago |
Sam Hocevar
|
872efdb880
|
debug: add Debug::DrawLine() and Debug::DrawBox() methods.
|
12 years ago |
Sam Hocevar
|
e9b4985dbd
|
gpu: add MeshPrimitive::Lines enum and modify the cube tutorial
to show how it can be used.
|
12 years ago |
Sam Hocevar
|
1c3ca01ea0
|
build: fix a few compiler warnings here and there.
|
12 years ago |
Benjamin ‘Touky’ Huet
|
020d539586
|
easymesh : vertices datas are now stored in a very user-friendly struct. Heavier on datas, though.
vertexbuffer : added TexCoordExt, which is the same as TexCoord but means "use vec4 for TexCoord"
|
12 years ago |
Benjamin ‘Touky’ Huet
|
bb0051ae8e
|
render : Added DebugRenderMode & corresponding shaders. naive (VERY) implementation in MeshViewer.
|
12 years ago |
Sam Hocevar
|
06c4ec01c3
|
base: move headers around and promote gpu/ to lol/gpu/.
|
12 years ago |
Sam Hocevar
|
1f487e5e6f
|
gpu: OpenGL ES compilation fix: GL_RGB8 is desktop OpenGL only.
|
12 years ago |
Sam Hocevar
|
29d5bb3b96
|
gpu: fix compilation on GL ES platforms.
|
12 years ago |
Sam Hocevar
|
42fb9b6853
|
gpu: support 1-component (luminance) textures.
|
12 years ago |
Sam Hocevar
|
9f6814fbd8
|
gpu: fix PS3 compilation caused by wrong function names.
|
12 years ago |
Sam Hocevar
|
e960628223
|
gpu: allow to set array uniform values.
|
12 years ago |
Benjamin ‘Touky’ Huet
|
c7219ff1dd
|
New year copyright update.
|
12 years ago |
Sam Hocevar
|
d6634da83f
|
build: fix the WTFPL site URL in all code comments.
|
12 years ago |
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 years ago |
Sam Hocevar
|
0149c30df4
|
core: refactor the Hash class so that we can hash base types, too.
|
12 years ago |
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.
|
12 years ago |
Sam Hocevar
|
fa646c41c3
|
gpu: fix the computed element count in DrawIndexedElements on Direct3D.
|
12 years ago |
Sam Hocevar
|
6944db663b
|
tutorial: add a new texture generation example.
|
12 years ago |
Sam Hocevar
|
0ea16b413e
|
gpu: D3DFMT_R8G8B8 doesn't seem to exist on the X360.
|
12 years ago |
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.
|
12 years ago |
Sam Hocevar
|
f626d36b47
|
gpu: don't use D3DLOCK_DISCARD on the X360, it's not there.
|
12 years ago |
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.
|
12 years ago |
Sam Hocevar
|
8a688a7d50
|
misc: compilation fixes for Windows, X360 and PS3 introduced by the
texture class refactor.
|
12 years ago |
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.
|
12 years ago |
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.
|
12 years ago |
Sam Hocevar
|
004d21a4c4
|
ps3: support for texture coordinates on the PS3.
|
12 years ago |
Sam Hocevar
|
5b57aa50fe
|
core: fix a bad format string and disable an annoying warning in Array<>.
|
12 years ago |
Sam Hocevar
|
ca5238b145
|
lolfx: names such as "x" or "bgra" are field selectors, but we must also
accept them as variable names.
|
12 years ago |
Sam Hocevar
|
787c96b47c
|
lolfx: improve the LolFx compiler, including error reporting. We can now
successfully parse a few of our full GLSL/HLSL shaders.
|
12 years ago |
Sam Hocevar
|
549566cbf1
|
lolfx: use square brackets to indicate shader sections.
|
12 years ago |
Sam Hocevar
|
26c432be90
|
gpu: sip an empty LolFx class that embeds the compiler.
|
12 years ago |