]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/vertexsetup.h
Use friend declarations to access OpenGL IDs of objects
[libs/gl.git] / source / core / vertexsetup.h
index d0ed870378034334b6935b092dcfbcae80909c80..2e483fc81768e1fcb3b4c0b15a5c91b53fd346cb 100644 (file)
@@ -16,6 +16,8 @@ objects.  Intended for internal use.
 */
 class VertexSetup
 {
+       friend class PipelineState;
+
 private:
        enum ComponentMask
        {
@@ -57,8 +59,6 @@ private:
 public:
        void refresh() const { if(dirty) update(); }
 
-       unsigned get_id() const { return id; }
-
        void unload();
 
        void set_debug_name(const std::string &);