#include <surface.h>
Public Member Functions | |
| GammaFunction () | |
| Construct a GammaFunction. | |
| GammaFunction (char **xpm) | |
| Construct a GammaFunction from xpm data. | |
| GammaFunction (const GammaFunction &) | |
| Copy a GammaFunction. | |
| GammaFunction & | operator= (const GammaFunction &) |
| Copy another GammaFunction into this one. | |
| void | read (char **xpm) |
| Read xpm data into a GammaFunction. | |
| void | setOffset (int x, int y) |
| Set the offset of the GammaFunction origin from the target Surface origin. | |
| void | setOffset (const wftk::Point &p) |
| same thing | |
| void | shiftOffset (int x, int y) |
| Shift the offset of the GammaFunction origin. | |
| void | shiftOffset (const wftk::Point &p) |
| same thing | |
| void | setBitShift (char x, char y) |
| Allows textures to act on areas larger than 256x256, by making each element in the GammaFunction act on more than one pixel. | |
| char | operator() (int x, int y) const |
| access to GammaFunction internal data | |
| char & | operator() (int x, int y) |
| access to GammaFunction internal data | |
Friends | |
| class | Surface |
|
||||||||||||
|
Allows textures to act on areas larger than 256x256, by making each element in the GammaFunction act on more than one pixel. With a shift of 1, each element acts twice, giving an effective width or height of 512. With a shift of 2, each acts 4 times, for an effective width or height of 1024, etc., etc. Uclient uses (or will use, for compatibility with libuta) setBitShift(2, 1). |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.