]> 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 c4e72031ebb174e372877dfd14972449e80d9178..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[];
 
@@ -90,6 +91,7 @@ public:
        ~Texture();
 
 protected:
+       void generate_id();
        void set_format(PixelFormat);
        void apply_swizzle();
        void set_parameter_i(GLenum, int) const;
@@ -159,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