MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / create_empty

Method create_empty

core/io/image.cpp:2164–2169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2162}
2163
2164Ref<Image> Image::create_empty(int p_width, int p_height, bool p_use_mipmaps, Format p_format) {
2165 Ref<Image> image;
2166 image.instantiate();
2167 image->initialize_data(p_width, p_height, p_use_mipmaps, p_format);
2168 return image;
2169}
2170
2171Ref<Image> Image::create_from_data(int p_width, int p_height, bool p_use_mipmaps, Format p_format, const Vector<uint8_t> &p_data) {
2172 Ref<Image> image;

Callers

nothing calls this directly

Calls 2

initialize_dataMethod · 0.80
instantiateMethod · 0.45

Tested by

no test coverage detected