Namespace: dmImage
Language: C++
Type: Defold C++
File: image.h
Source: engine/dlib/src/dmsdk/dlib/image.h
Include: dmsdk/dlib/image.h
Image API functions.
Type: FUNCTION Get the block size
Parameters
mem (void*) - the .astc memory (including the header)memsize (uint32_t) - the length of the memory blobwidth (uint32_t*) - (out) the block widthheight (uint32_t*) - (out) the block heightdepth (uint32_t*) - (out) the block depthReturns
result (bool) - true if it’s an astc fileType: FUNCTION Get the astc image size
Parameters
mem (void*) - the .astc memory (including the header)memsize (uint32_t) - the length of the memory blobwidth (uint32_t*) - (out) the block widthheight (uint32_t*) - (out) the block heightdepth (uint32_t*) - (out) the block depthReturns
result (bool) - true if it’s an astc fileType: ENUM result enumeration
Members
dmImage::RESULT_OK - = 0dmImage::RESULT_UNSUPPORTED_FORMAT - = -1dmImage::RESULT_IMAGE_ERROR - = -2Type: ENUM type enumeration
Members
dmImage::TYPE_RGB - = 0dmImage::TYPE_RGBA - = 1dmImage::TYPE_LUMINANCE - = 2dmImage::TYPE_LUMINANCE_ALPHA - = 3