#include <Image.h>
Public Member Functions | |
Image () | |
virtual | ~Image () |
bool | loadImage (const char *filename) |
void | clear () |
int | getHeight () const |
int | getWidth () const |
int | getFormat () const |
unsigned char * | getData () const |
bool | toNormalMap (const bool useRGBA=true, const bool keepHeight=false) |
bool | toGrayScale (const bool isRGBA=true, const bool reallocate=true) |
bool | alphaFade () |
Public Attributes | |
unsigned char * | data |
int | width |
int | height |
unsigned int | format |
Protected Member Functions | |
bool | loadBMP (const char *filename) |
Author: Petter Alstermark, petter@alstermark.com
Definition at line 18 of file Image.h.
|
Author: Petter Alstermark, petter@alstermark.com Definition at line 12 of file Image.cpp. Here is the call graph for this function: |
|
Definition at line 20 of file Image.cpp. References clear(). Here is the call graph for this function: |
|
|
|
Definition at line 27 of file Image.cpp. References data, format, height, and width. Referenced by Image(), Renderer::insertTexture(), loadImage(), and ~Image(). |
|
Definition at line 103 of file Image.cpp. References data. Referenced by OpenGLRenderer::createTexture(). |
|
Definition at line 96 of file Image.cpp. References format. Referenced by Renderer::addCubemap(), Renderer::addTexture(), and OpenGLRenderer::createTexture(). |
|
Definition at line 82 of file Image.cpp. References height. Referenced by Renderer::addCubemap(), Renderer::addTexture(), and OpenGLRenderer::createTexture(). |
|
Definition at line 89 of file Image.cpp. References width. Referenced by Renderer::addCubemap(), Renderer::addTexture(), and OpenGLRenderer::createTexture(). |
|
Definition at line 55 of file Image.cpp. References data, format, height, LOG_ERROR, LOG_SUCCESS, and width. Referenced by loadImage(). |
|
Definition at line 37 of file Image.cpp. References clear(), loadBMP(), and LOG_ERROR. Referenced by Renderer::addTexture(), lava(), pink(), save(), save1(), saveCrystal1(), saveElectronic1(), and saveRadioactive1(). Here is the call graph for this function: |
|
Definition at line 113 of file Image.cpp. Referenced by Renderer::addTexture(). |
|
Definition at line 108 of file Image.cpp. Referenced by Renderer::addTexture(). |
|
Definition at line 38 of file Image.h. Referenced by clear(), getData(), Image(), lava(), loadBMP(), pink(), save(), save1(), saveCrystal1(), saveElectronic1(), and saveRadioactive1(). |
|
Definition at line 40 of file Image.h. Referenced by clear(), getFormat(), and loadBMP(). |
|
Definition at line 39 of file Image.h. Referenced by clear(), getHeight(), lava(), loadBMP(), pink(), save(), save1(), saveCrystal1(), saveElectronic1(), and saveRadioactive1(). |
|
Definition at line 39 of file Image.h. Referenced by clear(), getWidth(), lava(), loadBMP(), pink(), save(), save1(), saveCrystal1(), saveElectronic1(), and saveRadioactive1(). |