diff options
| author | degasus <wickmarkus@web.de> | 2014-01-24 14:46:05 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2014-01-31 07:19:25 +0100 |
| commit | 210f4f3e559696afea64244c29994aed9685d483 (patch) | |
| tree | bc442e96a2197c1d4711ec71af9d52b0bffd83a3 /Source/Core/VideoCommon/VertexLoader.cpp | |
| parent | 02d1d8e6a04f0536b6dff014e1223605f8b661ac (diff) | |
PortableVertexFormat: add a struct which hold all needed information for every vertex and use this for position
atm, position attribute is hardcoded both in VertexLoader and in backends.
v2: fix coding style + cleanup lookup table
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index 45bfec384a..968e98676a 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -587,6 +587,11 @@ void VertexLoader::CompileVertexTranslator() } m_VertexSize += VertexLoader_Position::GetSize(m_VtxDesc.Position, m_VtxAttr.PosFormat, m_VtxAttr.PosElements); nat_offset += 12; + vtx_decl.position.components = 3; + vtx_decl.position.enable = true; + vtx_decl.position.offset = 0; + vtx_decl.position.type = VAR_FLOAT; + vtx_decl.position.integer = false; // Normals vtx_decl.num_normals = 0; |
