X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Funiformblock.h;h=d694e3674a48e07f56e4abfdd512d149f8c2e547;hb=0777840f31274f75cb4ff8e6717c44c373d5e182;hp=66b3c7e0c1424b2b4fedc2bb7a15c8232881ed4a;hpb=f6e51c2f771726eec73b07824ebde2cf8bd522f0;p=libs%2Fgl.git diff --git a/source/uniformblock.h b/source/uniformblock.h index 66b3c7e0..d694e367 100644 --- a/source/uniformblock.h +++ b/source/uniformblock.h @@ -5,6 +5,7 @@ #include #include "bufferable.h" #include "program.h" +#include "vector.h" namespace Msp { namespace GL { @@ -13,9 +14,11 @@ class BufferRange; class Color; class Matrix; 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 +36,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;