OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
pixel.h
Go to the documentation of this file.
1 
8 #ifndef _UTILS_PIXEL_H_
9 #define _UTILS_PIXEL_H_
10 
11 unsigned char* generateColorTexture(glm::vec4 rgba, unsigned int width,
12  unsigned int height, unsigned int bpp);
13 
14 void argb2rgba32(unsigned char* image, unsigned int w, unsigned int h);
15 
16 // Returns newly allocated buffer
17 unsigned char* argb16to32(unsigned char* image, unsigned int w, unsigned int h);
18 unsigned char* grayscale2rgba(unsigned char* image, unsigned int w, unsigned int h);
19 
20 unsigned char* scaleBuffer(unsigned char* image, unsigned int* w, unsigned int* h,
21  unsigned int bpp);
22 
23 #endif
24 
unsigned char * scaleBuffer(unsigned char *image, unsigned int *w, unsigned int *h, unsigned int bpp)
Definition: pixel.cpp:87
unsigned char * grayscale2rgba(unsigned char *image, unsigned int w, unsigned int h)
Definition: pixel.cpp:65
unsigned char * generateColorTexture(glm::vec4 rgba, unsigned int width, unsigned int height, unsigned int bpp)
Definition: pixel.cpp:11
void argb2rgba32(unsigned char *image, unsigned int w, unsigned int h)
Definition: pixel.cpp:29
unsigned char * argb16to32(unsigned char *image, unsigned int w, unsigned int h)
Definition: pixel.cpp:44