mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
46 lines
842 B
C++
46 lines
842 B
C++
/*!
|
|
@file
|
|
@author Albert Semenov
|
|
@date 10/2009
|
|
@module
|
|
*/
|
|
|
|
#ifndef __MYGUI_OGRE_RTTEXTURE_H__
|
|
#define __MYGUI_OGRE_RTTEXTURE_H__
|
|
|
|
#include "MyGUI_Prerequest.h"
|
|
#include "MyGUI_IRenderTarget.h"
|
|
|
|
#include <Ogre.h>
|
|
|
|
#include "MyGUI_LastHeader.h"
|
|
|
|
namespace MyGUI
|
|
{
|
|
|
|
class OgreRTTexture :
|
|
public IRenderTarget
|
|
{
|
|
public:
|
|
OgreRTTexture(Ogre::TexturePtr _texture);
|
|
virtual ~OgreRTTexture();
|
|
|
|
virtual void begin();
|
|
virtual void end();
|
|
|
|
virtual void doRender(IVertexBuffer* _buffer, ITexture* _texture, size_t _count);
|
|
|
|
virtual const RenderTargetInfo& getInfo() { return mRenderTargetInfo; }
|
|
|
|
private:
|
|
RenderTargetInfo mRenderTargetInfo;
|
|
Ogre::Viewport* mViewport;
|
|
Ogre::Viewport* mSaveViewport;
|
|
Ogre::TexturePtr mTexture;
|
|
Ogre::Matrix4 mProjectMatrix;
|
|
};
|
|
|
|
} // namespace MyGUI
|
|
|
|
#endif // __MYGUI_OGRE_RTTEXTURE_H__
|