pntr
Header-only CPU graphics library
Loading...
Searching...
No Matches
pntr_stb_image

stb_image integration with pntr for loading images. This is the default behavior. More...

Functions

pntr_image * pntr_stb_image_load_image_from_memory (pntr_image_type type, const unsigned char *fileData, unsigned int dataSize)
 

Detailed Description

stb_image integration with pntr for loading images. This is the default behavior.

To use stb_image for loading images, define PNTR_STB_IMAGE prior to including pntr.h. This is provided by default.

#define PNTR_STB_IMAGE
#define PNTR_IMPLEMENTATION
#include "pntr.h"

Image loading can be completely disabled with PNTR_NO_LOAD_IMAGE.

See also
https://github.com/nothings/stb/blob/master/stb_image.h
PNTR_STB_IMAGE
PNTR_LOAD_IMAGE_FROM_MEMORY
PNTR_NO_LOAD_IMAGE

Function Documentation

◆ pntr_stb_image_load_image_from_memory()

pntr_image * pntr_stb_image_load_image_from_memory ( pntr_image_type  type,
const unsigned char *  fileData,
unsigned int  dataSize 
)

Load an image using stb_image.