Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
9 年前
Sam Hocevar
d64b117b8d
build: fix license and copyright information.
10 年前
Sam Hocevar
70edc0d38e
misc: carry on with the lowercase rampage.
Using “Array” instead of “array” is now fully deprecated, and I replaced
the Log::Debug() etc. functions with msg::debug() etc. because log:: was
unavailable due to being a maths function.
Added up-to-date copyright notice and BOM to modified files, just in case.
10 年前
Benjamin ‘Touky’ Huet
2170b89b11
MultiScene: Phase 4: Added SceneDisplay class to have multiple windows + implementation with SDL. Not with the others.
10 年前
Sam Hocevar
a07844682e
build: remove dead PS3 code.
10 年前
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
10 年前
Sam Hocevar
d0e9447ac0
gpu: fix missing #if blocks in vertex buffer code.
10 年前
Sam Hocevar
ffa21ed0d0
misc: disable all 16-bit float vectors when using Visual Studio.
10 年前
Sam Hocevar
4be9ea2a4e
misc: replace NULL with nullptr.
10 年前
Sam Hocevar
ad9a388e80
misc: remove 100% of the "using namespace std;" madness.
10 年前
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
10 年前
Sam Hocevar
79ed58f1f0
Merge branch 'master' into scenegraph
10 年前
Sam Hocevar
47e71bda63
base: rough implementation of safe enums with minimal ToString() support.
10 年前
Benlitz
d775d7da19
gpu: added a SetStream that takes an array of attributes
11 年前
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 年前
Benlitz
1a2bfe6609
gpu: fixed vbo attribute binding when one of the attribute on the buffer does not exist in the shader
11 年前
Sam Hocevar
c6ffd1ffcf
build: fix the X360 port.
11 年前
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 年前
Sam Hocevar
0b93890556
gpu: implement face culling mode in render contexts.
11 年前
Sam Hocevar
45c13689ec
gpu: implement blend function and alpha test in the renderer.
11 年前
Lolbot
b078ba08ea
fixed 15 files out of 2730:
- removed 49 CR characters
- removed 2 trailing whitespaces
- replaced 1622 tabs with spaces
11 年前
Benlitz
19e57f4fa9
Fixed GetStream function when the VertexDeclaration maps over multiple VertexStreams
11 年前
Benlitz
9a38b27bd8
vertex buffer: added some accessors to inspect a VertexDeclaration/Stream/Buffer
11 年前
Sam Hocevar
95369e26db
base: a few minor style tweaks.
12 年前
Benjamin ‘Touky’ Huet
23f9299a59
video : Added SetAlphaBlend() SetFaceCulling() SetCustomSize()
FrameBuffer : Added GetSize() & tweaked Bind()/Unbind() with size update for correct rendering.
12 年前
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
12 年前
Sam Hocevar
e9b4985dbd
gpu: add MeshPrimitive::Lines enum and modify the cube tutorial
to show how it can be used.
12 年前
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 年前
Benjamin ‘Touky’ Huet
bb0051ae8e
render : Added DebugRenderMode & corresponding shaders. naive (VERY) implementation in MeshViewer.
12 年前
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
12 年前
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
12 年前
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 年前
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 年前
Sam Hocevar
fa646c41c3
gpu: fix the computed element count in DrawIndexedElements on Direct3D.
12 年前
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 年前
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 年前
Sam Hocevar
004d21a4c4
ps3: support for texture coordinates on the PS3.
12 年前
Sam Hocevar
5b57aa50fe
core: fix a bad format string and disable an annoying warning in Array<>.
12 年前
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.
12 年前
Sam Hocevar
babb2f827e
gpu: fix a few minor compiler warnings.
12 年前
Sam Hocevar
3e206b60e0
gpu: do not try to call glVertexAttribIPointer if Glew did not find it.
12 年前
Sam Hocevar
9ff675579a
gpu: only unbind vertex attribs that we actually bound.
12 年前
Sam Hocevar
1ae419aaa3
gpu: enable backface culling for indexed meshes, too.
12 年前
Sam Hocevar
f3dfadd1f9
gpu: fix vertex and index buffer behaviour on the PS3.
12 年前
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.
12 年前
Sam Hocevar
8375f3443d
build: fix the PS3 port by using our trig.h everywhere instead of stdlib
functions; also remove a lot of idiotic "using namespace std" from the
codebase.
12 年前
Sam Hocevar
18d22e1fc5
gpu: better state restoration after vertex buffer usage.
12 年前
Sam Hocevar
27d22a9778
gpu: do not convert u8vec4 to integers when set as array buffers, since we
want to normalise them to floats.
12 年前
Sam Hocevar
67113aa9f0
gpu: do not convert integers in vertex streams to floats.
12 年前
Sam Hocevar
ce4c8eb731
gpu: add GL points support to the primitive rendering.
12 年前