2 #ifndef _YI_RENDER_TARGET_H_ 3 #define _YI_RENDER_TARGET_H_ 195 float m_fDeviceHorizontalPixelRatio;
196 float m_fDeviceVerticalPixelRatio;
197 float m_fDeviceDiagonalPixelRatio;
204 uint32_t m_AttributeFlags;
211 #endif // _YI_RENDER_TARGET_H_ void SetViewport(const CYIViewport &viewport)
std::shared_ptr< CYIAssetFramebuffer > m_pFramebuffer
Definition: YiRenderTarget.h:192
std::shared_ptr< CYIAssetFramebuffer > GetFramebufferAsset() const
static std::unique_ptr< CYIScreenRenderTarget > CreateScreenTarget(const CYIViewport &viewport)
Rendering results are sent to an offscreen Buffer in GPU memory, no depth info.
Definition: YiRenderTarget.h:66
void SetDeviceDiagonalPixelRatio(float fDevicePixelRatio)
#define YI_TYPE_BASES(...)
Definition: YiRtti.h:350
float GetDeviceVerticalPixelRatio() const
Definition: YiRenderTarget.h:55
const CYIColor & GetClearColor() const
void SetClearColor(const CYIColor &clearColor)
const CYIViewport & GetViewport() const
std::shared_ptr< IYIGPUObject > GetFramebuffer() const
Definition: YiViewport.h:12
Definition: YiRenderTarget.h:57
Defines a target for the rendering results to be sent to.
Definition: YiRenderTarget.h:49
Rendering results are sent to an offscreen Buffer in GPU memory, no color info.
Definition: YiRenderTarget.h:67
Rendering results are sent to an offscreen Buffer in GPU memory, both depth and color info...
Definition: YiRenderTarget.h:68
void SetDeviceVerticalPixelRatio(float fDevicePixelRatio)
Defines an offscreen target for the rendering results to be sent to.
Definition: YiOffscreenRenderTarget.h:26
float GetDeviceDiagonalPixelRatio() const
Definition: YiScreenRenderTarget.h:17
void SetDeviceHorizontalPixelRatio(float fDevicePixelRatio)
Rendering results are sent to the Display Back Buffer.
Definition: YiRenderTarget.h:65
RENDER_TARGET_TYPE GetTargetType() const
float GetDeviceHorizontalPixelRatio() const
static std::unique_ptr< CYIOffscreenRenderTarget > CreateOffscreenTarget(RENDER_TARGET_TYPE eTargetType, uint32_t uTargetWidth, uint32_t uTargetHeight)
RENDER_TARGET_ATTRIBUTE
Definition: YiRenderTarget.h:53
RENDER_TARGET_TYPE
Definition: YiRenderTarget.h:63
A class used to represent a color value.
Definition: YiColor.h:31
void SetAttribute(RENDER_TARGET_ATTRIBUTE eAttribute, bool bValue)
Definition: YiRenderTarget.h:56
bool GetAttribute(RENDER_TARGET_ATTRIBUTE eAttribute) const
virtual ~CYIRenderTarget()