CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csBumpMap Class Reference

A class representing a bumpmap. More...

#include <bumpmap.h>

List of all members.

Public Methods

 csBumpMap (iImage *src, int fmt)
 create a new bumpmap in the specified format from the image provided.

 ~csBumpMap ()
 deletes a bumpmap

int GetWidth () const
 get width

int GetHeight () const
 get height

void * GetBumpData () const
 get bumpmap data


Protected Attributes

int width
 Width of bumpmap.

int height
 Height of bumpmap.

uint8bumpmap
 The bumpmap data.

int format
 BumpMap format (see CS_BUMPFMT_XXX above).


Detailed Description

A class representing a bumpmap.

It can be constructed from regular images.

Definition at line 47 of file bumpmap.h.


Constructor & Destructor Documentation

csBumpMap::csBumpMap iImage   src,
int    fmt
 

create a new bumpmap in the specified format from the image provided.

csBumpMap::~csBumpMap  
 

deletes a bumpmap


Member Function Documentation

void* csBumpMap::GetBumpData   const [inline]
 

get bumpmap data

Definition at line 75 of file bumpmap.h.

References bumpmap.

int csBumpMap::GetHeight   const [inline]
 

get height

Definition at line 73 of file bumpmap.h.

References height.

int csBumpMap::GetWidth   const [inline]
 

get width

Definition at line 71 of file bumpmap.h.

References width.


Member Data Documentation

uint8* csBumpMap::bumpmap [protected]
 

The bumpmap data.

Definition at line 55 of file bumpmap.h.

Referenced by GetBumpData().

int csBumpMap::format [protected]
 

BumpMap format (see CS_BUMPFMT_XXX above).

Definition at line 57 of file bumpmap.h.

int csBumpMap::height [protected]
 

Height of bumpmap.

Definition at line 53 of file bumpmap.h.

Referenced by GetHeight().

int csBumpMap::width [protected]
 

Width of bumpmap.

Definition at line 51 of file bumpmap.h.

Referenced by GetWidth().


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18