MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / LoadArrayFromMemory

Method LoadArrayFromMemory

src/Nazara/Utility/Image.cpp:958–968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

956 }
957
958 bool Image::LoadArrayFromMemory(const void* data, std::size_t size, const ImageParams& imageParams, const Vector2ui& atlasSize)
959 {
960 Image image;
961 if (!image.LoadFromMemory(data, size, imageParams))
962 {
963 NazaraError("Failed to load image");
964 return false;
965 }
966
967 return LoadArrayFromImage(image, atlasSize);
968 }
969
970 bool Image::LoadArrayFromStream(Stream& stream, const ImageParams& imageParams, const Vector2ui& atlasSize)
971 {

Callers

nothing calls this directly

Calls 1

LoadFromMemoryMethod · 0.45

Tested by

no test coverage detected