00001
00009 #ifndef DISPLAYTILE_H
00010 #define DISPLAYTILE_H
00011
00012 #include <G3D/G3DAll.h>
00013
00014 namespace VRG3D {
00015
00025 class DisplayTile
00026 {
00027 public:
00028
00029 enum TileRenderType {
00030 TILE_MONO,
00031 TILE_MONO_LEFT,
00032 TILE_MONO_RIGHT,
00033 TILE_STEREO,
00034 TILE_CHECKERBOARD_STEREO
00035 };
00036
00037
00039 DisplayTile(Vector3 topLeftCorner,
00040 Vector3 topRightCorner,
00041 Vector3 botLeftCorner,
00042 Vector3 botRightCorner,
00043 TileRenderType tileRenderType,
00044 double nearClipPlane,
00045 double farClipPlane);
00046
00047 DisplayTile() {}
00048
00049 virtual ~DisplayTile();
00050
00051 TileRenderType renderType;
00052 double nearClip;
00053 double farClip;
00054 Vector3 topLeft;
00055 Vector3 topRight;
00056 Vector3 botLeft;
00057 Vector3 botRight;
00058
00064 void calculateRoomToTile();
00065 CoordinateFrame room2tile;
00066
00068 static const DisplayTile& defaultDesktopTile();
00069
00070 };
00071
00072 }
00073
00074
00075 #endif