Skip to content
Snippets Groups Projects
Commit d545c4cf authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 25c0a369
Branches
Tags
No related merge requests found
// $Id: VertexArray.cpp,v 1.21 2007-08-27 13:46:21 geuzaine Exp $ // $Id: VertexArray.cpp,v 1.22 2007-08-27 23:33:48 geuzaine Exp $
// //
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// //
...@@ -32,7 +32,7 @@ VertexArray::VertexArray(int numVerticesPerElement, int numElements) ...@@ -32,7 +32,7 @@ VertexArray::VertexArray(int numVerticesPerElement, int numElements)
int nb = (numElements ? numElements : 1) * numVerticesPerElement; int nb = (numElements ? numElements : 1) * numVerticesPerElement;
_vertices.reserve(nb * 3); _vertices.reserve(nb * 3);
_normals.reserve(nb * 3); _normals.reserve(nb * 3);
_colors.reserve(nb *4); _colors.reserve(nb * 4);
} }
void VertexArray::add(float x, float y, float z, float n0, float n1, float n2, void VertexArray::add(float x, float y, float z, float n0, float n1, float n2,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment