impr: Added missing [[nodiscard]]s
This commit is contained in:
parent
d5020ce9bb
commit
a729329cd4
@ -79,16 +79,16 @@ namespace ImGuiExt {
|
|||||||
Texture(const Texture&) = delete;
|
Texture(const Texture&) = delete;
|
||||||
Texture(Texture&& other) noexcept;
|
Texture(Texture&& other) noexcept;
|
||||||
|
|
||||||
static Texture fromImage(const ImU8 *buffer, int size, Filter filter = Filter::Nearest);
|
[[nodiscard]] static Texture fromImage(const ImU8 *buffer, int size, Filter filter = Filter::Nearest);
|
||||||
static Texture fromImage(std::span<const std::byte> buffer, Filter filter = Filter::Nearest);
|
[[nodiscard]] static Texture fromImage(std::span<const std::byte> buffer, Filter filter = Filter::Nearest);
|
||||||
static Texture fromImage(const char *path, Filter filter = Filter::Nearest);
|
[[nodiscard]] static Texture fromImage(const char *path, Filter filter = Filter::Nearest);
|
||||||
static Texture fromImage(const std::fs::path &path, Filter filter = Filter::Nearest);
|
[[nodiscard]] static Texture fromImage(const std::fs::path &path, Filter filter = Filter::Nearest);
|
||||||
static Texture fromGLTexture(unsigned int texture, int width, int height);
|
[[nodiscard]] static Texture fromGLTexture(unsigned int texture, int width, int height);
|
||||||
static Texture fromBitmap(const ImU8 *buffer, int size, int width, int height, Filter filter = Filter::Nearest);
|
[[nodiscard]] static Texture fromBitmap(const ImU8 *buffer, int size, int width, int height, Filter filter = Filter::Nearest);
|
||||||
static Texture fromBitmap(std::span<const std::byte> buffer, int width, int height, Filter filter = Filter::Nearest);
|
[[nodiscard]] static Texture fromBitmap(std::span<const std::byte> buffer, int width, int height, Filter filter = Filter::Nearest);
|
||||||
static Texture fromSVG(const char *path, int width = 0, int height = 0, Filter filter = Filter::Nearest);
|
[[nodiscard]] static Texture fromSVG(const char *path, int width = 0, int height = 0, Filter filter = Filter::Nearest);
|
||||||
static Texture fromSVG(const std::fs::path &path, int width = 0, int height = 0, Filter filter = Filter::Nearest);
|
[[nodiscard]] static Texture fromSVG(const std::fs::path &path, int width = 0, int height = 0, Filter filter = Filter::Nearest);
|
||||||
static Texture fromSVG(std::span<const std::byte> buffer, int width = 0, int height = 0, Filter filter = Filter::Nearest);
|
[[nodiscard]] static Texture fromSVG(std::span<const std::byte> buffer, int width = 0, int height = 0, Filter filter = Filter::Nearest);
|
||||||
|
|
||||||
|
|
||||||
~Texture();
|
~Texture();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user