You.i Engine
YiPlatformViewProxy.h
Go to the documentation of this file.
1
// © You i Labs Inc. 2000-2017. All rights reserved.
2
#ifndef _YI_PLATFORM_VIEW_PROXY_H_
3
#define _YI_PLATFORM_VIEW_PROXY_H_
4
5
#include "
framework/YiPredef.h
"
6
#include "
signal/YiSignal.h
"
7
8
class
CYIAssetTexture
;
9
class
CYIColor
;
10
class
CYIMaterial
;
11
class
CYIPlatformView
;
12
class
CYIPlatformViewHandle
;
13
32
class
CYIPlatformViewProxy
33
{
34
public
:
40
class
Delegate
41
{
42
public
:
43
virtual
~Delegate
() =
default
;
44
48
virtual
void
OnTextureUpdated
() = 0;
49
53
virtual
void
OnProxyDestroyed
() = 0;
54
};
55
59
enum
PRESENTATION_MODE
60
{
61
TEXTURE
,
62
LIVE
63
};
64
70
static
std::unique_ptr<CYIPlatformViewProxy>
CreateIfSupported
();
71
72
virtual
~CYIPlatformViewProxy
();
73
79
virtual
void
OnPresentationModeChanged
(
PRESENTATION_MODE
ePresentationMode) = 0;
80
84
virtual
void
SetViewRectangle
(
const
YI_RECT_REL
&viewRectangle) = 0;
85
89
virtual
void
SetVisibility
(
bool
bVisible) = 0;
90
94
virtual
const
std::shared_ptr<CYIMaterial> &
GetViewMaterial
()
const
= 0;
95
101
virtual
void
SetPlatformViewHandle
(
const
CYIPlatformViewHandle
&handle) = 0;
102
111
virtual
const
CYIPlatformViewHandle
&
GetPlatformViewHandle
()
const
= 0;
112
118
virtual
void
SetBackgroundColor
(
const
CYIColor
&color) = 0;
119
125
void
SetDelegate
(
Delegate
*pDelegate);
126
130
CYISignal<const CYIPlatformViewHandle &>
PlatformViewHandleSet
;
131
132
protected
:
136
void
TextureUpdated
();
137
138
CYIPlatformViewProxy
();
139
140
private
:
141
Delegate
*m_pDelegate;
142
};
143
149
#endif //_YI_PLATFORM_VIEW_PROXY_H_
YI_RECT_REL
Definition:
YiPredef.h:234
YiPredef.h
CYIPlatformViewProxy::TextureUpdated
void TextureUpdated()
CYIPlatformViewProxy::SetVisibility
virtual void SetVisibility(bool bVisible)=0
CYIPlatformViewProxy::SetBackgroundColor
virtual void SetBackgroundColor(const CYIColor &color)=0
CYIAssetTexture
A texture asset representing an image which will be loaded into the GPU.
Definition:
YiAssetTexture.h:23
YiSignal.h
CYIMaterial
CYIMaterial is a place holder for all the drawing parameters required by the renderer to draw a mesh/...
Definition:
YiMaterial.h:27
CYIPlatformViewProxy::OnPresentationModeChanged
virtual void OnPresentationModeChanged(PRESENTATION_MODE ePresentationMode)=0
CYIPlatformViewProxy::Delegate
CYIPlatformViewProxy delegates handling of texture updates to its Delegate.
Definition:
YiPlatformViewProxy.h:40
CYIPlatformViewProxy::LIVE
Definition:
YiPlatformViewProxy.h:62
CYIPlatformViewProxy::Delegate::~Delegate
virtual ~Delegate()=default
CYIPlatformViewProxy::~CYIPlatformViewProxy
virtual ~CYIPlatformViewProxy()
CYIPlatformViewProxy::Delegate::OnTextureUpdated
virtual void OnTextureUpdated()=0
CYIPlatformViewProxy::TEXTURE
Definition:
YiPlatformViewProxy.h:61
CYIPlatformViewProxy::Delegate::OnProxyDestroyed
virtual void OnProxyDestroyed()=0
CYIPlatformViewProxy::PlatformViewHandleSet
CYISignal< const CYIPlatformViewHandle & > PlatformViewHandleSet
Definition:
YiPlatformViewProxy.h:130
CYIPlatformViewProxy::PRESENTATION_MODE
PRESENTATION_MODE
Definition:
YiPlatformViewProxy.h:59
CYIPlatformViewProxy::SetDelegate
void SetDelegate(Delegate *pDelegate)
CYIPlatformViewProxy::GetViewMaterial
virtual const std::shared_ptr< CYIMaterial > & GetViewMaterial() const =0
CYIColor
A class used to represent a color value.
Definition:
YiColor.h:31
CYIPlatformViewProxy
A proxy representation for a platform-native view.
Definition:
YiPlatformViewProxy.h:32
CYISignal< const CYIPlatformViewHandle & >
CYIPlatformViewProxy::SetPlatformViewHandle
virtual void SetPlatformViewHandle(const CYIPlatformViewHandle &handle)=0
CYIPlatformViewProxy::CreateIfSupported
static std::unique_ptr< CYIPlatformViewProxy > CreateIfSupported()
CYIPlatformViewHandle
The CYIPlatformViewHandle is a wrapper object that holds on to the native platform view...
Definition:
YiPlatformViewHandle.h:17
CYIPlatformView
CYIPlatformView is a specialized view which combines the uses of an engine view (created through view...
Definition:
YiPlatformView.h:25
CYIPlatformViewProxy::SetViewRectangle
virtual void SetViewRectangle(const YI_RECT_REL &viewRectangle)=0
CYIPlatformViewProxy::GetPlatformViewHandle
virtual const CYIPlatformViewHandle & GetPlatformViewHandle() const =0
CYIPlatformViewProxy::CYIPlatformViewProxy
CYIPlatformViewProxy()
platform
YiPlatformViewProxy.h
Generated on Thu Aug 23 2018 03:08:03 for You.i Engine by
1.8.11