Updated buffers interface

Former-commit-id: 8c8d60b6b22cc844740dbc3320af65575cec4feb
This commit is contained in:
Lynix
2013-08-07 01:10:26 +02:00
parent 6de41bb9cf
commit 6507e1ed2d
7 changed files with 306 additions and 160 deletions

View File

@@ -34,9 +34,9 @@ namespace
1, 6, 2, 1, 5, 6
};
if (!indexBuffer->FillIndices(indices, 0, 36))
if (!indexBuffer->Fill(indices, 0, 36))
{
NazaraError("Failed to create vertex buffer");
NazaraError("Failed to create index buffer");
return nullptr;
}
@@ -139,7 +139,7 @@ namespace
1.0, 1.0, -1.0,
};
if (!vertexBuffer->FillVertices(vertices, 0, 8))
if (!vertexBuffer->Fill(vertices, 0, 8))
{
NazaraError("Failed to create vertex buffer");
return nullptr;