HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DM_ViewportType.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: DM_ViewportType.h ( DM Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __DM_ViewportType__
12 #define __DM_ViewportType__
13 
14 #define DM_VIEWPORT_ORTHO 0x0ff
15 #define DM_VIEWPORT_TOP 0x001
16 #define DM_VIEWPORT_FRONT 0x002
17 #define DM_VIEWPORT_RIGHT 0x004
18 #define DM_VIEWPORT_BOTTOM 0x008
19 #define DM_VIEWPORT_BACK 0x010
20 #define DM_VIEWPORT_LEFT 0x020
21 
22 #define DM_VIEWPORT_PERSPECTIVE 0xf00
23 
24 #define DM_VIEWPORT_ALL_3D (DM_VIEWPORT_PERSPECTIVE|DM_VIEWPORT_ORTHO)
25 
26 #define DM_VIEWPORT_UV 0x1000
27 #define DM_VIEWPORT_IMAGE 0x2000
28 #define DM_VIEWPORT_ALL_2D 0x3000
29 
30 #define DM_VIEWPORT_ALL (DM_VIEWPORT_ALL_3D | DM_VIEWPORT_ALL_2D)
31 
32 typedef int DM_ViewportType;
33 
34 /// Enumerates the ways in which the viewport can display stereo 3d images
36 {
37  DM_S3D_DISP_ANAGLYPH, // red-cyan anaglyph
38  DM_S3D_DISP_H_INTERLACE, // horizontal line interlace
39  DM_S3D_DISP_H_INTERLACE_REV, // as above, but with even lines for R-eye
40  DM_S3D_DISP_QUAD_BUFFER, // OpenGL quad buffer stereo
41  DM_S3D_DISP_LEFT_RIGHT, // Left/Right image (2 in 1, horiz aligned)
42  DM_S3D_DISP_LEFT_RIGHT_REV, // Right/Left image (2 in 1, horiz aligned)
43  DM_S3D_DISP_OVER_UNDER, // Over/under image (2 in 1 LR vert aligned)
44  DM_S3D_DISP_OVER_UNDER_REV, // Over/under image (2 in 1 RL vert aligned)
45 
46  DM_S3D_DISP_SINGLE_EYE // Render a single eye only.
47 };
48 
49 /// Different types of things that can be located in the viewport.
51 {
52  // Handles can be combined with any other locate type.
54  // Selectable objects with or without handles.
57  // Non-selectable objects only. Just used to differentiate ALL_OBJECTS
58  // from SELECTABLE_OBJECTS.
60  // All objects means selectable objects and non-selectable objects.
63  // Component locating is mutually exclusive with object locating.
66 };
67 
68 #endif
DM_S3DDisplayFormat
Enumerates the ways in which the viewport can display stereo 3d images.
DM_LocateFlags
Different types of things that can be located in the viewport.
int DM_ViewportType