VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
OculusTextureBuffer Class Reference
Inheritance diagram for OculusTextureBuffer:
Inheritance graph
[legend]

Public Member Functions

 OculusTextureBuffer (const ovrSession &session, osg::ref_ptr< osg::State > state, const ovrSizei &size, int msaaSamples)
 
void destroy ()
 
int textureWidth () const
 
int textureHeight () const
 
int samples () const
 
ovrTextureSwapChain textureSwapChain () const
 
osg::ref_ptr< osg::Texture2D > colorBuffer () const
 
osg::ref_ptr< osg::Texture2D > depthBuffer () const
 
void onPreRender (osg::RenderInfo &renderInfo)
 
void onPostRender (osg::RenderInfo &renderInfo)
 
void setEnableTextureBlit (bool set, int x, int y)
 

Protected Member Functions

virtual ~OculusTextureBuffer ()
 
GLuint createProgram (const std::string &name)
 
void blitTexture (osg::State *state, int width, int height)
 
void setup (osg::State &state)
 
void setupMSAA (osg::State &state)
 

Protected Attributes

const ovrSession m_session
 
ovrTextureSwapChain m_textureSwapChain
 
osg::ref_ptr< osg::Texture2D > m_colorBuffer
 
osg::ref_ptr< osg::Texture2D > m_depthBuffer
 
osg::Vec2i m_textureSize
 
GLuint m_Oculus_FBO
 
GLuint m_MSAA_FBO
 
GLuint m_MSAA_ColorTex
 
GLuint m_MSAA_DepthTex
 
int m_samples
 
GLuint myCurrentTextureId
 
bool myShouldBlitTexture
 
GLuint myDownsampleShader
 
int myBlitWidth
 
int myBlitHeight
 

Constructor & Destructor Documentation

OculusTextureBuffer::OculusTextureBuffer ( const ovrSession &  session,
osg::ref_ptr< osg::State >  state,
const ovrSizei &  size,
int  msaaSamples 
)
virtual OculusTextureBuffer::~OculusTextureBuffer ( )
inlineprotectedvirtual

Member Function Documentation

void OculusTextureBuffer::destroy ( )
int OculusTextureBuffer::textureWidth ( ) const
inline

References m_textureSize.

int OculusTextureBuffer::textureHeight ( ) const
inline

References m_textureSize.

int OculusTextureBuffer::samples ( ) const
inline

References m_samples.

ovrTextureSwapChain OculusTextureBuffer::textureSwapChain ( ) const
inline

References m_textureSwapChain.

osg::ref_ptr<osg::Texture2D> OculusTextureBuffer::colorBuffer ( ) const
inline

References m_colorBuffer.

osg::ref_ptr<osg::Texture2D> OculusTextureBuffer::depthBuffer ( ) const
inline

References m_depthBuffer.

void OculusTextureBuffer::onPreRender ( osg::RenderInfo &  renderInfo)
void OculusTextureBuffer::onPostRender ( osg::RenderInfo &  renderInfo)
void OculusTextureBuffer::setEnableTextureBlit ( bool  set,
int  x,
int  y 
)
GLuint OculusTextureBuffer::createProgram ( const std::string &  name)
protected
void OculusTextureBuffer::blitTexture ( osg::State *  state,
int  width,
int  height 
)
protected
void OculusTextureBuffer::setup ( osg::State &  state)
protected
void OculusTextureBuffer::setupMSAA ( osg::State &  state)
protected

Member Data Documentation

const ovrSession OculusTextureBuffer::m_session
protected
ovrTextureSwapChain OculusTextureBuffer::m_textureSwapChain
protected

Referenced by textureSwapChain().

osg::ref_ptr<osg::Texture2D> OculusTextureBuffer::m_colorBuffer
protected

Referenced by colorBuffer().

osg::ref_ptr<osg::Texture2D> OculusTextureBuffer::m_depthBuffer
protected

Referenced by depthBuffer().

osg::Vec2i OculusTextureBuffer::m_textureSize
protected

Referenced by textureHeight(), and textureWidth().

GLuint OculusTextureBuffer::m_Oculus_FBO
protected
GLuint OculusTextureBuffer::m_MSAA_FBO
protected
GLuint OculusTextureBuffer::m_MSAA_ColorTex
protected
GLuint OculusTextureBuffer::m_MSAA_DepthTex
protected
int OculusTextureBuffer::m_samples
protected

Referenced by samples().

GLuint OculusTextureBuffer::myCurrentTextureId
protected
bool OculusTextureBuffer::myShouldBlitTexture
protected
GLuint OculusTextureBuffer::myDownsampleShader
protected
int OculusTextureBuffer::myBlitWidth
protected
int OculusTextureBuffer::myBlitHeight
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)