]> git.tdb.fi Git - libs/gl.git/blobdiff - source/uniformblock.h
Lots of comment updates
[libs/gl.git] / source / uniformblock.h
index 66b3c7e0c1424b2b4fedc2bb7a15c8232881ed4a..1a277106040f3757dd6d3c143f61f55137a08266 100644 (file)
@@ -16,6 +16,10 @@ class Uniform;
 class Vector3;
 class Vector4;
 
+/**
+Stores uniforms with a specific layout.  Both named and default uniform blocks
+are supported.
+*/
 class UniformBlock: public Bufferable
 {
 private:
@@ -33,6 +37,7 @@ public:
 
 private:
        virtual unsigned get_data_size() const { return size; }
+       virtual unsigned get_alignment() const;
        virtual void offset_changed();
        virtual void upload_data() const;