doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
idImage Class Reference

#include <Image.h>

Public Member Functions

 idImage ()
 
void Bind ()
 
void BindFragment ()
 
void PurgeImage ()
 
void GenerateImage (const byte *pic, int width, int height, textureFilter_t filter, bool allowDownSize, textureRepeat_t repeat, textureDepth_t depth)
 
void Generate3DImage (const byte *pic, int width, int height, int depth, textureFilter_t filter, bool allowDownSize, textureRepeat_t repeat, textureDepth_t minDepth)
 
void GenerateCubeImage (const byte *pic[6], int size, textureFilter_t filter, bool allowDownSize, textureDepth_t depth)
 
void CopyFramebuffer (int x, int y, int width, int height, bool useOversizedBuffer)
 
void CopyDepthbuffer (int x, int y, int width, int height)
 
void UploadScratch (const byte *pic, int width, int height)
 
void SetClassification (int tag)
 
int StorageSize () const
 
void Print () const
 
void Reload (bool checkPrecompressed, bool force)
 
void AddReference ()
 
void GetDownsize (int &scaled_width, int &scaled_height) const
 
void MakeDefault ()
 
void SetImageFilterAndRepeat () const
 
bool ShouldImageBePartialCached ()
 
void WritePrecompressedImage ()
 
bool CheckPrecompressedImage (bool fullLoad)
 
void UploadPrecompressedImage (byte *data, int len)
 
void ActuallyLoadImage (bool checkForPrecompressed, bool fromBackEnd)
 
void StartBackgroundImageLoad ()
 
int BitsForInternalFormat (int internalFormat) const
 
void UploadCompressedNormalMap (int width, int height, const byte *rgba, int mipLevel)
 
GLenum SelectInternalFormat (const byte **dataPtrs, int numDataPtrs, int width, int height, textureDepth_t minimumDepth, bool *monochromeResult) const
 
void ImageProgramStringToCompressedFileName (const char *imageProg, char *fileName) const
 
int NumLevelsForImageSize (int width, int height) const
 

Public Attributes

GLuint texnum
 
textureType_t type
 
int frameUsed
 
int bindCount
 
idImagepartialImage
 
bool isPartialImage
 
bool backgroundLoadInProgress
 
backgroundDownload_t bgl
 
idImagebglNext
 
idStr imgName
 
void(* generatorFunction )(idImage *image)
 
bool allowDownSize
 
textureFilter_t filter
 
textureRepeat_t repeat
 
textureDepth_t depth
 
cubeFiles_t cubeFiles
 
bool referencedOutsideLevelLoad
 
bool levelLoadReferenced
 
bool precompressedFile
 
bool defaulted
 
bool isMonochrome
 
ID_TIME_T timestamp
 
int imageHash
 
int classification
 
int uploadWidth
 
int uploadHeight
 
int uploadDepth
 
int internalFormat
 
idImagecacheUsagePrev
 
idImagecacheUsageNext
 
idImagehashNext
 
int refCount
 

Static Public Attributes

static const int TEXTURE_NOT_LOADED = -1
 

Detailed Description

Definition at line 146 of file Image.h.

Constructor & Destructor Documentation

ID_INLINE idImage::idImage ( )

Definition at line 259 of file Image.h.

Member Function Documentation

void idImage::ActuallyLoadImage ( bool  checkForPrecompressed,
bool  fromBackEnd 
)

Definition at line 1576 of file Image_load.cpp.

void idImage::AddReference ( )
inline

Definition at line 194 of file Image.h.

void idImage::Bind ( )

Definition at line 1697 of file Image_load.cpp.

void idImage::BindFragment ( )

Definition at line 1793 of file Image_load.cpp.

int idImage::BitsForInternalFormat ( int  internalFormat) const

Definition at line 60 of file Image_load.cpp.

bool idImage::CheckPrecompressedImage ( bool  fullLoad)

Definition at line 1336 of file Image_load.cpp.

void idImage::CopyDepthbuffer ( int  x,
int  y,
int  width,
int  height 
)

Definition at line 1927 of file Image_load.cpp.

void idImage::CopyFramebuffer ( int  x,
int  y,
int  width,
int  height,
bool  useOversizedBuffer 
)

#

Definition at line 1853 of file Image_load.cpp.

void idImage::Generate3DImage ( const byte pic,
int  width,
int  height,
int  depth,
textureFilter_t  filter,
bool  allowDownSize,
textureRepeat_t  repeat,
textureDepth_t  minDepth 
)

Definition at line 730 of file Image_load.cpp.

void idImage::GenerateCubeImage ( const byte pic[6],
int  size,
textureFilter_t  filter,
bool  allowDownSize,
textureDepth_t  depth 
)

Definition at line 866 of file Image_load.cpp.

void idImage::GenerateImage ( const byte pic,
int  width,
int  height,
textureFilter_t  filter,
bool  allowDownSize,
textureRepeat_t  repeat,
textureDepth_t  depth 
)

Definition at line 509 of file Image_load.cpp.

void idImage::GetDownsize ( int scaled_width,
int scaled_height 
) const

Definition at line 428 of file Image_load.cpp.

void idImage::ImageProgramStringToCompressedFileName ( const char *  imageProg,
char *  fileName 
) const

Definition at line 982 of file Image_load.cpp.

void idImage::MakeDefault ( void  )

Definition at line 252 of file Image_init.cpp.

int idImage::NumLevelsForImageSize ( int  width,
int  height 
) const

Definition at line 1021 of file Image_load.cpp.

void idImage::Print ( void  ) const

Definition at line 2082 of file Image_load.cpp.

void idImage::PurgeImage ( )

Definition at line 1673 of file Image_load.cpp.

void idImage::Reload ( bool  checkPrecompressed,
bool  force 
)

Definition at line 1012 of file Image_init.cpp.

GLenum idImage::SelectInternalFormat ( const byte **  dataPtrs,
int  numDataPtrs,
int  width,
int  height,
textureDepth_t  minimumDepth,
bool monochromeResult 
) const

Definition at line 207 of file Image_load.cpp.

void idImage::SetClassification ( int  tag)

Definition at line 2038 of file Image_load.cpp.

void idImage::SetImageFilterAndRepeat ( ) const

Definition at line 370 of file Image_load.cpp.

bool idImage::ShouldImageBePartialCached ( )

Definition at line 1277 of file Image_load.cpp.

void idImage::StartBackgroundImageLoad ( )

Definition at line 1775 of file Image_init.cpp.

int idImage::StorageSize ( ) const

Definition at line 2047 of file Image_load.cpp.

void idImage::UploadCompressedNormalMap ( int  width,
int  height,
const byte rgba,
int  mipLevel 
)

Definition at line 113 of file Image_load.cpp.

void idImage::UploadPrecompressedImage ( byte data,
int  len 
)

Definition at line 1436 of file Image_load.cpp.

void idImage::UploadScratch ( const byte pic,
int  width,
int  height 
)

Definition at line 1967 of file Image_load.cpp.

void idImage::WritePrecompressedImage ( )

Definition at line 1041 of file Image_load.cpp.

Member Data Documentation

bool idImage::allowDownSize

Definition at line 231 of file Image.h.

bool idImage::backgroundLoadInProgress

Definition at line 224 of file Image.h.

backgroundDownload_t idImage::bgl

Definition at line 225 of file Image.h.

idImage* idImage::bglNext

Definition at line 226 of file Image.h.

int idImage::bindCount

Definition at line 219 of file Image.h.

idImage * idImage::cacheUsageNext

Definition at line 252 of file Image.h.

idImage* idImage::cacheUsagePrev

Definition at line 252 of file Image.h.

int idImage::classification

Definition at line 246 of file Image.h.

cubeFiles_t idImage::cubeFiles

Definition at line 235 of file Image.h.

bool idImage::defaulted

Definition at line 240 of file Image.h.

textureDepth_t idImage::depth

Definition at line 234 of file Image.h.

textureFilter_t idImage::filter

Definition at line 232 of file Image.h.

int idImage::frameUsed

Definition at line 218 of file Image.h.

void(* idImage::generatorFunction)(idImage *image)

Definition at line 230 of file Image.h.

idImage* idImage::hashNext

Definition at line 254 of file Image.h.

int idImage::imageHash

Definition at line 244 of file Image.h.

idStr idImage::imgName

Definition at line 229 of file Image.h.

int idImage::internalFormat

Definition at line 250 of file Image.h.

bool idImage::isMonochrome

Definition at line 241 of file Image.h.

bool idImage::isPartialImage

Definition at line 223 of file Image.h.

bool idImage::levelLoadReferenced

Definition at line 238 of file Image.h.

idImage* idImage::partialImage

Definition at line 222 of file Image.h.

bool idImage::precompressedFile

Definition at line 239 of file Image.h.

int idImage::refCount

Definition at line 256 of file Image.h.

bool idImage::referencedOutsideLevelLoad

Definition at line 237 of file Image.h.

textureRepeat_t idImage::repeat

Definition at line 233 of file Image.h.

GLuint idImage::texnum

Definition at line 216 of file Image.h.

const int idImage::TEXTURE_NOT_LOADED = -1
static

Definition at line 215 of file Image.h.

ID_TIME_T idImage::timestamp

Definition at line 242 of file Image.h.

textureType_t idImage::type

Definition at line 217 of file Image.h.

int idImage::uploadDepth

Definition at line 249 of file Image.h.

int idImage::uploadHeight

Definition at line 249 of file Image.h.

int idImage::uploadWidth

Definition at line 249 of file Image.h.


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