#include <plsdlbmp.h>
Inheritance diagram for PLSDLBmp:

Public Member Functions | |
| PLSDLBmp (int SurfFlags=SDL_SWSURFACE) | |
| Creates an empty bitmap. | |
| virtual | ~PLSDLBmp () |
| Destroys the bitmap. | |
| PLSDLBmp (const PLBmpBase &Orig) | |
| Copy constructor. | |
| PLSDLBmp (const PLSDLBmp &Orig) | |
| Copy constructor. | |
| void | Attach (SDL_Surface *pSurface) |
| PLSDLBmp & | operator= (const PLBmpBase &Orig) |
| Assignment operator. | |
| PLSDLBmp & | operator= (const PLSDLBmp &Orig) |
| Assignment operator. | |
| SDL_Surface * | GetSurface () |
| long | GetMemUsed () |
| Returns the amount of memory used by the object. | |
| long | GetBytesPerLine () |
| Returns number of bytes used per line. | |
Static Public Member Functions | |
| long | GetMemNeeded (PLLONG width, PLLONG height, PLWORD BitsPerPixel) |
| Returns memory needed by a bitmap with the specified attributes. | |
| long | GetBitsMemNeeded (PLLONG width, PLLONG height, PLWORD BitsPerPixel) |
| Returns memory needed by bitmap bits. | |
Protected Member Functions | |
| virtual void | internalCreate (PLLONG Width, PLLONG Height, PLWORD BitsPerPixel, bool bAlphaChannel, bool bIsGreyscale) |
| virtual void | freeMembers () |
| Delete memory allocated by member variables. | |
| virtual void | initLineArray () |
| Initialize internal table of line addresses. | |
Definition at line 22 of file plsdlbmp.h.
|
|
Attach to an existing SDL surface. After the attach, the bitmap object besomes the owner of the surface. Any previous contents are destroyed. |
|
|
Returns a pointer to the internal SDL surface. Using this pointer, you can bring SDL and paintlib data out of sync easily. Handle with care. |
|
||||||||||||||||||||||||
|
Create a new bitmap with uninitialized bits. (Assume no memory is allocated yet.) Implements PLBmp. |
1.3.2