X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture.h;h=4fa20c76483490c724b4f8b6eb72d6d05cd25707;hb=fcde8390ad577fe434dcd4b29e0f410d29f867c9;hp=c4e72031ebb174e372877dfd14972449e80d9178;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266;p=libs%2Fgl.git diff --git a/source/core/texture.h b/source/core/texture.h index c4e72031..4fa20c76 100644 --- a/source/core/texture.h +++ b/source/core/texture.h @@ -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