Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

wftk::GammaFunction Class Reference

A texture to use with Surface::shiftGamma() The "texture" always has to have a size of 256*256 values ! More...

#include <surface.h>

List of all members.

Public Member Functions

 GammaFunction ()
 Construct a GammaFunction.
 GammaFunction (char **xpm)
 Construct a GammaFunction from xpm data.
 GammaFunction (const GammaFunction &)
 Copy a GammaFunction.
GammaFunctionoperator= (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


Detailed Description

A texture to use with Surface::shiftGamma() The "texture" always has to have a size of 256*256 values !


Member Function Documentation

void wftk::GammaFunction::setBitShift char  x,
char  y
[inline]
 

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).


The documentation for this class was generated from the following files:

Generated Mon Sep 6 21:58:17 2004.
Copyright © 1998-2003 by the respective authors.

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.