SO3Engine
|
SO3StereoManager.h
Go to the documentation of this file.
71 };
122 StereoViewportData() : mFlipEyes(false), mShadowEnable(false), mOverlayEnable(false), mSkyEnable(false), frameTime(0.0), mOldBackgroundColor(Ogre::ColourValue::Black), mMask(0xffffffff), mOldPos(Ogre::Vector3::ZERO), mOldOffset(Ogre::Vector2::ZERO), mOldRatio(0.0f), mOldFOV(Ogre::Radian()), mOldMatrix(Ogre::Matrix4::IDENTITY), mBaseCameraMatrix(Ogre::Matrix4::IDENTITY), mOldUseCustomMatrix(false), mCamera(0), leftCameraListener(0), rightCameraListener(0), rttListener(0), viewportListener(0), frameListener(0), mOriginalViewport(0), mLastLeftViewport(0), mLastRightViewport(0), mScene(0), mStereoScene(0), mRect(0), mStereoCameraNode(0), mStereoCamera(0), mBackgroundColor(Ogre::ColourValue::Black), mLeftRenderTexture(), mRightRenderTexture(), mLeftEntity(0), mRightEntity(0) {}
140 StereoRTTListener(StereoManager* stereoMgr, StereoManager::StereoViewportData* stereoViewportData);
173 StereoCameraListener(StereoManager* stereoMgr, bool isLeftCamera, Ogre::Viewport* originalViewport, StereoManager::StereoViewportData* stereoViewportData);
204 StereoViewportListener(StereoManager* stereoMgr, StereoManager::StereoViewportData* stereoViewportData);
235 StereoFrameListener(StereoManager* stereoMgr, StereoManager::StereoViewportData* stereoViewportData);
275 virtual void eventOccurred(const Ogre::String &eventName, const Ogre::NameValuePairList *parameters);
354 bool UpdateStereoCompositorState(Ogre::Viewport* ogreViewportInstance, const Ogre::String compname, bool state);
366 void SynchViewportSetup(SViewPort* viewportInstance, bool overlay = false, bool shadow = false);
423 void SetCustomProjectonMatrices(bool enable, const Ogre::Matrix4 &leftMatrix, const Ogre::Matrix4 &rightMatrix);
424 void GetCustomProjectonMatrices(bool &enabled, Ogre::Matrix4 &leftMatrix, Ogre::Matrix4 &rightMatrix) const;
425 void SetTimeWarpMatrix(const Ogre::Matrix4 &leftStartMatrix, const Ogre::Matrix4 &leftEndMatrix, const Ogre::Matrix4 &rightStartMatrix, const Ogre::Matrix4 &rightEndMatrix);
427 void SetStereoMeshUVConfig(Ogre::Vector2 leftuvscale, Ogre::Vector2 leftuvoffset, Ogre::Vector2 rightuvscale, Ogre::Vector2 rightuvoffset);
429 void SetStereoMeshLeft(std::vector<Ogre::Vector3> vertices, std::vector<std::vector<Ogre::Vector2> > uvs, std::vector<Ogre::Real> vignetteColor, std::vector<Ogre::Real> warp, std::vector<int> indexs);
430 void SetStereoMeshRight(std::vector<Ogre::Vector3> vertices, std::vector<std::vector<Ogre::Vector2> > uvs, std::vector<Ogre::Real> vignetteColor, std::vector<Ogre::Real> warp, std::vector<int> indexs);
librairies include
Definition SO3Point.h:37
Definition SO3ViewPort.h:56
Definition SO3Window.h:45
Definition SO3StereoManager.h:51
void SetStereoMeshLeft(std::vector< Ogre::Vector3 > vertices, std::vector< std::vector< Ogre::Vector2 > > uvs, std::vector< Ogre::Real > vignetteColor, std::vector< Ogre::Real > warp, std::vector< int > indexs)
Definition SO3StereoManager.cpp:1376
StereoMode GetStereoMode() const
Definition SO3StereoManager.cpp:122
void SetStereoFOVy(Ogre::Real fov)
Definition SO3StereoManager.cpp:1743
std::array< SCOL_PTR_TYPE, 2 > GetStereoTextures()
Definition SO3StereoManager.cpp:1273
void SetCustomProjectonMatrices(bool enable, const Ogre::Matrix4 &leftMatrix, const Ogre::Matrix4 &rightMatrix)
Definition SO3StereoManager.cpp:1211
bool UpdateStereoCompositorState(Ogre::Viewport *ogreViewportInstance, const Ogre::String compname, bool state)
Definition SO3StereoManager.cpp:229
void SetStereoProjectionOffset(Ogre::Real offset)
Definition SO3StereoManager.cpp:1712
friend class StereoCameraListener
Definition SO3StereoManager.h:288
void SetStereoDistortion(bool enable, Ogre::Vector4 dist)
Definition SO3StereoManager.cpp:1787
void GetCustomProjectonMatrices(bool &enabled, Ogre::Matrix4 &leftMatrix, Ogre::Matrix4 &rightMatrix) const
Definition SO3StereoManager.cpp:1226
Ogre::Real GetStereoAspectRatio()
Definition SO3StereoManager.cpp:1738
void SetStereoMeshRttSize(SO3::SPoint< int > leftsize, SO3::SPoint< int > rightsize)
Definition SO3StereoManager.cpp:1242
bool IsViewportRegistered(Ogre::Viewport *ogreViewportInstance)
Definition SO3StereoManager.cpp:445
void SetStereoChromaticAbCorrection(bool enable, Ogre::Vector4 chromAbC)
Definition SO3StereoManager.cpp:1773
void SetStereoMode(const StereoMode &newStereoMode)
Definition SO3StereoManager.cpp:174
void SetStereoWindow(SO3::SPoint< int > pos, SO3::SPoint< int > size, int index, bool state)
Definition SO3StereoManager.cpp:1331
friend class StereoFrameListener
Definition SO3StereoManager.h:290
Ogre::Real GetEyesSpacing() const
Definition SO3StereoManager.cpp:1201
void UnregisterViewport(SViewPort *viewportInstance)
Definition SO3StereoManager.cpp:434
void ConstructRttTarget(StereoViewportData *viewportData)
Definition SO3StereoManager.cpp:764
void SetTimeWarpMatrix(const Ogre::Matrix4 &leftStartMatrix, const Ogre::Matrix4 &leftEndMatrix, const Ogre::Matrix4 &rightStartMatrix, const Ogre::Matrix4 &rightEndMatrix)
Definition SO3StereoManager.cpp:1218
std::array< SO3::SPoint< int >, 2 > GetStereoViewportSize()
Definition SO3StereoManager.cpp:1308
void ReleaseRttTarget(StereoViewportData *viewportData)
Definition SO3StereoManager.cpp:673
void SetStereoMeshRight(std::vector< Ogre::Vector3 > vertices, std::vector< std::vector< Ogre::Vector2 > > uvs, std::vector< Ogre::Real > vignetteColor, std::vector< Ogre::Real > warp, std::vector< int > indexs)
Definition SO3StereoManager.cpp:1544
friend class StereoViewportListener
Definition SO3StereoManager.h:289
@ SO3_INTERLACED_CB_STEREO
Interlaced mode with a checkerboard pattern.
Definition SO3StereoManager.h:60
friend class DeviceLostListener
Definition SO3StereoManager.h:287
void SetStereoMeshUVConfig(Ogre::Vector2 leftuvscale, Ogre::Vector2 leftuvoffset, Ogre::Vector2 rightuvscale, Ogre::Vector2 rightuvoffset)
Definition SO3StereoManager.cpp:1233
void UpdateStereoCamera(Ogre::Viewport *ogreViewportInstance, Ogre::Camera *camera)
Definition SO3StereoManager.cpp:311
void RestoreStereoCamera(Ogre::Viewport *ogreViewportInstance)
Definition SO3StereoManager.cpp:270
void RegisterViewport(SViewPort *viewportInstance)
Definition SO3StereoManager.cpp:422
void SynchViewportSetup(SViewPort *viewportInstance, bool overlay=false, bool shadow=false)
Definition SO3StereoManager.cpp:454
void SetEyesSpacing(Ogre::Real l)
Definition SO3StereoManager.cpp:1206
void SetStereoAspectRatio(Ogre::Real ratio)
Definition SO3StereoManager.cpp:1725
void UpdateStereoCameraMatrix(Ogre::Viewport *ogreViewportInstance, Ogre::Camera *camera)
Definition SO3StereoManager.cpp:392
Definition OgreNewt_Debugger.h:21
Definition SO3DataScol.h:38
Generated by 1.9.8