Castor3D 0.16.0
Multiplatform 3D engine
|
#include <FontTexture.hpp>
Classes | |
struct | Resource |
Public Types | |
using | ResourcePtrT = PointerT< ResourceT > |
using | OnChangedFunction = castor::Function< void( DoubleBufferedResourceT const & ) > |
using | OnChanged = castor::SignalT< OnChangedFunction > |
Public Member Functions | |
void | update (bool clean) |
Updates the resource. | |
Resource const & | getResource () const |
Public Member Functions inherited from castor::OwnedBy< Engine > | |
Engine * | getOwner () const |
Public Attributes | |
OnChanged | onResourceChanged |
Protected Member Functions | |
DoubleBufferedResourceT (Engine &parent, ResourcePtrT back, ResourcePtrT front) | |
virtual C3D_API | ~DoubleBufferedResourceT () noexcept=default |
void | doInitialise (RenderDevice const &device, QueueData const &queueData) |
Initialises the texture. | |
void | doCleanup () |
Flushes the teture. | |
void | doRefresh (bool clean, bool front) |
Orders events to refresh the resource. | |
Resource & | doGetResource () |
Protected Member Functions inherited from castor::OwnedBy< Engine > | |
OwnedBy (Engine &owner) | |
Constructor. | |
Protected Attributes | |
Resource | m_back |
Resource | m_front |
using castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::OnChanged = castor::SignalT< OnChangedFunction > |
using castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::OnChangedFunction = castor::Function< void( DoubleBufferedResourceT const & ) > |
using castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::ResourcePtrT = PointerT< ResourceT > |
|
inlineprotected |
|
protectedvirtualdefaultnoexcept |
|
inlineprotected |
Flushes the teture.
References castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::m_back, and castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::m_front.
|
inlineprotected |
|
inlineprotected |
Initialises the texture.
[in] | device | The GPU device. |
[in] | queueData | The queue receiving the GPU commands. |
References castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::m_back, and castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::m_front.
|
inlineprotected |
Orders events to refresh the resource.
References castor3d::getEngine(), castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::m_back, castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::m_front, castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::onResourceChanged, castor3d::postPreRenderGpuEvent(), and castor3d::postQueueRenderCpuEvent().
Referenced by castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::update().
|
inline |
References castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::m_front.
Referenced by castor3d::FontTexture::getTexture().
|
inline |
Updates the resource.
References castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::doRefresh().
|
protected |
|
protected |
Referenced by castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::doCleanup(), castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::doGetResource(), castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::doInitialise(), castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::doRefresh(), and castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::getResource().
OnChanged castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::onResourceChanged |
The signal used to notify clients that this resource has changed.
Referenced by castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::doRefresh().