]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture.h
Set OpenGL debug labels on various objects loaded from Resources
[libs/gl.git] / source / core / texture.h
index bca0d409b105d9177ea7a108efc498e25c180769..4fa20c76483490c724b4f8b6eb72d6d05cd25707 100644 (file)
@@ -80,6 +80,7 @@ protected:
        bool use_srgb_format;
        bool auto_gen_mipmap;
        Sampler default_sampler;
+       std::string debug_name;
 
        static int swizzle_orders[];
 
@@ -160,6 +161,8 @@ public:
        static void unbind_from(unsigned);
 
        virtual UInt64 get_data_size() const { return 0; }
+
+       void set_debug_name(const std::string &);
 };
 
 } // namespace GL