X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmesh.h;h=e9feb675a0635ee67127b5b4cd0f426617be7855;hb=6dc2da27f0831d4172fcfeba4900616fd6c844b8;hp=14cb072dda26891dafb4fcf402e4055358f1a48b;hpb=f1c404eda3ae4173ceb63a4f9d1f0bbccf7091a6;p=libs%2Fgl.git diff --git a/source/mesh.h b/source/mesh.h index 14cb072d..e9feb675 100644 --- a/source/mesh.h +++ b/source/mesh.h @@ -89,11 +89,14 @@ 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 int get_load_priority() const { return 1; } + virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0); virtual UInt64 get_data_size() const; virtual void unload(); };