Inheritance diagram for CSurface:

Public Member Functions | |
| CSurface () | |
| CSurface (Int32 w, Int32 h, Int32 d, Int32 imgsize) | |
| CSurface (const CSurface ©) | |
| CSurface & | operator= (const CSurface &rhs) |
| virtual | ~CSurface () |
| 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 | |
| Int32 | width |
| Int32 | height |
| Int32 | depth |
| Int32 | size |
| char * | pixels |
Friends | |
| class | CTexture |
| class | CDDSImage |
Definition at line 168 of file OSGDDSImageFileType.cpp.
| CSurface::CSurface | ( | ) |
| CSurface::CSurface | ( | Int32 | w, | |
| Int32 | h, | |||
| Int32 | d, | |||
| Int32 | imgsize | |||
| ) |
| CSurface::CSurface | ( | const CSurface & | copy | ) |
Definition at line 1199 of file OSGDDSImageFileType.cpp.
References depth, height, pixels, size, and width.
01200 : width(0), 01201 height(0), 01202 depth(0), 01203 size(0), 01204 pixels(NULL) 01205 { 01206 01207 if (copy.pixels) 01208 { 01209 size = copy.size; 01210 width = copy.width; 01211 height = copy.height; 01212 depth = copy.depth; 01213 pixels = new char[size]; 01214 memcpy(pixels, copy.pixels, copy.size); 01215 } 01216 }
| CSurface::~CSurface | ( | ) | [virtual] |
Definition at line 1244 of file OSGDDSImageFileType.cpp.
References clear().
01245 { 01246 clear(); 01247 }
Definition at line 1220 of file OSGDDSImageFileType.cpp.
References clear(), depth, height, pixels, size, and width.
Referenced by CTexture::operator=().
01221 { 01222 if (this != &rhs) 01223 { 01224 clear(); 01225 01226 if (rhs.pixels) 01227 { 01228 size = rhs.size; 01229 width = rhs.width; 01230 height = rhs.height; 01231 depth = rhs.depth; 01232 01233 pixels = new char[size]; 01234 memcpy(pixels, rhs.pixels, size); 01235 } 01236 } 01237 01238 return *this; 01239 }
| CSurface::operator char * | ( | ) |
Definition at line 1252 of file OSGDDSImageFileType.cpp.
References pixels.
01253 { 01254 return pixels; 01255 }
| void CSurface::create | ( | Int32 | w, | |
| Int32 | h, | |||
| Int32 | d, | |||
| Int32 | imgsize | |||
| ) |
| void CSurface::clear | ( | ) |
Definition at line 1274 of file OSGDDSImageFileType.cpp.
References pixels.
Referenced by create(), operator=(), and ~CSurface().
| Int32 CSurface::get_width | ( | ) | [inline] |
| Int32 CSurface::get_height | ( | ) | [inline] |
| Int32 CSurface::get_depth | ( | ) | [inline] |
| Int32 CSurface::get_size | ( | ) | [inline] |
| char* CSurface::get_pixels | ( | ) | [inline] |
friend class CTexture [friend] |
Definition at line 170 of file OSGDDSImageFileType.cpp.
friend class CDDSImage [friend] |
Int32 CSurface::width [protected] |
Definition at line 194 of file OSGDDSImageFileType.cpp.
Referenced by CDDSImage::align_memory(), create(), CSurface(), get_width(), CDDSImage::load(), and operator=().
Int32 CSurface::height [protected] |
Definition at line 195 of file OSGDDSImageFileType.cpp.
Referenced by CDDSImage::align_memory(), create(), CSurface(), get_height(), and operator=().
Int32 CSurface::depth [protected] |
Definition at line 196 of file OSGDDSImageFileType.cpp.
Referenced by CDDSImage::align_memory(), create(), CSurface(), get_depth(), and operator=().
Int32 CSurface::size [protected] |
Definition at line 197 of file OSGDDSImageFileType.cpp.
Referenced by CDDSImage::align_memory(), create(), CSurface(), get_size(), CDDSImage::load(), and operator=().
char* CSurface::pixels [protected] |
Definition at line 199 of file OSGDDSImageFileType.cpp.
Referenced by clear(), create(), CSurface(), get_pixels(), operator char *(), and operator=().