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

PerlinImage Class Reference

#include <perlinimage.h>

Inheritance diagram for PerlinImage:

Inheritance graph
[legend]
Collaboration diagram for PerlinImage:

Collaboration graph
[legend]
List of all members.

Detailed Description

Perlin Noise image generation class.

Class contains functions to generate clouds,wood,marble textures

Author:
Rob Wanders (forteq@softhome.net)


Public Types

enum  PERLINIMAGETYPE
 Image type to be generated.


Public Member Functions

 PerlinImage (int iWidth, int iHeight)
void GenerateImage (PERLINIMAGETYPE eType, int iData)
void SetWidth (int iWidth)
void SetHeight (int iHeight)
virtual void CreateMipMaps ()

Static Public Member Functions

bool ScaleImage (int iComp, int iInWidth, int iInHeight, const unsigned char *pInData, int iOutWidth, int iOutHeight, unsigned char *pOutData)

Public Attributes

int m_iWidth
int m_iHeight
Texture::TEXTUREFORMAT m_eFormat
int m_iChannels
int m_iBPP
unsigned char * m_pucData
ImageCodecm_pkCodec
int m_iMipMaps
ImageDatam_pkMipMaps

Protected Attributes

PERLINIMAGETYPE m_iType
bool m_bGenerated


Constructor & Destructor Documentation

PerlinImage int  iWidth,
int  iHeight
 

Sets width and height

Parameters:
iWidth Width of image
iHeight Height of image


Member Function Documentation

void GenerateImage PERLINIMAGETYPE  eType,
int  iData
 

Generates an image

Parameters:
eType Type of image
iData Image generation data (uncloudiness, 0 completely clouded, 255 clear sky)

void SetWidth int  iWidth  ) 
 

Parameters:
iWidth New width

void SetHeight int  iHeight  ) 
 

Parameters:
iHeight New height

virtual void CreateMipMaps  )  [virtual, inherited]
 

Create mipmaps

bool ScaleImage int  iComp,
int  iInWidth,
int  iInHeight,
const unsigned char *  pInData,
int  iOutWidth,
int  iOutHeight,
unsigned char *  pOutData
[static, inherited]
 

Scale image

Parameters:
iComp Components per pixel
iInWidth Current width
iInHeight Current height
pucInData Image to scale
iOutWidth Requested width
iOutHeight Requested height
pucOutData Pointer to memory for new scaled image


Member Data Documentation

PERLINIMAGETYPE m_iType [protected]
 

Type of image

bool m_bGenerated [protected]
 

true if a image is generated, false if not

int m_iWidth [inherited]
 

Width of image

int m_iHeight [inherited]
 

Height of image

Texture::TEXTUREFORMAT m_eFormat [inherited]
 

Format of data

int m_iChannels [inherited]
 

Color channels

int m_iBPP [inherited]
 

Bits per pixel

unsigned char* m_pucData [inherited]
 

Ptr to data

class ImageCodec* m_pkCodec [inherited]
 

Image codec that created the image

int m_iMipMaps [inherited]
 

Number of mipmaps

ImageData* m_pkMipMaps [inherited]
 

Mipmaps


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:13 2004 for NeoEngine by doxygen 1.3.5