VTK  9.4.20241103
zSpaceTypes.h
Go to the documentation of this file.
1
2//
3// Copyright (C) 2007-2015 zSpace, Inc. All Rights Reserved.
4//
5// File: zSpaceTypes.h
6// Content: Shared zSpace types.
7// SVN Info: $Id$
8//
10
11#ifndef __ZSPACE_TYPES_H__
12#define __ZSPACE_TYPES_H__
13
14
17
18
20// Basic Types
22
23#if (defined(_MSC_VER) && (_MSC_VER >= 1300))
24
25typedef signed __int8 ZSInt8;
26typedef signed __int16 ZSInt16;
27typedef signed __int32 ZSInt32;
28typedef signed __int64 ZSInt64;
29
30typedef unsigned __int8 ZSUInt8;
31typedef unsigned __int16 ZSUInt16;
32typedef unsigned __int32 ZSUInt32;
33typedef unsigned __int64 ZSUInt64;
34
35#else
36
37// From ISO/IEC 988:1999 spec
38// 7.18.1.1 Exact-width integer types
39typedef signed char ZSInt8;
40typedef short ZSInt16;
41typedef int ZSInt32;
42typedef long long ZSInt64;
43
44typedef unsigned char ZSUInt8;
45typedef unsigned short ZSUInt16;
46typedef unsigned int ZSUInt32;
47typedef unsigned long long ZSUInt64;
48
49#endif
50
51typedef ZSInt8 ZSBool;
52typedef float ZSFloat;
53typedef double ZSDouble;
54
55
57// Compound Types
59
60// Ensure 8 byte packing.
61#pragma pack( push, 8 )
62
64typedef union ZSVector3
65{
67 struct
68 {
72 };
74
75
79typedef union ZSMatrix4
80{
82 struct
83 {
88 };
90
91#pragma pack( pop )
92
93
95
96
97#endif // __ZSPACE_TYPES_H__
float ZSFloat
Definition zSpaceTypes.h:52
signed char ZSInt8
Definition zSpaceTypes.h:39
ZSInt8 ZSBool
Definition zSpaceTypes.h:51
long long ZSInt64
Definition zSpaceTypes.h:42
unsigned int ZSUInt32
Definition zSpaceTypes.h:46
double ZSDouble
Definition zSpaceTypes.h:53
unsigned short ZSUInt16
Definition zSpaceTypes.h:45
unsigned long long ZSUInt64
Definition zSpaceTypes.h:47
unsigned char ZSUInt8
Definition zSpaceTypes.h:44
short ZSInt16
Definition zSpaceTypes.h:40
int ZSInt32
Definition zSpaceTypes.h:41
Union representing 4x4 matrix (right-handed OpenGL column-major format). / This structure is used by ...
Definition zSpaceTypes.h:80
ZSFloat m11
Definition zSpaceTypes.h:85
ZSFloat m30
Definition zSpaceTypes.h:84
ZSFloat m00
Definition zSpaceTypes.h:84
ZSFloat m20
Definition zSpaceTypes.h:84
ZSFloat m32
Definition zSpaceTypes.h:86
ZSFloat m02
Definition zSpaceTypes.h:86
ZSFloat m12
Definition zSpaceTypes.h:86
ZSFloat m13
Definition zSpaceTypes.h:87
ZSFloat m10
Definition zSpaceTypes.h:84
ZSFloat m22
Definition zSpaceTypes.h:86
ZSFloat m31
Definition zSpaceTypes.h:85
ZSFloat f[16]
Definition zSpaceTypes.h:81
ZSFloat m33
Definition zSpaceTypes.h:87
ZSFloat m23
Definition zSpaceTypes.h:87
ZSFloat m03
Definition zSpaceTypes.h:87
ZSFloat m21
Definition zSpaceTypes.h:85
ZSFloat m01
Definition zSpaceTypes.h:85
Union representing a vector of 3 floats.
Definition zSpaceTypes.h:65
ZSFloat y
Definition zSpaceTypes.h:70
ZSFloat z
Definition zSpaceTypes.h:71
ZSFloat x
Definition zSpaceTypes.h:69
ZSFloat f[3]
Definition zSpaceTypes.h:66