Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <vsimage.h>
Public Types | |
enum | VSImageMode { _8BIT, _24BIT, _24BITRGBA, _DXT1, _DXT1RGBA, _DXT3, _DXT5 } |
Public Member Functions | |
VSImage () | |
VSImage (VSFileSystem::VSFile *f, textureTransform *t=NULL, bool strip=false, VSFileSystem::VSFile *f2=NULL) | |
~VSImage () | |
LOCALCONST_DECL (int, SIZEOF_BITMAPFILEHEADER, sizeof(WORD)+sizeof(DWORD)+sizeof(WORD)+sizeof(WORD)+sizeof(DWORD)) LOCALCONST_DECL(int | |
VSFileSystem::VSError | WriteImage (VSFileSystem::VSFile *pf, unsigned char *data, VSImageType type, unsigned int width, unsigned int height, bool alpha=1, char bpp=16, bool flip=false) |
int | Depth () const |
int | Format () const |
char | Sides () const |
bool | isCube () const |
Public Attributes | |
unsigned char * | palette |
enum VSImage::VSImageMode | mode |
unsigned long | sizeX |
the dimensions of the texture More... | |
unsigned long | sizeY |
SIZEOF_BITMAPINFOHEADER | |
Protected Types | |
enum | CubeSides { SIDE_SINGLE =0, SIDE_POS_X =0x01, SIDE_NEG_X =0x02, SIDE_POS_Y =0x04, SIDE_NEG_Y =0x08, SIDE_POS_Z =0x10, SIDE_NEG_Z =0x20 } |
Protected Attributes | |
char | img_sides |
int | img_nmips |
|
protected |
enum VSImage::VSImageMode |
VSImage::VSImage | ( | ) |
VSImage::VSImage | ( | VSFileSystem::VSFile * | f, |
textureTransform * | t = NULL , |
||
bool | strip = false , |
||
VSFileSystem::VSFile * | f2 = NULL |
||
) |
VSImage::~VSImage | ( | ) |
Definition at line 100 of file vsimage.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 267 of file vsimage.h.
References img_sides, and SIDE_SINGLE.
VSImage::LOCALCONST_DECL | ( | int | , |
SIZEOF_BITMAPFILEHEADER | , | ||
sizeof(WORD)+sizeof(DWORD)+sizeof(WORD)+sizeof(WORD)+sizeof(DWORD) | |||
) |
|
inline |
VSError VSImage::WriteImage | ( | VSFileSystem::VSFile * | pf, |
unsigned char * | data, | ||
VSImageType | type, | ||
unsigned int | width, | ||
unsigned int | height, | ||
bool | alpha = 1 , |
||
char | bpp = 16 , |
||
bool | flip = false |
||
) |
Definition at line 795 of file vsimage.cpp.
References VSFileSystem::VSFile::Close(), VSFileSystem::FileNotFound, VSFileSystem::Ok, VSFileSystem::VSFile::OpenCreateWrite(), and VSFileSystem::vs_dprintf().
|
protected |
enum VSImage::VSImageMode VSImage::mode |
unsigned long VSImage::sizeX |