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

Method LoadFromStream

src/Nazara/Renderer/Texture.cpp:603–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601 }
602
603 bool Texture::LoadFromStream(Stream& stream, const ImageParams& params, bool generateMipmaps)
604 {
605 Image image;
606 if (!image.LoadFromStream(stream, params))
607 {
608 NazaraError("Failed to load image");
609 return false;
610 }
611
612 return LoadFromImage(image, generateMipmaps);
613 }
614
615 bool Texture::LoadArrayFromFile(const String& filePath, const ImageParams& imageParams, bool generateMipmaps, const Vector2ui& atlasSize)
616 {

Callers 1

LoadFaceFromStreamMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected