xoreos  0.0.5
Namespaces | Functions | Variables
txb.cpp File Reference

TXB (another one of BioWare's own texture formats) loading. More...

#include "src/common/scopedptr.h"
#include "src/common/util.h"
#include "src/common/error.h"
#include "src/common/memreadstream.h"
#include "src/graphics/images/txb.h"
#include "src/graphics/images/util.h"
Include dependency graph for txb.cpp:

Go to the source code of this file.

Namespaces

 Graphics
 

Functions

static uint32 Graphics::getTXBDataSize (byte encoding, PixelFormatRaw format, int32 width, int32 height)
 

Variables

static const byte kEncodingBGRA = 0x04
 
static const byte kEncodingGray = 0x09
 
static const byte kEncodingDXT1 = 0x0A
 
static const byte kEncodingDXT5 = 0x0C
 

Detailed Description

TXB (another one of BioWare's own texture formats) loading.

Definition in file txb.cpp.

Variable Documentation

◆ kEncodingBGRA

const byte kEncodingBGRA = 0x04
static

◆ kEncodingDXT1

const byte kEncodingDXT1 = 0x0A
static

Definition at line 35 of file txb.cpp.

Referenced by Graphics::getTXBDataSize(), and Graphics::TXB::readHeader().

◆ kEncodingDXT5

const byte kEncodingDXT5 = 0x0C
static

Definition at line 36 of file txb.cpp.

Referenced by Graphics::getTXBDataSize(), and Graphics::TXB::readHeader().

◆ kEncodingGray

const byte kEncodingGray = 0x09
static