We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 21b0d0f + 4b040db commit b29eac8Copy full SHA for b29eac8
1 file changed
include/Texture.hpp
@@ -62,6 +62,31 @@ class Texture : public TextureUnmanaged {
62
63
return *this;
64
}
65
+
66
+ /**
67
+ * Unload previous texture, then load texture from image data
68
+ */
69
+ void Load(const ::Image& image) {
70
+ Unload();
71
+ TextureUnmanaged::Load(image);
72
+ }
73
74
75
+ * Unload previous texture, then load cubemap from image.
76
+ * Multiple image cubemap layouts supported
77
78
+ void Load(const ::Image& image, int layoutType) {
79
80
+ TextureUnmanaged::Load(image, layoutType);
81
82
83
84
+ * Unload previous texture, then load texture from file into GPU memory (VRAM)
85
86
+ void Load(const std::string& fileName) {
87
88
+ TextureUnmanaged::Load(fileName);
89
90
};
91
92
// Create the Texture aliases.
0 commit comments