00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef INC_MI32_MXSTEREO_H
00037 #define INC_MI32_MXSTEREO_H
00038
00039 #ifndef INC_MI32_STDDEFNS_H
00040 #include <mi32/stddefns.h>
00041 #endif
00042
00043 #if defined(__cplusplus)
00044 extern "C" {
00045 #endif
00046
00047 struct STEREOPARM {
00048 UINT8 StereoMode;
00049 UINT8 AnaglyphMode;
00050 double OpticalSeparation;
00051 double MonitorSeparation;
00052 UINT32 flags;
00053 struct {
00054 UINT8 Red;
00055 UINT8 Green;
00056 UINT8 Blue;
00057 } leftmask, rightmask;
00058 struct {
00059 MGD::PIXEL BackgroundPixel;
00060 MGD::PIXEL LeftPixel;
00061 MGD::PIXEL RightPixel;
00062 } AnaglyphPC;
00063 };
00064
00065 enum STEREOMODE {
00066 STEREOMODE_SeparateFrames = 100,
00067 STEREOMODE_InterlaceLines = 101,
00068 STEREOMODE_InterlaceColumns = 102,
00069 STEREOMODE_Anaglyph = 103,
00070 STEREOMODE_Sharp = 104
00071 };
00072
00073 enum ANAGLYPH {
00074 ANAGLYPH_RedGreen = 0,
00075 ANAGLYPH_RedBlue = 1,
00076 ANAGLYPH_RedCyan = 2,
00077 ANAGLYPH_GreenRed = 3,
00078 ANAGLYPH_GreenBlue = 4,
00079 ANAGLYPH_GreenMagenta = 5,
00080 ANAGLYPH_BlueRed = 6,
00081 ANAGLYPH_BlueGreen = 7,
00082 ANAGLYPH_BlueYellow = 8,
00083 ANAGLYPH_CyanRed = 9,
00084 ANAGLYPH_MagentaGreen = 10,
00085 ANAGLYPH_YellowBlue = 11,
00086 ANAGLYPH_RedBlueMI = 12
00087 };
00088
00089 #define MxSTEREOFLAG_AllowSepWindows 0x0001
00090 #define MxSTEREOFLAG_NeedAnaglyphPixels 0x0002
00091
00092
00093 void MxStereoParmInit (
00094 STEREOPARM *stereoparm,
00095 UINT32 flags
00096 );
00097
00098
00099 int MxStereoSetup (
00100 Widget pwidget,
00101 STEREOPARM *RetStereoParm
00102 );
00103
00104
00105 #if defined(__cplusplus)
00106 }
00107 #endif
00108
00109 #endif