#include <XSurface.h>
|
| | XSurface (int, int, Display *, Visual *, int) |
| |
| virtual | ~XSurface () |
| |
|
XImage * | getResource () const |
| |
|
Visual * | getVisual () const |
| |
| | Surface (const Surface &) |
| |
| virtual | ~Surface () |
| |
|
unsigned char * | getData () const |
| |
|
const int & | getWidth () const |
| |
|
const int & | getHeight () const |
| |
|
const int & | getDepth () const |
| |
|
const int & | getBytesPerPixel () const |
| |
|
const int & | getBytesPerLine () const |
| |
|
const int & | getPadding () const |
| |
|
const int & | getSize () const |
| |
| Surface & | operator= (const Surface &) |
| |
|
| enum | ColorDepth { Indexed = 8,
HighColor = 16,
RGB = 24,
ARGB = 32
} |
| |
XSurface provides a Display-compatible surface
- Author
- Markus Fisch mf@ma.nosp@m.rkus.nosp@m.fisch.nosp@m..de
| XSurface::XSurface |
( |
int |
w, |
|
|
int |
h, |
|
|
Display * |
d, |
|
|
Visual * |
v, |
|
|
int |
depth |
|
) |
| |
| void XSurface::allocateData |
( |
| ) |
|
|
protectedvirtual |
| int XSurface::determineBitsPerPixel |
( |
int |
depth | ) |
|
|
protectedvirtual |
Determine how many bits are used by the given color depth; this depends on X which tries to align the pixels on a multiple of 4 for speed; this means 24 bit RGB is actually 32 bits per pixel
- Parameters
-
Referenced by XSurface().
| void XSurface::freeData |
( |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files: