xoreos  0.0.5
Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Graphics::TXI Class Reference

Texture information. More...

#include <txi.h>

Collaboration diagram for Graphics::TXI:
Collaboration graph
[legend]

Classes

struct  Coords
 Coordinates. More...
 
struct  Features
 Texture features. More...
 

Public Types

enum  Blending { kBlendingDefault = 0, kBlendingAdditive = 1, kBlendingPunchThrough = 2 }
 Blending type. More...
 

Public Member Functions

 TXI ()
 
 TXI (Common::SeekableReadStream &stream)
 
 ~TXI ()
 
void load (Common::SeekableReadStream &stream)
 
bool empty () const
 
const FeaturesgetFeatures () const
 
FeaturesgetFeatures ()
 

Private Types

enum  Mode { kModeNormal, kModeUpperLeftCoords, kModeLowerRightCoords }
 

Private Member Functions

Blending parseBlending (const char *str)
 

Private Attributes

bool _empty
 
Mode _mode
 
Features _features
 
uint32 _curCoords
 

Detailed Description

Texture information.

Definition at line 40 of file txi.h.

Member Enumeration Documentation

◆ Blending

Blending type.

Enumerator
kBlendingDefault 
kBlendingAdditive 
kBlendingPunchThrough 

Definition at line 43 of file txi.h.

◆ Mode

enum Graphics::TXI::Mode
private
Enumerator
kModeNormal 
kModeUpperLeftCoords 
kModeLowerRightCoords 

Definition at line 135 of file txi.h.

Constructor & Destructor Documentation

◆ TXI() [1/2]

Graphics::TXI::TXI ( )

Definition at line 98 of file txi.cpp.

◆ TXI() [2/2]

Graphics::TXI::TXI ( Common::SeekableReadStream stream)

Definition at line 101 of file txi.cpp.

References load().

Here is the call graph for this function:

◆ ~TXI()

Graphics::TXI::~TXI ( )

Definition at line 105 of file txi.cpp.

Member Function Documentation

◆ empty()

bool Graphics::TXI::empty ( ) const

Definition at line 108 of file txi.cpp.

References _empty.

◆ getFeatures() [1/2]

const TXI::Features & Graphics::TXI::getFeatures ( ) const

◆ getFeatures() [2/2]

TXI::Features & Graphics::TXI::getFeatures ( )

Definition at line 287 of file txi.cpp.

References _features.

◆ load()

void Graphics::TXI::load ( Common::SeekableReadStream stream)

Definition at line 112 of file txi.cpp.

References _curCoords, _empty, _features, _mode, Graphics::TXI::Features::alphaMean, Graphics::TXI::Features::arturoHeight, Graphics::TXI::Features::arturoWidth, Graphics::TXI::Features::baselineHeight, Graphics::TXI::Features::blending, Graphics::TXI::Features::bumpMapScaling, Graphics::TXI::Features::bumpMapTexture, Graphics::TXI::Features::bumpyShinyTexture, Common::UString::c_str(), Graphics::TXI::Features::canDownsample, Graphics::TXI::Features::caretIndent, Graphics::TXI::Features::channelScale, Graphics::TXI::Features::channelTranslate, Graphics::TXI::Features::clamp, Graphics::TXI::Features::codepage, Graphics::TXI::Features::cols, Graphics::TXI::Features::compressTexture, Graphics::TXI::Features::controllerScript, Graphics::TXI::Features::cube, Graphics::TXI::Features::dbMapping, Graphics::TXI::Features::decal, Graphics::TXI::Features::defaultBPP, Graphics::TXI::Features::defaultHeight, Graphics::TXI::Features::defaultWidth, Graphics::TXI::Features::distort, Graphics::TXI::Features::distortAngle, Graphics::TXI::Features::distortionAmplitude, Graphics::TXI::Features::downsampleFactor, Graphics::TXI::Features::downsampleMax, Graphics::TXI::Features::downsampleMin, Common::UString::empty(), Graphics::TXI::Features::envMapTexture, Common::ReadStream::eos(), Graphics::TXI::Features::fileRange, Graphics::TXI::Features::filter, Graphics::TXI::Features::fontHeight, Graphics::TXI::Features::fontWidth, Graphics::TXI::Features::fps, Graphics::TXI::Features::isBumpMap, Graphics::TXI::Features::isDoubleByte, Graphics::TXI::Features::isLightMap, Common::kEncodingASCII, kModeLowerRightCoords, kModeNormal, kModeUpperLeftCoords, Graphics::TXI::Features::lowerRightCoords, Graphics::TXI::Features::maxSizeHQ, Graphics::TXI::Features::maxSizeLQ, Graphics::TXI::Features::minSizeHQ, Graphics::TXI::Features::minSizeLQ, Graphics::TXI::Features::mipMap, Graphics::TXI::Features::numChars, Graphics::TXI::Features::numCharsPerSheet, Graphics::TXI::Features::numX, Graphics::TXI::Features::numY, Graphics::TXI::Features::onDemand, parseBlending(), Common::parseString(), Graphics::parseTXICommand(), Graphics::TXI::Features::priority, Graphics::TXI::Features::procedureType, Common::readStringLine(), Graphics::TXI::Features::rows, Graphics::TXI::Features::spacingB, Graphics::TXI::Features::spacingR, Graphics::TXI::Features::speed, Graphics::TXI::Features::temporary, Graphics::TXI::Features::textureWidth, Graphics::TXICommandAlphaMean, Graphics::TXICommandArturoHeight, Graphics::TXICommandArturoWidth, Graphics::TXICommandBaselineHeight, Graphics::TXICommandBlending, Graphics::TXICommandBumpMapScaling, Graphics::TXICommandBumpMapTexture, Graphics::TXICommandBumpyShinyTexture, Graphics::TXICommandCanDownsample, Graphics::TXICommandCaretIndent, Graphics::TXICommandChannelScale, Graphics::TXICommandChannelTranslate, Graphics::TXICommandClamp, Graphics::TXICommandCodepage, Graphics::TXICommandCols, Graphics::TXICommandCompressTexture, Graphics::TXICommandControllerScript, Graphics::TXICommandCube, Graphics::TXICommandDBMapping, Graphics::TXICommandDecal, Graphics::TXICommandDefaultBPP, Graphics::TXICommandDefaultHeight, Graphics::TXICommandDefaultWidth, Graphics::TXICommandDistort, Graphics::TXICommandDistortAngle, Graphics::TXICommandDistortionAmplitude, Graphics::TXICommandDownsampleFactor, Graphics::TXICommandDownsampleMax, Graphics::TXICommandDownsampleMin, Graphics::TXICommandEnvMapTexture, Graphics::TXICommandFileRange, Graphics::TXICommandFilter, Graphics::TXICommandFontHeight, Graphics::TXICommandFontWidth, Graphics::TXICommandFPS, Graphics::TXICommandIsBumpMap, Graphics::TXICommandIsDoubleByte, Graphics::TXICommandIsLightMap, Graphics::TXICommandLowerRightCoords, Graphics::TXICommandMaxSizeHQ, Graphics::TXICommandMaxSizeLQ, Graphics::TXICommandMinSizeHQ, Graphics::TXICommandMinSizeLQ, Graphics::TXICommandMipMap, Graphics::TXICommandNumChars, Graphics::TXICommandNumCharsPerSheet, Graphics::TXICommandNumX, Graphics::TXICommandNumY, Graphics::TXICommandOnDemand, Graphics::TXICommandPriority, Graphics::TXICommandProcedureType, Graphics::TXICommandRows, Graphics::TXICommandSpacingB, Graphics::TXICommandSpacingR, Graphics::TXICommandSpeed, Graphics::TXICommandTemporary, Graphics::TXICommandTextureWidth, Graphics::TXICommandUnique, Graphics::TXICommandUpperLeftCoords, Graphics::TXICommandWaterHeight, Graphics::TXICommandWaterWidth, Graphics::TXICommandXBoxDownsample, Graphics::TXI::Features::unique, Graphics::TXI::Features::upperLeftCoords, Graphics::TXI::Features::waterHeight, Graphics::TXI::Features::waterWidth, and Graphics::TXI::Features::xBoxDownsample.

Referenced by Graphics::TPC::readTXI(), Graphics::TXB::readTXI(), and TXI().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseBlending()

TXI::Blending Graphics::TXI::parseBlending ( const char *  str)
private

Definition at line 291 of file txi.cpp.

References ARRAYSIZE, kBlendingDefault, and kBlendings.

Referenced by load().

Here is the caller graph for this function:

Member Data Documentation

◆ _curCoords

uint32 Graphics::TXI::_curCoords
private

Definition at line 147 of file txi.h.

Referenced by load().

◆ _empty

bool Graphics::TXI::_empty
private

Definition at line 141 of file txi.h.

Referenced by empty(), and load().

◆ _features

Features Graphics::TXI::_features
private

Definition at line 145 of file txi.h.

Referenced by getFeatures(), and load().

◆ _mode

Mode Graphics::TXI::_mode
private

Definition at line 143 of file txi.h.

Referenced by load().


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