|
| enum | ImageMode { External,
Local,
Global,
Template
} |
| |
| enum | ImageType {
trpg_RGB8,
trpg_RGBA8,
trpg_INT8,
trpg_INTA8,
trpg_FXT1,
trpg_Filler,
trpg_RGBX,
trpg_Unknown,
trpg_DDS,
trpg_DXT1,
trpg_DXT3,
trpg_DXT5,
trpg_MCM5,
trpg_MCM6R,
trpg_MCM6A,
trpg_MCM7RA,
trpg_MCM7AR
} |
| |
| Enumerator |
|---|
| External |
|
| Local |
|
| Global |
|
| Template |
|
| Enumerator |
|---|
| trpg_RGB8 |
|
| trpg_RGBA8 |
|
| trpg_INT8 |
|
| trpg_INTA8 |
|
| trpg_FXT1 |
|
| trpg_Filler |
|
| trpg_RGBX |
This is not a texture format. It's here to keep the numbering consistent.
|
| trpg_Unknown |
MCM no longer.
|
| trpg_DDS |
|
| trpg_DXT1 |
|
| trpg_DXT3 |
|
| trpg_DXT5 |
|
| trpg_MCM5 |
This is a bit ugly, but we can't change the size of the texture record without breaking existing readers. So there will be multiple MCM types to indicate the number of bands and the nature of the extra channels, if any.
|
| trpg_MCM6R |
|
| trpg_MCM6A |
|
| trpg_MCM7RA |
|
| trpg_MCM7AR |
|
| trpgTexture::trpgTexture |
( |
void |
| ) |
|
| virtual trpgTexture::~trpgTexture |
( |
void |
| ) |
|
|
overridevirtual |
| void trpgTexture::SetName |
( |
const char * |
| ) |
|
| bool trpgTexture::GetName |
( |
char * |
retStr, |
|
|
int |
strLen |
|
) |
| const |
| void trpgTexture::SetNumTile |
( |
int |
| ) |
|
| void trpgTexture::AddTile |
( |
void |
| ) |
|
| bool trpgTexture::GetNumTile |
( |
int & |
| ) |
const |
Retrieve the image mode for this texture. See ImageMode for details.
Retrieve the image type for this texture. See ImageType for details. This method is only used if ImageMode is Local or Template.
Retrieve the size of this image. Valid only for Local and Template textures.
Get the location of a Local image.
| bool trpgTexture::GetImageDepth |
( |
int32 & |
depth | ) |
const |
Figure out the image depth from the type.
| bool trpgTexture::GetIsMipmap |
( |
bool & |
| ) |
const |
Determine whether this image (must be Local or Template) has all its mipmaps.
Set the image mode of this texture. Used by writers only.
Set the image type of this texture. See GetImageType for details.
Set the image size of this texture. See GetImageSize for details.
Set the image location (For Local images only)
| void trpgTexture::SetIsMipmap |
( |
bool |
| ) |
|
Set whether or not this is a full set of mipmaps.
| void trpgTexture::SetNumMipmap |
( |
int |
| ) |
|
Set the storage sizes for all mipmap levels void SetStorageSizes(vector<int> &);.
Get the storage sizes for all mipmap levels. bool GetStorageSizes(const vector<int> *) const; Set the number of mipmap levels
| void trpgTexture::SetNumLayer |
( |
int |
| ) |
|
Set the number of layers used in an RGBX image.
| bool trpgTexture::GetNumLayer |
( |
int & |
| ) |
const |
Get the number of layers used in an RGBX image. RGBX images are typically for sensors and contain arbitrary data which is not visual.
| int32 trpgTexture::CalcNumMipmaps |
( |
| ) |
const |
| int32 trpgTexture::CalcTotalSize |
( |
| ) |
const |
Calculate the total size of this texture.
| int32 trpgTexture::MipLevelSize |
( |
int |
miplevel | ) |
|
Returns the size of a given mip level.
| int32 trpgTexture::MipLevelOffset |
( |
int |
miplevel | ) |
|
Returns the offset of the mip level in the whole texture data buffer.
| bool trpgTexture::isValid |
( |
void |
| ) |
const |
| virtual void trpgTexture::Reset |
( |
void |
| ) |
|
|
overridevirtual |
| void trpgTexture::CalcMipLevelSizes |
( |
| ) |
|
|
protected |
calculate the mip level sizes
Mode for this texture. See ImageMode for details.
Type of texture (only valid if ImageMode is Local or Template)
The name really only has meaning for External or Global textures.
| int trpgTexture::useCount |
|
protected |
The size values are used only if this is a Local or Template image.
| bool trpgTexture::isMipmap |
|
protected |
Whether or not there are mipmap levels.
| int trpgTexture::numMipMap |
|
protected |
Number of mipmap levels, 0 if not present.
| int trpgTexture::numLayer |
|
protected |
Number of layers (for RGBX)
| std::vector<int> trpgTexture::storageSize |
|
protected |
Sizes of each level. This is important for compressed textures in particular, which may have random sizes. Used only for Local textures.
| std::vector<int> trpgTexture::levelOffset |
|
protected |
Address is used only for Local textures.
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-2-branch/include/osgdb_vrftxp/trpage_geom.h