VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::RenderTarget Class Referenceabstract

#include <platform/graphics/renderTarget.h>

Inheritance diagram for visutwin::canvas::RenderTarget:
[legend]

Public Member Functions

bool autoResolve () const
TexturecolorBuffer () const
int colorBufferCount () const
TexturedepthBuffer () const
int face () const
TexturegetColorBuffer (size_t index) const
bool hasDepth () const
bool hasDepthBuffer () const
bool hasMipmaps () const
bool hasStencil () const
int height () const
int key () const
int mipLevel () const
const std::string & name () const
 RenderTarget (const RenderTargetOptions &options={})
void resize (int width, int height)
int samples () const
int width () const
virtual ~RenderTarget ()

Protected Member Functions

virtual void createFrameBuffers ()=0
virtual void destroyFrameBuffers ()=0
GraphicsDevicedevice () const
void validateMrt ()

Detailed Description

Definition at line 44 of file renderTarget.h.

Constructor & Destructor Documentation

◆ RenderTarget()

◆ ~RenderTarget()

visutwin::canvas::RenderTarget::~RenderTarget ( )
virtual

Definition at line 117 of file renderTarget.cpp.

Member Function Documentation

◆ autoResolve()

bool visutwin::canvas::RenderTarget::autoResolve ( ) const
inline

Definition at line 78 of file renderTarget.h.

◆ colorBuffer()

Texture * visutwin::canvas::RenderTarget::colorBuffer ( ) const
inline

◆ colorBufferCount()

int visutwin::canvas::RenderTarget::colorBufferCount ( ) const
inline

◆ createFrameBuffers()

virtual void visutwin::canvas::RenderTarget::createFrameBuffers ( )
protectedpure virtual

◆ depthBuffer()

Texture * visutwin::canvas::RenderTarget::depthBuffer ( ) const
inline

Definition at line 77 of file renderTarget.h.

◆ destroyFrameBuffers()

virtual void visutwin::canvas::RenderTarget::destroyFrameBuffers ( )
protectedpure virtual

◆ device()

GraphicsDevice * visutwin::canvas::RenderTarget::device ( ) const
inlineprotected

Definition at line 86 of file renderTarget.h.

◆ face()

int visutwin::canvas::RenderTarget::face ( ) const
inline

Definition at line 81 of file renderTarget.h.

◆ getColorBuffer()

Texture * visutwin::canvas::RenderTarget::getColorBuffer ( size_t index) const

◆ hasDepth()

bool visutwin::canvas::RenderTarget::hasDepth ( ) const
inline

◆ hasDepthBuffer()

bool visutwin::canvas::RenderTarget::hasDepthBuffer ( ) const
inline

Definition at line 62 of file renderTarget.h.

◆ hasMipmaps()

bool visutwin::canvas::RenderTarget::hasMipmaps ( ) const
inline

Definition at line 67 of file renderTarget.h.

◆ hasStencil()

bool visutwin::canvas::RenderTarget::hasStencil ( ) const
inline

Definition at line 71 of file renderTarget.h.

◆ height()

int visutwin::canvas::RenderTarget::height ( ) const

◆ key()

int visutwin::canvas::RenderTarget::key ( ) const
inline

Definition at line 83 of file renderTarget.h.

◆ mipLevel()

int visutwin::canvas::RenderTarget::mipLevel ( ) const
inline

Definition at line 73 of file renderTarget.h.

◆ name()

const std::string & visutwin::canvas::RenderTarget::name ( ) const
inline

Definition at line 75 of file renderTarget.h.

◆ resize()

void visutwin::canvas::RenderTarget::resize ( int width,
int height )

◆ samples()

int visutwin::canvas::RenderTarget::samples ( ) const
inline

Definition at line 60 of file renderTarget.h.

◆ validateMrt()

void visutwin::canvas::RenderTarget::validateMrt ( )
protected

Definition at line 186 of file renderTarget.cpp.

References colorBuffer(), height(), and width().

Referenced by RenderTarget(), and resize().

◆ width()

int visutwin::canvas::RenderTarget::width ( ) const

The documentation for this class was generated from the following files: