X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmesh.h;h=7e455cd97211638938daa191b3281925fde1fb31;hb=cabb833e9b4ca10b9f350f3be6c351dce6a66822;hp=14cb072dda26891dafb4fcf402e4055358f1a48b;hpb=f1c404eda3ae4173ceb63a4f9d1f0bbccf7091a6;p=libs%2Fgl.git diff --git a/source/mesh.h b/source/mesh.h index 14cb072d..7e455cd9 100644 --- a/source/mesh.h +++ b/source/mesh.h @@ -89,11 +89,13 @@ public: void draw() const; void draw(Renderer &) const; + /** Binds the mesh for rendering. The vertex array is applied using generic + attributes only. Uses vertex array object if possible. */ void bind() const; static void unbind(); - virtual Resource::AsyncLoader *load(IO::Seekable &); + virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0); virtual UInt64 get_data_size() const; virtual void unload(); };