MyGUI 3.4.3
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
28 {
29 return true;
30 }
31
32 void RenderManager::onResizeView(const IntSize& _viewSize)
33 {
35 if (layers != nullptr)
36 layers->resizeView(_viewSize);
37 }
38
40 {
42 if (layers != nullptr)
43 layers->renderToTarget(_target, _update);
44 }
45
47 {
48 Gui* gui = Gui::getInstancePtr();
49 if (gui != nullptr)
50 gui->frameEvent(_time);
51 }
52
53} // namespace MyGUI
#define MYGUI_SINGLETON_DEFINITION(ClassName)
void frameEvent(float _time) const
static Gui * getInstancePtr()
Definition MyGUI_Gui.cpp:34
static LayerManager * getInstancePtr()
void renderToTarget(IRenderTarget *_target, bool _update)
void resizeView(const IntSize &_viewSize)
virtual void onFrameEvent(float _time)
virtual bool checkTexture(ITexture *_texture)
virtual void onResizeView(const IntSize &_viewSize)
virtual void onRenderToTarget(IRenderTarget *_target, bool _update)
virtual bool isFormatSupported(PixelFormat _format, TextureUsage _usage)
types::TSize< int > IntSize
Definition MyGUI_Types.h:30