MyGUI 3.4.1
MyGUI_RenderManager.cpp
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#include "MyGUI_Precompiled.h"
9#include "MyGUI_Gui.h"
10#include "MyGUI_LayerManager.h"
11
12namespace MyGUI
13{
14
16
18 mSingletonHolder(this)
19 {
20 }
21
23 {
24 return true;
25 }
26
27#if MYGUI_DEBUG_MODE == 1
28 bool RenderManager::checkTexture(ITexture* _texture)
29 {
30 return true;
31 }
32#endif
33
34 void RenderManager::onResizeView(const IntSize& _viewSize)
35 {
37 if (layers != nullptr)
38 layers->resizeView(_viewSize);
39 }
40
42 {
44 if (layers != nullptr)
45 layers->renderToTarget(_target, _update);
46 }
47
49 {
50 Gui* gui = Gui::getInstancePtr();
51 if (gui != nullptr)
52 gui->frameEvent(_time);
53 }
54
55} // namespace MyGUI
void frameEvent(float _time)
Definition: MyGUI_Gui.cpp:326
static Gui * getInstancePtr()
static LayerManager * getInstancePtr()
void renderToTarget(IRenderTarget *_target, bool _update)
void resizeView(const IntSize &_viewSize)
virtual void onFrameEvent(float _time)
virtual void onResizeView(const IntSize &_viewSize)
virtual void onRenderToTarget(IRenderTarget *_target, bool _update)
virtual bool isFormatSupported(PixelFormat _format, TextureUsage _usage)
MYGUI_SINGLETON_DEFINITION(ClipboardManager)