]> git.tdb.fi Git - libs/gl.git/blobdiff - source/uniformblock.h
Recognize in and out qualifiers for function parameters
[libs/gl.git] / source / uniformblock.h
index 1a277106040f3757dd6d3c143f61f55137a08266..02e9086ef4ed75bdf118ca2fe41fd21ac4f74637 100644 (file)
@@ -5,16 +5,15 @@
 #include <vector>
 #include "bufferable.h"
 #include "program.h"
+#include "vector.h"
 
 namespace Msp {
 namespace GL {
 
 class BufferRange;
-class Color;
 class Matrix;
 class Uniform;
-class Vector3;
-class Vector4;
+struct Color;
 
 /**
 Stores uniforms with a specific layout.  Both named and default uniform blocks
@@ -37,9 +36,10 @@ public:
 
 private:
        virtual unsigned get_data_size() const { return size; }
+       virtual const void *get_data_pointer() const { return &data[0]; }
        virtual unsigned get_alignment() const;
        virtual void offset_changed();
-       virtual void upload_data() const;
+       virtual void upload_data(char *) const;
 
 public:
        void attach(int, const Uniform &);