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

#include <myguirendermanager.hpp>

Inheritance diagram for osgMyGUI::RenderManager:
Collaboration diagram for osgMyGUI::RenderManager:

Public Member Functions

 RenderManager (osgViewer::Viewer *viewer, osg::Group *sceneroot, Resource::ImageManager *imageManager, float scalingFactor)
 
virtual ~RenderManager ()
 
void initialise ()
 
void shutdown ()
 
void setScalingFactor (float factor)
 
virtual const MyGUI::IntSize & getViewSize () const
 
virtual MyGUI::VertexColourType getVertexFormat ()
 
virtual bool isFormatSupported (MyGUI::PixelFormat format, MyGUI::TextureUsage usage)
 
virtual MyGUI::IVertexBuffer * createVertexBuffer ()
 
virtual void destroyVertexBuffer (MyGUI::IVertexBuffer *buffer)
 
virtual MyGUI::ITexture * createTexture (const std::string &name)
 
virtual void destroyTexture (MyGUI::ITexture *_texture)
 
virtual MyGUI::ITexture * getTexture (const std::string &name)
 
void update ()
 
virtual void begin ()
 
virtual void end ()
 
virtual void doRender (MyGUI::IVertexBuffer *buffer, MyGUI::ITexture *texture, size_t count)
 
void setInjectState (osg::StateSet *stateSet)
 
virtual const
MyGUI::RenderTargetInfo & 
getInfo ()
 
bool checkTexture (MyGUI::ITexture *_texture)
 
void collectDrawCalls ()
 
void setViewSize (int width, int height)
 

Static Public Member Functions

static RenderManagergetInstance ()
 
static RenderManagergetInstancePtr ()
 

Private Types

typedef std::map< std::string,
MyGUI::ITexture * > 
MapTexture
 

Private Member Functions

void destroyAllResources ()
 

Private Attributes

osg::ref_ptr< osgViewer::Viewer > mViewer
 
osg::ref_ptr< osg::Group > mSceneRoot
 
osg::ref_ptr< DrawablemDrawable
 
Resource::ImageManagermImageManager
 
MyGUI::IntSize mViewSize
 
bool mUpdate
 
MyGUI::VertexColourType mVertexFormat
 
MyGUI::RenderTargetInfo mInfo
 
MapTexture mTextures
 
bool mIsInitialise
 
osg::ref_ptr< osg::Camera > mGuiRoot
 
float mInvScalingFactor
 
osg::StateSet * mInjectState
 

Member Typedef Documentation

typedef std::map<std::string, MyGUI::ITexture*> osgMyGUI::RenderManager::MapTexture
private

Constructor & Destructor Documentation

osgMyGUI::RenderManager::RenderManager ( osgViewer::Viewer *  viewer,
osg::Group *  sceneroot,
Resource::ImageManager imageManager,
float  scalingFactor 
)
osgMyGUI::RenderManager::~RenderManager ( )
virtual

Here is the call graph for this function:

Member Function Documentation

void osgMyGUI::RenderManager::begin ( )
virtual
See Also
IRenderTarget::begin

Here is the caller graph for this function:

bool osgMyGUI::RenderManager::checkTexture ( MyGUI::ITexture *  _texture)
void osgMyGUI::RenderManager::collectDrawCalls ( )

Here is the call graph for this function:

Here is the caller graph for this function:

MyGUI::ITexture * osgMyGUI::RenderManager::createTexture ( const std::string &  name)
virtual
See Also
RenderManager::createTexture

Here is the caller graph for this function:

MyGUI::IVertexBuffer * osgMyGUI::RenderManager::createVertexBuffer ( )
virtual
void osgMyGUI::RenderManager::destroyAllResources ( )
private

Here is the caller graph for this function:

void osgMyGUI::RenderManager::destroyTexture ( MyGUI::ITexture *  _texture)
virtual
void osgMyGUI::RenderManager::destroyVertexBuffer ( MyGUI::IVertexBuffer *  buffer)
virtual
void osgMyGUI::RenderManager::doRender ( MyGUI::IVertexBuffer *  buffer,
MyGUI::ITexture *  texture,
size_t  count 
)
virtual
See Also
IRenderTarget::doRender

Here is the call graph for this function:

void osgMyGUI::RenderManager::end ( )
virtual
See Also
IRenderTarget::end

Here is the caller graph for this function:

virtual const MyGUI::RenderTargetInfo& osgMyGUI::RenderManager::getInfo ( )
inlinevirtual
See Also
IRenderTarget::getInfo
static RenderManager& osgMyGUI::RenderManager::getInstance ( )
inlinestatic

Here is the call graph for this function:

static RenderManager* osgMyGUI::RenderManager::getInstancePtr ( )
inlinestatic

Here is the caller graph for this function:

MyGUI::ITexture * osgMyGUI::RenderManager::getTexture ( const std::string &  name)
virtual
See Also
RenderManager::getTexture

Here is the call graph for this function:

Here is the caller graph for this function:

virtual MyGUI::VertexColourType osgMyGUI::RenderManager::getVertexFormat ( )
inlinevirtual
virtual const MyGUI::IntSize& osgMyGUI::RenderManager::getViewSize ( ) const
inlinevirtual
void osgMyGUI::RenderManager::initialise ( )

Here is the call graph for this function:

Here is the caller graph for this function:

bool osgMyGUI::RenderManager::isFormatSupported ( MyGUI::PixelFormat  format,
MyGUI::TextureUsage  usage 
)
virtual
void osgMyGUI::RenderManager::setInjectState ( osg::StateSet *  stateSet)

specify a StateSet to inject for rendering. The StateSet will be used by future doRender calls until you reset it to NULL again.

Here is the caller graph for this function:

void osgMyGUI::RenderManager::setScalingFactor ( float  factor)
void osgMyGUI::RenderManager::setViewSize ( int  width,
int  height 
)

Here is the caller graph for this function:

void osgMyGUI::RenderManager::shutdown ( )

Here is the caller graph for this function:

void osgMyGUI::RenderManager::update ( )

Here is the caller graph for this function:

Member Data Documentation

osg::ref_ptr<Drawable> osgMyGUI::RenderManager::mDrawable
private
osg::ref_ptr<osg::Camera> osgMyGUI::RenderManager::mGuiRoot
private
Resource::ImageManager* osgMyGUI::RenderManager::mImageManager
private
MyGUI::RenderTargetInfo osgMyGUI::RenderManager::mInfo
private
osg::StateSet* osgMyGUI::RenderManager::mInjectState
private
float osgMyGUI::RenderManager::mInvScalingFactor
private
bool osgMyGUI::RenderManager::mIsInitialise
private
osg::ref_ptr<osg::Group> osgMyGUI::RenderManager::mSceneRoot
private
MapTexture osgMyGUI::RenderManager::mTextures
private
bool osgMyGUI::RenderManager::mUpdate
private
MyGUI::VertexColourType osgMyGUI::RenderManager::mVertexFormat
private
osg::ref_ptr<osgViewer::Viewer> osgMyGUI::RenderManager::mViewer
private
MyGUI::IntSize osgMyGUI::RenderManager::mViewSize
private

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