Sam Hocevar
|
ffa21ed0d0
|
misc: disable all 16-bit float vectors when using Visual Studio.
|
11 роки тому |
Sam Hocevar
|
47e71bda63
|
base: rough implementation of safe enums with minimal ToString() support.
|
11 роки тому |
Benlitz
|
d0e70dbeb6
|
gpu: moved VertexUsage to shader.h and added GetUsage() and GetIndex() to ShaderAttrib
|
12 роки тому |
Benlitz
|
d775d7da19
|
gpu: added a SetStream that takes an array of attributes
|
12 роки тому |
Sam Hocevar
|
532f679f8a
|
gpu: get rid of the global D3D device pointer and move D3D initialisation
code from the Video to the Renderer class.
|
12 роки тому |
Lolbot
|
b078ba08ea
|
fixed 15 files out of 2730:
- removed 49 CR characters
- removed 2 trailing whitespaces
- replaced 1622 tabs with spaces
|
12 роки тому |
Benlitz
|
9a38b27bd8
|
vertex buffer: added some accessors to inspect a VertexDeclaration/Stream/Buffer
|
12 роки тому |
Sam Hocevar
|
95369e26db
|
base: a few minor style tweaks.
|
12 роки тому |
Benjamin ‘Touky’ Huet
|
ea603d48e3
|
easymesh : Vertex attribute name can now be customize. Vertex declaration code simplification, ASSERT is more understandable.
|
13 роки тому |
Sam Hocevar
|
39a8c26fb5
|
base: start removing occurrences of NULL on our long journey to nullptr.
|
13 роки тому |
Sam Hocevar
|
e9b4985dbd
|
gpu: add MeshPrimitive::Lines enum and modify the cube tutorial
to show how it can be used.
|
13 роки тому |
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"
|
13 роки тому |
Sam Hocevar
|
06c4ec01c3
|
base: move headers around and promote gpu/ to lol/gpu/.
|
13 роки тому |
Benjamin ‘Touky’ Huet
|
c7219ff1dd
|
New year copyright update.
|
13 роки тому |
Sam Hocevar
|
d6634da83f
|
build: fix the WTFPL site URL in all code comments.
|
13 роки тому |
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 роки тому |
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 роки тому |
Sam Hocevar
|
2df85645fb
|
gpu: document and tweak some class declarations.
|
13 роки тому |
Sam Hocevar
|
9ff675579a
|
gpu: only unbind vertex attribs that we actually bound.
|
13 роки тому |
Sam Hocevar
|
ca5781ec1d
|
gpu: fix a harmless inconsistency in vertexbuffer function order that could
have confused the reader.
|
13 роки тому |
Sam Hocevar
|
ce4c8eb731
|
gpu: add GL points support to the primitive rendering.
|
13 роки тому |
Sam Hocevar
|
a71562bd83
|
core: rename f64vec4 to dvec4 etc. for consistency with GLSL.
|
13 роки тому |
Sam Hocevar
|
8894958f0e
|
gpu: fix a stupid signed/unsigned inconsistency causing vertex declaration
creation failures.
|
13 роки тому |
Sam Hocevar
|
578368f452
|
gpu: abstraction class for index buffers; the cube tutorial no longer
needs to know about Direct3D headers etc.
|
13 роки тому |
Sam Hocevar
|
169a16b63e
|
gpu: move the platform-specific triangle drawing call to the VertexDeclaration
class, so that the calling code does not need to know what the backend is.
|
13 роки тому |
Sam Hocevar
|
560d5cc6be
|
gpu: fix the core scene renderer.
|
13 роки тому |
Sam Hocevar
|
6169c874e4
|
gpu: port the vertex buffer abstraction layer to OpenGL.
|
13 роки тому |
Sam Hocevar
|
f7e202a7c8
|
gpu: implement vertex buffer streams for Direct3D. OpenGL is missing for now.
|
13 роки тому |
Sam Hocevar
|
2601c970a2
|
gpu: refactor the vertex declaration code to allow several vertex streams.
|
13 роки тому |
Sam Hocevar
|
3ab2f621f8
|
gpu: fix compilation errors and warnings in the vertex declaration code.
|
13 роки тому |
Sam Hocevar
|
5218c59ab7
|
gpu: start working on a template-based vertex buffer class.
|
13 роки тому |