Changeset 13041 for OpenSceneGraph/trunk/src/osg/dxtctool.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osg/dxtctool.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/dxtctool.cpp
r12284 r13041 1 1 // dxtctool.cpp: implementation of DXTC Tools functions. 2 // 2 // 3 3 // Copyright (C) 2002 Tanguy Fautré. 4 4 // For conditions of distribution and use, … … 61 61 if (m_Height == 1) 62 62 return true; 63 63 64 64 if (DXT1()) 65 65 VFlip_DXT1(); … … 121 121 const size_t TargetRow = ((m_Height + 3) / 4) - (i + 1); 122 122 BVF_Alpha_DXT3(GetBlock(i, j, BSIZE_DXT3), GetBlock(TargetRow, j, BSIZE_DXT3)); 123 BVF_Color(((dxtc_int8 * ) GetBlock(i, j, BSIZE_DXT3)) + BSIZE_ALPHA_DXT3, 123 BVF_Color(((dxtc_int8 * ) GetBlock(i, j, BSIZE_DXT3)) + BSIZE_ALPHA_DXT3, 124 124 ((dxtc_int8 * ) GetBlock(TargetRow, j, BSIZE_DXT3)) + BSIZE_ALPHA_DXT3); 125 125 } … … 150 150 const size_t TargetRow = ((m_Height + 3) / 4) - (i + 1); 151 151 BVF_Alpha_DXT5(GetBlock(i, j, BSIZE_DXT5), GetBlock(TargetRow, j, BSIZE_DXT5)); 152 BVF_Color(((dxtc_int8 * ) GetBlock(i, j, BSIZE_DXT5)) + BSIZE_ALPHA_DXT5, 152 BVF_Color(((dxtc_int8 * ) GetBlock(i, j, BSIZE_DXT5)) + BSIZE_ALPHA_DXT5, 153 153 ((dxtc_int8 * ) GetBlock(TargetRow, j, BSIZE_DXT5)) + BSIZE_ALPHA_DXT5); 154 154 }
