]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/panel.h
Reuse meshes in PartCache to avoid buffer create/delete spam
[libs/gltk.git] / source / panel.h
index 8d83b66334bac182cdb80320df3e2b1e8227333c..165cc6ad50f497cfe35f49f45502a6bfc6c639f4 100644 (file)
@@ -65,9 +65,10 @@ public:
        virtual const char *get_class() const { return "panel"; }
 
        void set_layout(Layout *);
+       Layout *get_layout() { return layout; }
 
 protected:
-       virtual void autosize_special(const Part &, Geometry &);
+       virtual void autosize_special(const Part &, Geometry &) const;
        virtual void render_special(const Part &, GL::Renderer &) const;
 
        virtual void on_geometry_change();