Describe ImageTexture, Image creation and usage

Ported from commit 0ee88d6705.
This commit is contained in:
Andrii Doroshenko (Xrayez)
2020-11-17 18:01:08 +02:00
parent 08028fa1ee
commit 2edd489f83
4 changed files with 39 additions and 10 deletions

View File

@@ -248,7 +248,7 @@ Error ImageTexture::load(const String &p_path) {
#endif
void ImageTexture::set_data(const Ref<Image> &p_image) {
ERR_FAIL_COND(p_image.is_null());
ERR_FAIL_COND_MSG(p_image.is_null(), "Invalid image");
VisualServer::get_singleton()->texture_set_data(texture, p_image);