]> git.tdb.fi Git - libs/gl.git/blobdiff - source/material.h
Homogenise binding semantics
[libs/gl.git] / source / material.h
index 9af86a700b6f5502c12b9b240f307263311a800a..3a65f339344787512f59597c1483a3596ec4376c 100644 (file)
@@ -12,7 +12,7 @@ namespace GL {
 Stores OpenGL material properties.  Since OpenGL does not support material
 objects, application of material is done with several calls to glMaterial.
 */
-class Material: public Bindable<Material>
+class Material: public BindableWithDefault<Material>
 {
 public:
        class Loader: public DataFile::ObjectLoader<Material>
@@ -47,8 +47,6 @@ public:
        const Color &get_emission() const { return emission; }
        float get_shininess() const { return shininess; }
        void bind() const;
-
-       static void unbind();
 };
 
 } // namespace GL