MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / load

Method load

deps/physx/physx/samples/sampleframework/framework/src/nv_dds.cpp:298–316  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// loads DDS image filename - fully qualified name of DDS image flipImage - specifies whether image is flipped on load, default is true

Source from the content-addressed store, hash-verified

296// filename - fully qualified name of DDS image
297// flipImage - specifies whether image is flipped on load, default is true
298bool CDDSImage::load(string filename, bool flipImage)
299{
300 assert(filename.length() != 0);
301
302 // clear any previously loaded images
303 clear();
304
305 // open file
306 SampleRenderer::File *fp = 0;
307 PxToolkit::fopen_s(&fp, filename.c_str(), "rb");
308 if (fp == NULL)
309 return false;
310
311 bool success = load(fp, flipImage);
312
313 fclose(fp);
314
315 return success;
316}
317
318///////////////////////////////////////////////////////////////////////////////
319// loads DDS image from FILE stream

Callers 1

loadDDSMethod · 0.45

Calls 12

strncmpFunction · 0.85
swap_endianFunction · 0.85
CTextureClass · 0.85
CSurfaceClass · 0.85
c_strMethod · 0.80
add_mipmapMethod · 0.80
clearFunction · 0.50
fopen_sFunction · 0.50
flipFunction · 0.50
lengthMethod · 0.45
push_backMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected