OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
osgMyGUI::ProxyRenderTarget Class Reference

the ProxyRenderTarget allows to adjust the pixel scale and offset for a "source" render target. More...

Inheritance diagram for osgMyGUI::ProxyRenderTarget:
Collaboration diagram for osgMyGUI::ProxyRenderTarget:

Public Member Functions

 ProxyRenderTarget (MyGUI::IRenderTarget *target, MyGUI::IntSize viewSize, float hoffset, float voffset)
 
virtual void begin ()
 
virtual void end ()
 
virtual void doRender (MyGUI::IVertexBuffer *_buffer, MyGUI::ITexture *_texture, size_t _count)
 
virtual const
MyGUI::RenderTargetInfo & 
getInfo ()
 

Private Attributes

MyGUI::IRenderTarget * mTarget
 
MyGUI::IntSize mViewSize
 
float mHOffset
 
float mVOffset
 
MyGUI::RenderTargetInfo mInfo
 

Detailed Description

the ProxyRenderTarget allows to adjust the pixel scale and offset for a "source" render target.

Constructor & Destructor Documentation

osgMyGUI::ProxyRenderTarget::ProxyRenderTarget ( MyGUI::IRenderTarget *  target,
MyGUI::IntSize  viewSize,
float  hoffset,
float  voffset 
)
inline
Parameters
targetThe target to render to.
viewSizeThe size of the underlying layer node to render.
hoffsetThe horizontal rendering offset, specified as an offset from the left screen edge in range 0-1.
voffsetThe vertical rendering offset, specified as an offset from the top screen edge in range 0-1.

Member Function Documentation

virtual void osgMyGUI::ProxyRenderTarget::begin ( )
inlinevirtual
virtual void osgMyGUI::ProxyRenderTarget::doRender ( MyGUI::IVertexBuffer *  _buffer,
MyGUI::ITexture *  _texture,
size_t  _count 
)
inlinevirtual
virtual void osgMyGUI::ProxyRenderTarget::end ( )
inlinevirtual
virtual const MyGUI::RenderTargetInfo& osgMyGUI::ProxyRenderTarget::getInfo ( )
inlinevirtual

Member Data Documentation

float osgMyGUI::ProxyRenderTarget::mHOffset
private
MyGUI::RenderTargetInfo osgMyGUI::ProxyRenderTarget::mInfo
private
MyGUI::IRenderTarget* osgMyGUI::ProxyRenderTarget::mTarget
private
MyGUI::IntSize osgMyGUI::ProxyRenderTarget::mViewSize
private
float osgMyGUI::ProxyRenderTarget::mVOffset
private

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