Port stereo stuff from tuhopuu2: anaglyph, vinterlace

This commit is contained in:
Kester Maddock
2004-10-24 11:03:18 +00:00
parent 6424bf6eb0
commit 657eff7ed7
8 changed files with 190 additions and 13 deletions

View File

@@ -93,7 +93,10 @@ public:
RAS_STEREO_ABOVEBELOW,
RAS_STEREO_INTERLACED,
RAS_STEREO_ANAGLYPH,
RAS_STEREO_SIDEBYSIDE
RAS_STEREO_SIDEBYSIDE,
RAS_STEREO_VINTERLACE,
RAS_STEREO_MAXSTEREO
};
/**
* Render pass identifiers for stereo.
@@ -157,12 +160,17 @@ public:
* Sets which eye buffer subsequent primitives will be rendered to.
*/
virtual void SetEye(const StereoEye eye)=0;
virtual StereoEye GetEye()=0;
/**
* Sets the distance between eyes for stereo mode.
*/
virtual void SetEyeSeparation(const float eyeseparation)=0;
virtual float GetEyeSeparation() = 0;
/**
* Sets the focal length for stereo mode.
*/
virtual void SetFocalLength(const float focallength)=0;
virtual float GetFocalLength() = 0;
/**
* SwapBuffers swaps the back buffer with the front buffer.
*/