
Public Member Functions | |
| CTexture () | |
| CTexture (Int32 w, Int32 h, Int32 d, Int32 imgSize) | |
| CTexture (const CTexture ©) | |
| CTexture & | operator= (const CTexture &rhs) |
| ~CTexture () | |
| CSurface & | get_mipmap (Int32 index) |
| Int32 | get_num_mipmaps () |
| operator char * () | |
| void | create (Int32 w, Int32 h, Int32 d, Int32 imgsize) |
| void | clear () |
| Int32 | get_width () |
| Int32 | get_height () |
| Int32 | get_depth () |
| Int32 | get_size () |
| char * | get_pixels () |
Protected Attributes | |
| std::vector< CSurface > | mipmaps |
| Int32 | width |
| Int32 | height |
| Int32 | depth |
| Int32 | size |
| char * | pixels |
Friends | |
| class | CDDSImage |
Definition at line 202 of file OSGDDSImageFileType.cpp.
| CTexture::CTexture | ( | ) |
Definition at line 1091 of file OSGDDSImageFileType.cpp.
01092 : CSurface() // initialize base class part 01093 { 01094 }
| CTexture::CTexture | ( | Int32 | w, | |
| Int32 | h, | |||
| Int32 | d, | |||
| Int32 | imgSize | |||
| ) |
Definition at line 1098 of file OSGDDSImageFileType.cpp.
01099 : CSurface(w, h, d, imgSize) // initialize base class part 01100 { 01101 }
| CTexture::CTexture | ( | const CTexture & | copy | ) |
| CTexture::~CTexture | ( | ) |
Definition at line 1132 of file OSGDDSImageFileType.cpp.
References mipmaps.
01133 { 01134 mipmaps.clear(); 01135 }
Definition at line 1114 of file OSGDDSImageFileType.cpp.
References mipmaps, and CSurface::operator=().
01115 { 01116 if (this != &rhs) 01117 { 01118 CSurface::operator = (rhs); 01119 01120 mipmaps.clear(); 01121 for (UInt32 i = 0; i < rhs.mipmaps.size(); i++) 01122 { 01123 mipmaps.push_back(rhs.mipmaps[i]); 01124 } 01125 } 01126 01127 return *this; 01128 }
| CSurface& CTexture::get_mipmap | ( | Int32 | index | ) | [inline] |
| Int32 CTexture::get_num_mipmaps | ( | ) | [inline] |
| CSurface::operator char * | ( | ) | [inherited] |
Definition at line 1213 of file OSGDDSImageFileType.cpp.
References CSurface::pixels.
01214 { 01215 return pixels; 01216 }
| void CSurface::create | ( | Int32 | w, | |
| Int32 | h, | |||
| Int32 | d, | |||
| Int32 | imgsize | |||
| ) | [inherited] |
Definition at line 1220 of file OSGDDSImageFileType.cpp.
References CSurface::clear(), CSurface::depth, CSurface::height, CSurface::pixels, CSurface::size, and CSurface::width.
Referenced by CSurface::CSurface().
01221 { 01222 clear(); 01223 01224 width = w; 01225 height = h; 01226 depth = d; 01227 size = imgsize; 01228 pixels = new char[imgsize]; 01229 }
| void CSurface::clear | ( | void | ) | [inherited] |
Definition at line 1233 of file OSGDDSImageFileType.cpp.
References CSurface::pixels.
Referenced by CSurface::create(), CSurface::operator=(), and CSurface::~CSurface().
| Int32 CSurface::get_width | ( | ) | [inline, inherited] |
Definition at line 187 of file OSGDDSImageFileType.cpp.
References CSurface::width.
00187 { return width; }
| Int32 CSurface::get_height | ( | ) | [inline, inherited] |
Definition at line 188 of file OSGDDSImageFileType.cpp.
References CSurface::height.
00188 { return height; }
| Int32 CSurface::get_depth | ( | ) | [inline, inherited] |
Definition at line 189 of file OSGDDSImageFileType.cpp.
References CSurface::depth.
00189 { return depth; }
| Int32 CSurface::get_size | ( | ) | [inline, inherited] |
Definition at line 190 of file OSGDDSImageFileType.cpp.
References CSurface::size.
00190 { return size; }
| char* CSurface::get_pixels | ( | ) | [inline, inherited] |
Definition at line 191 of file OSGDDSImageFileType.cpp.
References CSurface::pixels.
00191 { return pixels; }
friend class CDDSImage [friend] |
std::vector<CSurface> CTexture::mipmaps [protected] |
Definition at line 221 of file OSGDDSImageFileType.cpp.
Referenced by CTexture(), get_mipmap(), get_num_mipmaps(), CDDSImage::load(), operator=(), and ~CTexture().
Int32 CSurface::width [protected, inherited] |
Definition at line 194 of file OSGDDSImageFileType.cpp.
Referenced by CDDSImage::align_memory(), CSurface::create(), CSurface::CSurface(), CSurface::get_width(), CDDSImage::load(), and CSurface::operator=().
Int32 CSurface::height [protected, inherited] |
Definition at line 195 of file OSGDDSImageFileType.cpp.
Referenced by CDDSImage::align_memory(), CSurface::create(), CSurface::CSurface(), CSurface::get_height(), CDDSImage::load(), and CSurface::operator=().
Int32 CSurface::depth [protected, inherited] |
Definition at line 196 of file OSGDDSImageFileType.cpp.
Referenced by CDDSImage::align_memory(), CSurface::create(), CSurface::CSurface(), CSurface::get_depth(), CDDSImage::load(), and CSurface::operator=().
Int32 CSurface::size [protected, inherited] |
Definition at line 197 of file OSGDDSImageFileType.cpp.
Referenced by CDDSImage::align_memory(), CSurface::create(), CSurface::CSurface(), CSurface::get_size(), CDDSImage::load(), and CSurface::operator=().
char* CSurface::pixels [protected, inherited] |
Definition at line 199 of file OSGDDSImageFileType.cpp.
Referenced by CSurface::clear(), CSurface::create(), CSurface::CSurface(), CSurface::get_pixels(), CSurface::operator char *(), and CSurface::operator=().
1.5.5