]> git.tdb.fi Git - libs/gl.git/blobdiff - source/mesh.h
Refresh lighting and culling uniforms if the camera changes in pop_state
[libs/gl.git] / source / mesh.h
index 14cb072dda26891dafb4fcf402e4055358f1a48b..e9feb675a0635ee67127b5b4cd0f426617be7855 100644 (file)
@@ -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();
 };