HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 
28 #define DM_VIEWPORT_ALL (DM_VIEWPORT_ALL_3D | DM_VIEWPORT_UV)
29 
30 typedef int DM_ViewportType;
31 
32 /// Enumerates the ways in which the viewport can display stereo 3d images
34 {
35  DM_S3D_DISP_ANAGLYPH, // red-cyan anaglyph
36  DM_S3D_DISP_H_INTERLACE, // horizontal line interlace
37  DM_S3D_DISP_H_INTERLACE_REV, // as above, but with even lines for R-eye
38  DM_S3D_DISP_QUAD_BUFFER, // OpenGL quad buffer stereo
39  DM_S3D_DISP_LEFT_RIGHT, // Left/Right image (2 in 1, horiz aligned)
40  DM_S3D_DISP_LEFT_RIGHT_REV, // Right/Left image (2 in 1, horiz aligned)
41  DM_S3D_DISP_OVER_UNDER, // Over/under image (2 in 1 LR vert aligned)
42  DM_S3D_DISP_OVER_UNDER_REV, // Over/under image (2 in 1 RL vert aligned)
43 
44  DM_S3D_DISP_SINGLE_EYE // Render a single eye only.
45 };
46 
47 /// Different types of things that can be located in the viewport.
49 {
50  // Handles can be combined with any other locate type.
52  // Selectable objects with or without handles.
55  // Non-selectable objects only. Just used to differentiate ALL_OBJECTS
56  // from SELECTABLE_OBJECTS.
58  // All objects means selectable objects and non-selectable objects.
61  // Component locating is mutually exclusive with objet locating.
64 };
65 
66 #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