MyGUI 3.2.0

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

MyGUI_RenderManager.h
Go to the documentation of this file.
1
6 /*
7 This file is part of MyGUI.
8
9 MyGUI is free software: you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 MyGUI is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
21 */
22 #ifndef __MYGUI_RENDER_MANAGER_H__
23 #define __MYGUI_RENDER_MANAGER_H__
24
25 #include "MyGUI_Prerequest.h"
26 #include "MyGUI_Singleton.h"
27 #include "MyGUI_RenderFormat.h"
28 #include "MyGUI_ITexture.h"
29 #include "MyGUI_IVertexBuffer.h"
30 #include "MyGUI_IRenderTarget.h"
31
32 namespace MyGUI
33 {
34
35 class MYGUI_EXPORT RenderManager :
36 public Singleton<RenderManager>
37 {
38 public:
39
44 virtual IVertexBuffer* createVertexBuffer() = 0;
46 virtual void destroyVertexBuffer(IVertexBuffer* _buffer) = 0;
47
49 virtual ITexture* createTexture(const std::string& _name) = 0;
51 virtual void destroyTexture(ITexture* _texture) = 0;
53 virtual ITexture* getTexture(const std::string& _name) = 0;
54
55 //FIXME возможно перенести в структуру о рендер таргете
56 virtual const IntSize& getViewSize() const = 0;
57
59 virtual VertexColourType getVertexFormat() = 0;
60
62 virtual bool isFormatSupported(PixelFormat _format, TextureUsage _usage);
63
64 #if MYGUI_DEBUG_MODE == 1
65
66 virtual bool checkTexture(ITexture* _texture);
67 #endif
68
69 protected:
70 virtual void onResizeView(const IntSize& _viewSize);
71 virtual void onRenderToTarget(IRenderTarget* _target, bool _update);
72 virtual void onFrameEvent(float _time);
73 };
74
75 } // namespace MyGUI
76
77 #endif // __MYGUI_RENDER_MANAGER_H__
MyGUI_IVertexBuffer.h
MyGUI_Prerequest.h
MyGUI_Singleton.h
MyGUI::types::TSize< int >
MyGUI_IRenderTarget.h
MyGUI::IVertexBuffer
Definition: MyGUI_IVertexBuffer.h:31
MyGUI::VertexColourType
Definition: MyGUI_RenderFormat.h:30
MyGUI::TextureUsage
Definition: MyGUI_RenderFormat.h:89
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:120
MyGUI_ITexture.h
MyGUI::ITexture
Definition: MyGUI_ITexture.h:41
MyGUI::IRenderTarget
Definition: MyGUI_IRenderTarget.h:35
MyGUI::PixelFormat
Definition: MyGUI_RenderFormat.h:59
MyGUI::Singleton
Definition: MyGUI_Singleton.h:35
MyGUI::RenderManager
Definition: MyGUI_RenderManager.h:35
MyGUI_RenderFormat.h