|
Blender V2.27
|
DXT1 block. More...
#include <BlockDXT.h>
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 | |
| }; | |
DXT1 block.
***** 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.
| uint BlockDXT1::evaluatePalette | ( | Color32 | color_array[4] | ) | const |
***** 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.
1.7.3