OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Functions
pixel.h File Reference

Pixel buffer utilities. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned char * generateColorTexture (glm::vec4 rgba, unsigned int width, unsigned int height, unsigned int bpp)
 
void argb2rgba32 (unsigned char *image, unsigned int w, unsigned int h)
 
unsigned char * argb16to32 (unsigned char *image, unsigned int w, unsigned int h)
 
unsigned char * grayscale2rgba (unsigned char *image, unsigned int w, unsigned int h)
 
unsigned char * scaleBuffer (unsigned char *image, unsigned int *w, unsigned int *h, unsigned int bpp)
 

Detailed Description

Pixel buffer utilities.

Author
xythobuz

Definition in file pixel.h.

Function Documentation

unsigned char* generateColorTexture ( glm::vec4  rgba,
unsigned int  width,
unsigned int  height,
unsigned int  bpp 
)

Definition at line 11 of file pixel.cpp.

void argb2rgba32 ( unsigned char *  image,
unsigned int  w,
unsigned int  h 
)

Definition at line 29 of file pixel.cpp.

unsigned char* argb16to32 ( unsigned char *  image,
unsigned int  w,
unsigned int  h 
)

Definition at line 44 of file pixel.cpp.

unsigned char* grayscale2rgba ( unsigned char *  image,
unsigned int  w,
unsigned int  h 
)

Definition at line 65 of file pixel.cpp.

unsigned char* scaleBuffer ( unsigned char *  image,
unsigned int *  w,
unsigned int *  h,
unsigned int  bpp 
)

Definition at line 87 of file pixel.cpp.