mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
rename vattr to VertexAttribute
This commit is contained in:
parent
65287b3273
commit
5240fe6226
11 changed files with 16 additions and 16 deletions
|
|
@ -4,7 +4,7 @@
|
|||
int Mesh::meshesCount = 0;
|
||||
int Mesh::drawCalls = 0;
|
||||
|
||||
inline size_t calc_vertex_size(const vattr* attrs) {
|
||||
inline size_t calc_vertex_size(const VertexAttribute* attrs) {
|
||||
size_t vertexSize = 0;
|
||||
for (int i = 0; attrs[i].size; i++) {
|
||||
vertexSize += attrs[i].size;
|
||||
|
|
@ -19,7 +19,7 @@ Mesh::Mesh(const MeshData& data)
|
|||
data.indices.size(),
|
||||
data.attrs.data()) {}
|
||||
|
||||
Mesh::Mesh(const float* vertexBuffer, size_t vertices, const int* indexBuffer, size_t indices, const vattr* attrs) :
|
||||
Mesh::Mesh(const float* vertexBuffer, size_t vertices, const int* indexBuffer, size_t indices, const VertexAttribute* attrs) :
|
||||
ibo(0),
|
||||
vertices(0),
|
||||
indices(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue