Stab at fixing the VertexArray compile error on VC++.

Added float-to-byte color conversion, including an SSE assembler
version.
Model renderer: Push UV coordinates into a shared vertex array and use
bytes instead of floats for the color array, thereby, significantly
reducing
the total size of vertex arrays.

This was SVN commit r2827.
This commit is contained in:
prefect
2005-10-03 03:41:42 +00:00
parent a05e712319
commit 6fc1f45fa6
12 changed files with 210 additions and 50 deletions
+3 -2
View File
@@ -87,12 +87,13 @@ VertexArrayIterator<CVector4D> VertexArray::Attribute::GetIterator<CVector4D>()
}
template<>
VertexArrayIterator<float[]> VertexArray::Attribute::GetIterator<float[]>() const
VertexArrayIterator<float[2]> VertexArray::Attribute::GetIterator<float[2]>() const
{
debug_assert(vertexArray);
debug_assert(type == GL_FLOAT);
debug_assert(elems >= 2);
return vertexArray->MakeIterator<float[]>(this);
return vertexArray->MakeIterator<float[2]>(this);
}
template<>