MyGUI  3.2.1
MyGUI_IRenderTarget.h
Go to the documentation of this file.
1 /*
2  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3  * Distributed under the MIT License
4  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5  */
6 
7 #ifndef __MYGUI_I_RENDER_TARGET_H__
8 #define __MYGUI_I_RENDER_TARGET_H__
9 
10 #include "MyGUI_Prerequest.h"
11 #include "MyGUI_RenderTargetInfo.h"
12 #include <stddef.h>
13 
14 namespace MyGUI
15 {
16 
17  class ITexture;
18  class IVertexBuffer;
19 
21  {
22  public:
24  virtual ~IRenderTarget() { }
25 
26  virtual void begin() = 0;
27  virtual void end() = 0;
28 
29  virtual void doRender(IVertexBuffer* _buffer, ITexture* _texture, size_t _count) = 0;
30 
31  virtual const RenderTargetInfo& getInfo() = 0;
32  };
33 
34 } // namespace MyGUI
35 
36 #endif // __MYGUI_I_RENDER_TARGET_H__