Logo Search packages:      
Sourcecode: blender version File versions  Download package

BlockDXT1 Struct Reference

#include <BlockDXT.h>

List of all members.


Detailed Description

DXT1 block.

$Id$

***** BEGIN GPL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Contributors: Amorilia (amorilia@gamebox.net)

***** END GPL LICENSE BLOCK *****

Definition at line 64 of file BlockDXT.h.


Public Member Functions

void decodeBlock (ColorBlock *block) const
uint evaluatePalette (Color32 color_array[4]) const
void evaluatePalette3 (Color32 color_array[4]) const
void evaluatePalette4 (Color32 color_array[4]) const
uint evaluatePaletteFast (Color32 color_array[4]) const
void flip2 ()
 Flip half DXT1 block vertically.
void flip4 ()
 Flip DXT1 block vertically.
bool isFourColorMode () const
 Return true if the block uses four color mode, false otherwise.
void setIndices (int *idx)

Public Attributes

union {
   uint   indices
   uint8   row [4]
}; 
Color16 col0
Color16 col1

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

Generated by  Doxygen 1.6.0   Back to index