IFEM  90A354
Functions
stb Namespace Reference

Namespace for STB routines. More...

Functions

unsigned char * loadImage (const char *file, int &width, int &height, int &nrChannels)
 Load an image from file. More...
 

Detailed Description

Namespace for STB routines.

Function Documentation

◆ loadImage()

unsigned char * stb::loadImage ( const char *  file,
int &  width,
int &  height,
int &  nrChannels 
)

Load an image from file.

Parameters
[in]fileThe file to load
[out]widthThe width of the image
[out]heightThe height of the image
[out]nrChannelsThe number of channels in the image

Referenced by TextureProperties::parse().