HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_VoxelCompress.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_VoxelCompress.h ( UT Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __UT_VoxelCompress__
12 #define __UT_VoxelCompress__
13 
14 #include "UT_API.h"
15 #include <SYS/SYS_Types.h>
16 #include "UT_ValArray.h"
17 #include "UT_VoxelArray.h"
18 
19 /// We provide these functions so we can create file statics
20 /// for the corresponding lists.
32 
34 
36 
37 inline fpreal32 UTgetVoxelDither(int x, int y, int z)
38 {
39  const int DITHERMASK = 15;
40  const int DITHERSIZE = 16;
41 
42  x &= DITHERMASK;
43  y &= DITHERMASK;
44  z &= DITHERMASK;
45 
46  return theDitherMatrix[ ((z*DITHERSIZE) + y)*DITHERSIZE + x ];
47 }
48 
49 
50 #endif
51 
UT_API void UT_RegisterVoxelCompressionMethods()
GLdouble GLdouble GLdouble z
Definition: glcorearb.h:847
UT_API fpreal32 * theDitherMatrix
#define UT_API
Definition: UT_API.h:12
GLint y
Definition: glcorearb.h:102
3D Vector class.
signed char int8
Definition: SYS_Types.h:24
long long int64
Definition: SYS_Types.h:100
double fpreal64
Definition: SYS_Types.h:185
UT_API UT_ValArray< UT_VoxelTileCompress< fpreal16 > * > & UTvoxelTileGetCompressionEngines(fpreal16 *dummy)
int int32
Definition: SYS_Types.h:28
unsigned char uint8
Definition: SYS_Types.h:25
GLint GLenum GLint x
Definition: glcorearb.h:408
fpreal32 UTgetVoxelDither(int x, int y, int z)
short int16
Definition: SYS_Types.h:26
float fpreal32
Definition: SYS_Types.h:184