/*********************************************************************** * Copyright 2011-2012 Computer Graphics Group RWTH Aachen University. * * All rights reserved. * * Distributed under the terms of the MIT License (see LICENSE.TXT). * **********************************************************************/ #include #include using namespace ACGL; using namespace ACGL::OpenGL; using namespace ACGL::Utils; namespace ACGL{ namespace OpenGL{ SharedVertexArrayObject loadVertexArrayObject(const std::string& _filename) { SharedVertexArrayObject vao(new VertexArrayObject); SharedArrayBuffer ab = loadArrayBuffer(_filename); vao->attachAllAttributes(ab); return vao; } } }