HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 
int int32
Definition: SYS_Types.h:39
UT_API void UT_RegisterVoxelCompressionMethods()
GLdouble GLdouble GLdouble z
Definition: glcorearb.h:848
UT_API fpreal32 * theDitherMatrix
#define UT_API
Definition: UT_API.h:14
GLint y
Definition: glcorearb.h:103
float fpreal32
Definition: SYS_Types.h:200
double fpreal64
Definition: SYS_Types.h:201
unsigned char uint8
Definition: SYS_Types.h:36
constexpr enabler dummy
An instance to use in EnableIf.
Definition: CLI11.h:985
long long int64
Definition: SYS_Types.h:116
UT_API UT_ValArray< UT_VoxelTileCompress< fpreal16 > * > & UTvoxelTileGetCompressionEngines(fpreal16 *dummy)
signed char int8
Definition: SYS_Types.h:35
GLint GLenum GLint x
Definition: glcorearb.h:409
short int16
Definition: SYS_Types.h:37
fpreal32 UTgetVoxelDither(int x, int y, int z)