Core/HardwareInfo: Fix indentation (Windows)

Former-commit-id: e722e9377f1ff2029f0206bc92c3a930cad42929 [formerly c0f38cc656abc307bc7548ab5502ef1a9f66544e] [formerly 66ebb2287517d27c153de9f4cb62967526a629cd [formerly 2bc51321d6a1c187743937a7e9e7027e8cf71e44]]
Former-commit-id: 63dcdeedc0aaec9d6fa52cfb41d548debd75c679 [formerly cdce876914c2ecec66a1884730bc8f6e9aaf8d74]
Former-commit-id: 578acacf54563a0dc831ea1e70cbfa3428ee98d8
This commit is contained in:
Lynix
2016-08-31 18:20:23 +02:00
parent fe539d33ef
commit 822eb197f4
4 changed files with 40 additions and 19 deletions

View File

@@ -57,20 +57,22 @@ namespace Nz
SparsePtr<Vector3f> posPtr(&vertices[0].position, sizeof(VertexStruct_XYZ_Color_UV));
SparsePtr<Vector2f> texCoordPtr(&vertices[0].uv, sizeof(VertexStruct_XYZ_Color_UV));
const Nz::Vector3f origin(m_size.x / 2.f, m_size.y / -2.f, 0.f);
*colorPtr++ = m_color;
*posPtr++ = instanceData->transformMatrix->Transform(Vector3f(0.f));
*posPtr++ = instanceData->transformMatrix->Transform(Vector3f(-origin));
*texCoordPtr++ = m_textureCoords.GetCorner(RectCorner_LeftTop);
*colorPtr++ = m_color;
*posPtr++ = instanceData->transformMatrix->Transform(m_size.x*Vector3f::Right());
*posPtr++ = instanceData->transformMatrix->Transform(-origin + m_size.x*Vector3f::Right());
*texCoordPtr++ = m_textureCoords.GetCorner(RectCorner_RightTop);
*colorPtr++ = m_color;
*posPtr++ = instanceData->transformMatrix->Transform(m_size.y*Vector3f::Down());
*posPtr++ = instanceData->transformMatrix->Transform(-origin + m_size.y*Vector3f::Down());
*texCoordPtr++ = m_textureCoords.GetCorner(RectCorner_LeftBottom);
*colorPtr++ = m_color;
*posPtr++ = instanceData->transformMatrix->Transform(m_size.x*Vector3f::Right() + m_size.y*Vector3f::Down());
*posPtr++ = instanceData->transformMatrix->Transform(-origin + m_size.x*Vector3f::Right() + m_size.y*Vector3f::Down());
*texCoordPtr++ = m_textureCoords.GetCorner(RectCorner_RightBottom);
}