Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Microsoft.Xna.Framework.Graphics.DxtDecoder Class Reference

Public Member Functions

 DxtDecoder (int width, int height, SurfaceFormat format)
 
Color[] Decode (byte[] source)
 

Properties

int PackedDataSize [get]
 

Private Member Functions

void DecodeRgbBlock (byte[] source, int sourceOffset, Color[] result, int resultOffset, bool isDxt1)
 
void DecodeExplicitAlphaBlock (byte[] source, int sourceOffset, Color[] result, int resultOffset)
 
void DecodeInterpolatedAlphaBlock (byte[] source, int sourceOffset, Color[] result, int resultOffset)
 

Static Private Member Functions

static ushort Read16 (byte[] source, int offset)
 
static uint Read32 (byte[] source, int offset)
 
static ulong Read48 (byte[] source, int offset)
 

Private Attributes

int width
 
int height
 
SurfaceFormat format
 
Color[] colorPalette = new Color[4]
 
byte[] alphaPalette = new byte[8]
 

Static Private Attributes

const int EndianOffset0 = 0
 
const int EndianOffset1 = 1
 

Detailed Description

Definition at line 6 of file DxtDecoder.cs.


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