]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/mesh.cpp
Rename VertexComponent to VertexAttribute
[libs/gl.git] / source / core / mesh.cpp
index dba8a9915489aede7906f8a684b9d59e288428b5..3a79f3e53193c0c1c63cb32bde351926c2cb4a63 100644 (file)
@@ -218,13 +218,13 @@ Mesh::Loader::Loader(Mesh &m, bool g):
        add("winding",  &Loader::winding);
 }
 
-void Mesh::Loader::vertices(const vector<VertexComponent> &c)
+void Mesh::Loader::vertices(const vector<VertexAttribute> &a)
 {
-       if(c.empty())
-               throw invalid_argument("No vertex components");
+       if(a.empty())
+               throw invalid_argument("No vertex attributes");
 
        VertexFormat fmt;
-       for(vector<VertexComponent>::const_iterator i=c.begin(); i!=c.end(); ++i)
+       for(vector<VertexAttribute>::const_iterator i=a.begin(); i!=a.end(); ++i)
                fmt = (fmt, *i);
        obj.vertices.reset(fmt);
        load_sub(obj.vertices);