RE_OGLTexture Class Reference

#include <RE_OGLTexture.h>

Inheritance diagram for RE_OGLTexture:

RE_OGLTexture1D RE_OGLTextureBase2D RE_OGLTextureBase3D RE_OGLTexture1DArray RE_OGLTexture2D RE_OGLTextureCube RE_OGLTextureRectangle RE_OGLTexture2DArray RE_OGLTexture3D

List of all members.

Public Member Functions

 RE_OGLTexture ()
virtual ~RE_OGLTexture ()
virtual const char * className () const
virtual RE_TextureDimension getTextureType () const =0
virtual bool hasTextureSupport (RE_Render *r)
virtual bool hasMipMapSupport (RE_Render *)
virtual int getMaxTextureSize (RE_Render *r)=0
virtual int getMaxTextureIndex (RE_Render *r)
bool hasAutoCompression (RE_Render *r)
virtual bool isValid () const
RE_TextureID getID () const
virtual void free (RE_Render *r)
void assignToUnit (RE_Render *r, int texunit, RE_TextureMode mode=RE_TEXTURE_UNKNOWN)
void setFormat (RE_GPUType data, int vectorsize)
RE_GPUType getFormatType () const
int getFormatSize () const
void setCompression (RE_TextureCompress comp, bool auto_compress)
RE_TextureCompress getCompression () const
bool getAutoCompression () const
void setResolution (int w, int h=1, int depth=1)
int getWidth () const
int getHeight () const
int getDepth () const
int getGLWidth () const
int getGLHeight () const
int getGLDepth () const
void setMipMap (bool m, bool autogen=true)
bool getMipMap () const
bool getMipMapAutoGenerate () const
virtual void setTexture (RE_Render *r, const void *data, int level=0, int index=-1)=0
int64 getSizeBytes () const
int64 getScanBytes () const
virtual void setSubTexture (RE_Render *r, void *data, int level, int xoffset, int xsize, int yoffset=0, int ysize=1, int zoffset=0, int zsize=1)=0
virtual void getTexture (RE_Render *r, void *data, int level=0, int index=-1)
void setMinFilter (RE_Render *r, RE_TexFiltType t)
RE_TexFiltType getMinFilter () const
void setMagFilter (RE_Render *r, RE_TexFiltType t)
RE_TexFiltType getMagFilter () const
void setTextureWrap (RE_Render *r, bool clamp_x, bool clamp_y=true, bool clamp_z=true)
bool getWrapX () const
bool getWrapY () const
bool getWrapZ () const

Protected Member Functions

void deleteObject (RE_Render *r)
void adjustPow2 (int &w, int &h, int &d)
void setupTextureParameters (RE_Render *r)
void validate ()
virtual int getGLType () const =0
virtual int getGLTypeBinding () const =0
virtual void buildMipMaps (const void *data)=0
void pushPixelAlignment (bool write, int &pixel)
void popPixelAlignment (bool write, int pixel)
bool createTextureID ()
void * compressTexData (const void *src, int w, int h)
void determineCompressionInternal ()

Protected Attributes

RE_TextureID myID
int myGLType
int myGLFormat
int myGLInternal
int myGLWidth
int myGLHeight
int myGLDepth


Detailed Description

Definition at line 31 of file RE_OGLTexture.h.


Constructor & Destructor Documentation

RE_OGLTexture::RE_OGLTexture (  ) 

virtual RE_OGLTexture::~RE_OGLTexture (  )  [virtual]


Member Function Documentation

void RE_OGLTexture::adjustPow2 ( int &  w,
int &  h,
int &  d 
) [protected]

void RE_OGLTexture::assignToUnit ( RE_Render r,
int  texunit,
RE_TextureMode  mode = RE_TEXTURE_UNKNOWN 
)

virtual void RE_OGLTexture::buildMipMaps ( const void *  data  )  [protected, pure virtual]

const char * RE_OGLTexture::className ( void   )  const [inline, virtual]

void* RE_OGLTexture::compressTexData ( const void *  src,
int  w,
int  h 
) [protected]

bool RE_OGLTexture::createTextureID (  )  [protected]

void RE_OGLTexture::deleteObject ( RE_Render r  )  [protected]

void RE_OGLTexture::determineCompressionInternal (  )  [protected]

virtual void RE_OGLTexture::free ( RE_Render r  )  [virtual]

Reimplemented in RE_OGLTextureCube.

bool RE_OGLTexture::getAutoCompression (  )  const [inline]

Definition at line 288 of file RE_OGLTexture.h.

RE_TextureCompress RE_OGLTexture::getCompression (  )  const [inline]

Definition at line 282 of file RE_OGLTexture.h.

int RE_OGLTexture::getDepth (  )  const [inline]

Definition at line 258 of file RE_OGLTexture.h.

int RE_OGLTexture::getFormatSize (  )  const [inline]

Definition at line 240 of file RE_OGLTexture.h.

RE_GPUType RE_OGLTexture::getFormatType (  )  const [inline]

Definition at line 234 of file RE_OGLTexture.h.

int RE_OGLTexture::getGLDepth (  )  const [inline]

Definition at line 276 of file RE_OGLTexture.h.

int RE_OGLTexture::getGLHeight (  )  const [inline]

Definition at line 270 of file RE_OGLTexture.h.

virtual int RE_OGLTexture::getGLType (  )  const [protected, pure virtual]

virtual int RE_OGLTexture::getGLTypeBinding (  )  const [protected, pure virtual]

int RE_OGLTexture::getGLWidth (  )  const [inline]

Definition at line 264 of file RE_OGLTexture.h.

int RE_OGLTexture::getHeight (  )  const [inline]

Definition at line 252 of file RE_OGLTexture.h.

RE_TextureID RE_OGLTexture::getID (  )  const [inline]

Definition at line 228 of file RE_OGLTexture.h.

RE_TexFiltType RE_OGLTexture::getMagFilter (  )  const [inline]

Definition at line 318 of file RE_OGLTexture.h.

int RE_OGLTexture::getMaxTextureIndex ( RE_Render r  )  [inline, virtual]

Reimplemented in RE_OGLTexture1DArray, RE_OGLTexture2DArray, and RE_OGLTextureCube.

Definition at line 360 of file RE_OGLTexture.h.

virtual int RE_OGLTexture::getMaxTextureSize ( RE_Render r  )  [pure virtual]

RE_TexFiltType RE_OGLTexture::getMinFilter (  )  const [inline]

Definition at line 312 of file RE_OGLTexture.h.

bool RE_OGLTexture::getMipMap (  )  const [inline]

Definition at line 300 of file RE_OGLTexture.h.

bool RE_OGLTexture::getMipMapAutoGenerate (  )  const [inline]

Definition at line 306 of file RE_OGLTexture.h.

int64 RE_OGLTexture::getScanBytes (  )  const

int64 RE_OGLTexture::getSizeBytes (  )  const

virtual void RE_OGLTexture::getTexture ( RE_Render r,
void *  data,
int  level = 0,
int  index = -1 
) [virtual]

Reimplemented in RE_OGLTextureCube.

virtual RE_TextureDimension RE_OGLTexture::getTextureType (  )  const [pure virtual]

int RE_OGLTexture::getWidth (  )  const [inline]

Definition at line 246 of file RE_OGLTexture.h.

bool RE_OGLTexture::getWrapX (  )  const [inline]

Definition at line 324 of file RE_OGLTexture.h.

bool RE_OGLTexture::getWrapY (  )  const [inline]

Definition at line 330 of file RE_OGLTexture.h.

bool RE_OGLTexture::getWrapZ (  )  const [inline]

Definition at line 336 of file RE_OGLTexture.h.

bool RE_OGLTexture::hasAutoCompression ( RE_Render r  ) 

bool RE_OGLTexture::hasMipMapSupport ( RE_Render  )  [inline, virtual]

Reimplemented in RE_OGLTextureRectangle.

Definition at line 294 of file RE_OGLTexture.h.

bool RE_OGLTexture::hasTextureSupport ( RE_Render r  )  [inline, virtual]

bool RE_OGLTexture::isValid ( void   )  const [inline, virtual]

Reimplemented in RE_OGLTextureCube.

Definition at line 222 of file RE_OGLTexture.h.

void RE_OGLTexture::popPixelAlignment ( bool  write,
int  pixel 
) [protected]

void RE_OGLTexture::pushPixelAlignment ( bool  write,
int &  pixel 
) [protected]

void RE_OGLTexture::setCompression ( RE_TextureCompress  comp,
bool  auto_compress 
)

void RE_OGLTexture::setFormat ( RE_GPUType  data,
int  vectorsize 
)

void RE_OGLTexture::setMagFilter ( RE_Render r,
RE_TexFiltType  t 
)

void RE_OGLTexture::setMinFilter ( RE_Render r,
RE_TexFiltType  t 
)

void RE_OGLTexture::setMipMap ( bool  m,
bool  autogen = true 
)

void RE_OGLTexture::setResolution ( int  w,
int  h = 1,
int  depth = 1 
)

virtual void RE_OGLTexture::setSubTexture ( RE_Render r,
void *  data,
int  level,
int  xoffset,
int  xsize,
int  yoffset = 0,
int  ysize = 1,
int  zoffset = 0,
int  zsize = 1 
) [pure virtual]

virtual void RE_OGLTexture::setTexture ( RE_Render r,
const void *  data,
int  level = 0,
int  index = -1 
) [pure virtual]

void RE_OGLTexture::setTextureWrap ( RE_Render r,
bool  clamp_x,
bool  clamp_y = true,
bool  clamp_z = true 
)

void RE_OGLTexture::setupTextureParameters ( RE_Render r  )  [protected]

void RE_OGLTexture::validate ( void   )  [inline, protected]

Definition at line 354 of file RE_OGLTexture.h.


Member Data Documentation

int RE_OGLTexture::myGLDepth [protected]

Definition at line 198 of file RE_OGLTexture.h.

int RE_OGLTexture::myGLFormat [protected]

Definition at line 194 of file RE_OGLTexture.h.

int RE_OGLTexture::myGLHeight [protected]

Definition at line 197 of file RE_OGLTexture.h.

int RE_OGLTexture::myGLInternal [protected]

Definition at line 195 of file RE_OGLTexture.h.

int RE_OGLTexture::myGLType [protected]

Definition at line 193 of file RE_OGLTexture.h.

int RE_OGLTexture::myGLWidth [protected]

Definition at line 196 of file RE_OGLTexture.h.

Definition at line 192 of file RE_OGLTexture.h.


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

Generated on Fri May 25 00:10:36 2012 for HDK by  doxygen 1.5.9