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

CRawImage Class Reference

#include <Utility.h>

Inheritance diagram for CRawImage:

CSunRawImage List of all members.

Public Member Functions

 CRawImage (const char *rawFilename, const char *actFilename=NULL, const char *opaFilename=NULL)
 CRawImage (int width, int height, const char *rawFilename, const char *actFilename=NULL, const char *opaFilename=NULL)
 CRawImage (const CRawImage &src)
 ~CRawImage (void)
void Init (void)
void Load (const char *rawFilename, const char *actFilename, const char *opaFilename=NULL)
int GetWidth (void)
int GetHeight (void)
void SetName (const char *name)
void CreateTransferMaps (void)
GLubyte * GetRGBImageData (void)
GLubyte * GetRGBAImageData (void)
void Copy (const CRawImage &src)
void CopyMasked (const CRawImage *src, const CMaskImage *mask)
void Merge (const CRawImage *raw, const CMaskImage *mask, int actOffset)
void MergeTransitions (const CRawImage *bRaw, const CMaskImage *bMask, const CRawImage *xRaw, const CMaskImage *xMask, const CRawImage *yRaw, const CMaskImage *yMask)
GLuint GetTexture (bool mipmap)
void FreeTexture (void)

Protected Attributes

char name [64]
int width
int height
GLubyte * actdata
GLubyte * rawdata
GLubyte * opadata
GLuint texid
GLfloat * xferRed
GLfloat * xferGreen
GLfloat * xferBlue
GLfloat * xferAlpha

Detailed Description

Definition at line 353 of file Utility.h.


Constructor & Destructor Documentation

CRawImage::CRawImage const char *  rawFilename,
const char *  actFilename = NULL,
const char *  opaFilename = NULL
 

Definition at line 125 of file RawImage.cpp.

References globals, gtfo, height, Init(), Load(), name, pclose(), SGlobals::pfs, popen(), PODFILE::size, and width.

CRawImage::CRawImage int  width,
int  height,
const char *  rawFilename,
const char *  actFilename = NULL,
const char *  opaFilename = NULL
 

Definition at line 155 of file RawImage.cpp.

References Init(), Load(), and name.

CRawImage::CRawImage const CRawImage src  ) 
 

Definition at line 254 of file RawImage.cpp.

References Copy(), and Init().

CRawImage::~CRawImage void   ) 
 

Definition at line 260 of file RawImage.cpp.

References actdata, opadata, rawdata, xferAlpha, xferBlue, xferGreen, and xferRed.


Member Function Documentation

void CRawImage::Copy const CRawImage src  ) 
 

Definition at line 286 of file RawImage.cpp.

References actdata, height, name, opadata, rawdata, and width.

Referenced by CRawImage().

void CRawImage::CopyMasked const CRawImage src,
const CMaskImage mask
 

Todo:
Check for mismatched sizes

Definition at line 379 of file RawImage.cpp.

void CRawImage::CreateTransferMaps void   ) 
 

Definition at line 316 of file RawImage.cpp.

References actdata, opadata, xferAlpha, xferBlue, xferGreen, and xferRed.

Referenced by GetTexture().

void CRawImage::FreeTexture void   ) 
 

Definition at line 583 of file RawImage.cpp.

References texid.

Referenced by CMoonImage::Repaint().

int CRawImage::GetHeight void   ) 
 

Definition at line 276 of file RawImage.cpp.

References height.

GLubyte * CRawImage::GetRGBAImageData void   ) 
 

Definition at line 430 of file RawImage.cpp.

References actdata, height, opadata, rawdata, and width.

GLubyte * CRawImage::GetRGBImageData void   ) 
 

Definition at line 403 of file RawImage.cpp.

References actdata, height, rawdata, and width.

GLuint CRawImage::GetTexture bool  mipmap  ) 
 

Definition at line 521 of file RawImage.cpp.

References CreateTransferMaps(), gtfo, height, name, nTextures, rawdata, texid, width, xferAlpha, xferBlue, xferGreen, and xferRed.

Referenced by CModelSMF::CModelSMF(), CDetailTile::LoadDefaultTexture(), and CMoonImage::Repaint().

int CRawImage::GetWidth void   ) 
 

Definition at line 271 of file RawImage.cpp.

References width.

void CRawImage::Init void   ) 
 

Definition at line 173 of file RawImage.cpp.

References actdata, height, opadata, rawdata, texid, width, xferAlpha, xferBlue, xferGreen, and xferRed.

Referenced by CRawImage().

void CRawImage::Load const char *  rawFilename,
const char *  actFilename,
const char *  opaFilename = NULL
 

Definition at line 186 of file RawImage.cpp.

References actdata, globals, gtfo, height, opadata, pclose(), SGlobals::pfs, popen(), pread(), rawdata, and width.

Referenced by CRawImage().

void CRawImage::Merge const CRawImage raw,
const CMaskImage mask,
int  actOffset
 

Definition at line 340 of file RawImage.cpp.

References actdata, height, rawdata, CMaskImage::rawdata, and width.

Referenced by MergeTransitions().

void CRawImage::MergeTransitions const CRawImage bRaw,
const CMaskImage bMask,
const CRawImage xRaw,
const CMaskImage xMask,
const CRawImage yRaw,
const CMaskImage yMask
 

Definition at line 365 of file RawImage.cpp.

References Merge().

Referenced by CDefaultTextureDatabase::GetCompositeTexture().

void CRawImage::SetName const char *  name  ) 
 

Definition at line 281 of file RawImage.cpp.

Referenced by CDefaultTextureDatabase::GetCompositeTexture().


Member Data Documentation

GLubyte* CRawImage::actdata [protected]
 

Definition at line 391 of file Utility.h.

Referenced by Copy(), CreateTransferMaps(), GetRGBAImageData(), GetRGBImageData(), Init(), Load(), Merge(), and ~CRawImage().

int CRawImage::height [protected]
 

Definition at line 390 of file Utility.h.

Referenced by Copy(), CRawImage(), GetHeight(), GetRGBAImageData(), GetRGBImageData(), GetTexture(), Init(), Load(), and Merge().

char CRawImage::name[64] [protected]
 

Definition at line 389 of file Utility.h.

Referenced by Copy(), CRawImage(), and GetTexture().

GLubyte* CRawImage::opadata [protected]
 

Definition at line 393 of file Utility.h.

Referenced by Copy(), CreateTransferMaps(), CSunRawImage::CSunRawImage(), GetRGBAImageData(), Init(), Load(), and ~CRawImage().

GLubyte* CRawImage::rawdata [protected]
 

Definition at line 392 of file Utility.h.

Referenced by Copy(), CSunRawImage::CSunRawImage(), GetRGBAImageData(), GetRGBImageData(), GetTexture(), Init(), Load(), Merge(), and ~CRawImage().

GLuint CRawImage::texid [protected]
 

Definition at line 394 of file Utility.h.

Referenced by FreeTexture(), GetTexture(), and Init().

int CRawImage::width [protected]
 

Definition at line 390 of file Utility.h.

Referenced by Copy(), CRawImage(), GetRGBAImageData(), GetRGBImageData(), GetTexture(), GetWidth(), Init(), Load(), and Merge().

GLfloat* CRawImage::xferAlpha [protected]
 

Definition at line 399 of file Utility.h.

Referenced by CreateTransferMaps(), GetTexture(), Init(), and ~CRawImage().

GLfloat* CRawImage::xferBlue [protected]
 

Definition at line 398 of file Utility.h.

Referenced by CreateTransferMaps(), GetTexture(), Init(), and ~CRawImage().

GLfloat* CRawImage::xferGreen [protected]
 

Definition at line 397 of file Utility.h.

Referenced by CreateTransferMaps(), GetTexture(), Init(), and ~CRawImage().

GLfloat* CRawImage::xferRed [protected]
 

Definition at line 396 of file Utility.h.

Referenced by CreateTransferMaps(), GetTexture(), Init(), and ~CRawImage().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen