Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Faro::GraphicsBufferContainer Class Reference

#include <GraphicsBufferContainer.hpp>

Inheritance diagram for Faro::GraphicsBufferContainer:
Faro::IGraphicsAdapterChild Faro::IObject Faro::GraphicsSwapchainImageContainer

Public Member Functions

virtual void Init (GraphicsAdapter *adapter, GraphicsBufferCreateDesc createDesc)
 
void Destroy () override
 Run the destruction logic of this class. This also frees its memory.
 
GraphicsBufferGet ()
 
void Init (GraphicsAdapter *adapter)
 Initialize this as a child object for an adapter. Also invokes IObject::Init, derived classes should use that for initialization.
 
GraphicsAdapterGetAdapter ()
 
template<class T >
T * GetTypedAdapter ()
 

Public Attributes

GraphicsBufferCreateDesc createDesc
 

Protected Member Functions

void Init () override
 Run the initialization logic of this object. Should be overriden by deriving classes.
 

Protected Attributes

GraphicsBufferresources [2] = { nullptr, nullptr }
 

Member Function Documentation

◆ Destroy()

void Faro::GraphicsBufferContainer::Destroy ( )
overridevirtual

Run the destruction logic of this class. This also frees its memory.

Warning
When overriding, the super call must be performed last

Reimplemented from Faro::IObject.

◆ Get()

GraphicsBuffer * Faro::GraphicsBufferContainer::Get ( )

◆ GetAdapter()

GraphicsAdapter * Faro::IGraphicsAdapterChild::GetAdapter ( )
inherited

◆ GetTypedAdapter()

template<class T >
T * Faro::IGraphicsAdapterChild::GetTypedAdapter ( )
inlineinherited

◆ Init() [1/3]

void Faro::IGraphicsAdapterChild::Init ( )
overrideprotectedvirtualinherited

Run the initialization logic of this object. Should be overriden by deriving classes.

Reimplemented from Faro::IObject.

◆ Init() [2/3]

void Faro::IGraphicsAdapterChild::Init ( GraphicsAdapter adapter)
inherited

Initialize this as a child object for an adapter. Also invokes IObject::Init, derived classes should use that for initialization.

Parameters
adapterGraphics adapter to initialize this child on.

◆ Init() [3/3]

void Faro::GraphicsBufferContainer::Init ( GraphicsAdapter adapter,
GraphicsBufferCreateDesc  createDesc 
)
virtual

Member Data Documentation

◆ createDesc

GraphicsBufferCreateDesc Faro::GraphicsBufferContainer::createDesc

◆ resources

GraphicsBuffer* Faro::GraphicsBufferContainer::resources[2] = { nullptr, nullptr }
protected

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