]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/buffer.h
Use friend declarations to access OpenGL IDs of objects
[libs/gl.git] / source / core / buffer.h
index 9144afaed3d1682f28efd8076988c8e815a977db..db0ff025f3b1f816283fe0bed7a696d95d7ccff9 100644 (file)
@@ -25,6 +25,9 @@ UniformBlock classes contain built-in support for buffers.
 */
 class Buffer
 {
+       friend class PipelineState;
+       friend class VertexSetup;
+
 private:
        unsigned id;
        unsigned size;