HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CL_Defines.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: CL_Defines.h ( CL Library, C++)
7  *
8  * COMMENTS:
9  * common definitions
10  */
11 
12 #ifndef __CL_Defines__
13 #define __CL_Defines__
14 
15 #include <SYS/SYS_Floor.h>
16 #include <UT/UT_XformOrder.h>
17 
18 enum CL_Unit {
19  UNIT_NONE = -1,
23 };
24 
25 #define CL_RINT(x) (SYSrint(x))
26 
27 
28 // These values are used when reading and writing binary data.
29 // WARNING: Do not modify these values as we save/write them! It is
30 // only safe to add to this enum.
32 {
45  CL_PACKET_NTYPES // sentinel
46 };
47 
49 {
52 };
53 
54 // WARNING: Do not modify these values as we save/write them!
55 #define CL_BCLIP_MAGIC_NUMBER (('b'<<24) + ('c'<<16) + ('l'<<8) + ('p'))
56 
57 // WARNING: Do not modify these values as we save/write them!
58 #define CL_BCLIP_VERSION 2
59 #define CL_BCLIP_NCVERSION CL_BCLIP_VERSION
60 #define CL_BCLIP_LCVERSION CL_BCLIP_VERSION
61 
62 
63 static inline const char *
64 CLorderToString(UT_XformOrder::xyzOrder ord)
65 {
66  switch(ord)
67  {
68  case UT_XformOrder::XYZ:
69  return "xyz";
70  case UT_XformOrder::XZY:
71  return "xzy";
72  case UT_XformOrder::YXZ:
73  return "yxz";
74  case UT_XformOrder::YZX:
75  return "yzx";
76  case UT_XformOrder::ZXY:
77  return "zxy";
78  case UT_XformOrder::ZYX:
79  default:
80  return "zyx";
81  }
82 }
83 
84 static constexpr const char* BCLIP_STREAM = "stdstream.bclip";
85 static constexpr const char* BCLIP_SC_STREAM = "stdstream.bclip.sc";
86 
87 #endif
CL_DataType
Definition: CL_Defines.h:48
CL_PacketType
Definition: CL_Defines.h:31
CL_Unit
Definition: CL_Defines.h:18