]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/sampler.h
Use friend declarations to access OpenGL IDs of objects
[libs/gl.git] / source / core / sampler.h
index 524a8fc5f95f01fbee29faa87a7f731c50b0e55d..852c971003359bb7d0f0341dd97becef7242017d 100644 (file)
@@ -63,6 +63,8 @@ wrapping is applied.  The default for all directions is REPEAT.
 */
 class Sampler
 {
+       friend class PipelineState;
+
 public:
        class Loader: public DataFile::ObjectLoader<Sampler>
        {
@@ -152,8 +154,6 @@ public:
 
        void refresh() const { if(dirty_params) update(); }
 
-       unsigned get_id() const { return id; }
-
        void set_debug_name(const std::string &);
 };