Blender V5.3
decoder.cpp File Reference
#include "decoder.h"
#include "common.h"

Go to the source code of this file.

Functions

int decodeFromFile (const char *filename, ktxTexture2 **newTex)
int getImageInfo (ktxTexture2 *texture, unsigned int *width, unsigned int *height, size_t *dataSize)
int getImageDataFloat (ktxTexture2 *texture, float *destination, size_t destinationSize)
void destroyTexture (ktxTexture2 *texture)

Function Documentation

◆ decodeFromFile()

int decodeFromFile ( const char * filename,
ktxTexture2 ** newTex )

◆ destroyTexture()

void destroyTexture ( ktxTexture2 * texture)

Definition at line 98 of file ktx_bridge/intern/decoder.cpp.

References destroyTexture(), and texture().

Referenced by destroyTexture().

◆ getImageDataFloat()

int getImageDataFloat ( ktxTexture2 * texture,
float * destination,
size_t destinationSize )

◆ getImageInfo()

int getImageInfo ( ktxTexture2 * texture,
unsigned int * width,
unsigned int * height,
size_t * dataSize )

Definition at line 43 of file ktx_bridge/intern/decoder.cpp.

References getImageInfo(), and texture().

Referenced by getImageInfo().