MyGUI_RenderManager.cpp
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#include "MyGUI_Precompiled.h"
#include "MyGUI_RenderManager.h"
#include "MyGUI_Gui.h"
#include "MyGUI_LayerManager.h"
namespace MyGUI
{
MYGUI_SINGLETON_DEFINITION(RenderManager);
RenderManager::RenderManager() :
mSingletonHolder(this)
{
}
bool RenderManager::isFormatSupported(PixelFormat _format, TextureUsage _usage)
{
return true;
}
bool RenderManager::checkTexture(ITexture* _texture)
{
return true;
}
void RenderManager::onResizeView(const IntSize& _viewSize)
{
LayerManager* layers = LayerManager::getInstancePtr();
if (layers != nullptr)
layers->resizeView(_viewSize);
}
void RenderManager::onRenderToTarget(IRenderTarget* _target, bool _update)
{
LayerManager* layers = LayerManager::getInstancePtr();
if (layers != nullptr)
layers->renderToTarget(_target, _update);
}
void RenderManager::onFrameEvent(float _time)
{
Gui* gui = Gui::getInstancePtr();
if (gui != nullptr)
gui->frameEvent(_time);
}
} // namespace MyGUI
MyGUI_Gui.h
MyGUI_LayerManager.h
MyGUI_Precompiled.h
MyGUI_RenderManager.h
MYGUI_SINGLETON_DEFINITION
#define MYGUI_SINGLETON_DEFINITION(ClassName)
Definition MyGUI_Singleton.h:126
MyGUI::Gui
Definition MyGUI_Gui.h:24
MyGUI::Gui::frameEvent
void frameEvent(float _time) const
Definition MyGUI_Gui.cpp:369
MyGUI::Gui::getInstancePtr
static Gui * getInstancePtr()
Definition MyGUI_Gui.cpp:34
MyGUI::IRenderTarget
Definition MyGUI_IRenderTarget.h:21
MyGUI::ITexture
Definition MyGUI_ITexture.h:28
MyGUI::LayerManager
Definition MyGUI_LayerManager.h:23
MyGUI::LayerManager::getInstancePtr
static LayerManager * getInstancePtr()
MyGUI::LayerManager::renderToTarget
void renderToTarget(IRenderTarget *_target, bool _update)
Definition MyGUI_LayerManager.cpp:224
MyGUI::LayerManager::resizeView
void resizeView(const IntSize &_viewSize)
Definition MyGUI_LayerManager.cpp:248
MyGUI::RenderManager
Definition MyGUI_RenderManager.h:21
MyGUI::RenderManager::onFrameEvent
virtual void onFrameEvent(float _time)
Definition MyGUI_RenderManager.cpp:46
MyGUI::RenderManager::checkTexture
virtual bool checkTexture(ITexture *_texture)
Definition MyGUI_RenderManager.cpp:27
MyGUI::RenderManager::onResizeView
virtual void onResizeView(const IntSize &_viewSize)
Definition MyGUI_RenderManager.cpp:32
MyGUI::RenderManager::RenderManager
RenderManager()
Definition MyGUI_RenderManager.cpp:17
MyGUI::RenderManager::onRenderToTarget
virtual void onRenderToTarget(IRenderTarget *_target, bool _update)
Definition MyGUI_RenderManager.cpp:39
MyGUI::RenderManager::isFormatSupported
virtual bool isFormatSupported(PixelFormat _format, TextureUsage _usage)
Definition MyGUI_RenderManager.cpp:22
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30
MyGUI::PixelFormat
Definition MyGUI_RenderFormat.h:50
MyGUI::TextureUsage
Definition MyGUI_RenderFormat.h:98