Blender V2.27
Public Member Functions | Public Attributes

BlockDXT1 Struct Reference

DXT1 block. More...

#include <BlockDXT.h>

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

DXT1 block.

Id:
BlockDXT.h 26841 2010-02-12 13:34:04Z campbellbarton

***** 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Contributors: Amorilia (amorilia@gamebox.net)

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

Definition at line 64 of file BlockDXT.h.


Member Function Documentation

uint BlockDXT1::evaluatePalette ( Color32  color_array[4]) const
Id:
BlockDXT.cpp 26841 2010-02-12 13:34:04Z campbellbarton

***** 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Contributors: Amorilia (amorilia@gamebox.net)

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

Definition at line 64 of file BlockDXT.cpp.


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