Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
sw::MockRenderTarget Class Reference

#include <MockRenderTarget.h>

Inheritance diagram for sw::MockRenderTarget:
RenderTargetObject IRenderTarget ResourceObject EngineObject

Public Member Functions

 MockRenderTarget (TextureObject *colorBuffer, TextureObject *depthBuffer, TextureObject *stencilBuffer)
 
uint16 GetWidth ()
 
uint16 GetHeight ()
 
void SetHeight (uint16 value)
 
void SetWidth (uint16 value)
 
- Public Member Functions inherited from RenderTargetObject
 RenderTargetObject (TextureObject *colorBuffer, TextureObject *depthBuffer, TextureObject *stencilBuffer)
 
virtual ~RenderTargetObject ()
 Destruktor kasuje obiekty tekstury głębokości i bufora koloru, jeżeli nie są używane. Jeżeli istnieją odwołania do tych obiektów, to nie są one kasowane, a jedynie usuwa się odwołania pochodzące od RenderTargetObject. More...
 
TextureObjectGetColorBuffer ()
 Zwraca obiekt bufora kolorów. More...
 
TextureObjectGetDepthBuffer ()
 Zwraca obiekt bufora głębokości. More...
 
TextureObjectGetStencilBuffer ()
 Zwraca obiekt bufora stencilu. More...
 
virtual std::string GetResourceName () const override
 
- Public Member Functions inherited from ResourceObject
 ResourceObject (int id)
 
void SetID (unsigned int id)
 Ustawia identyfikator obiektu. More...
 
bool CanDelete (unsigned int &objectRef)
 sprawdza czy można zwolnić zmienną More...
 
bool CanDelete ()
 Funkcja informuje czy obiekt są obiektu, które odwołują się do assetu. More...
 
void AddAssetReference ()
 Dodaje odwołanie plikowe do assetu. More...
 
void AddObjectReference ()
 Dodaje odwołanie bezpośrednie obiektu do assetu. More...
 
void DeleteAssetReference ()
 Kasuje odwołanie plikowe do assetu. More...
 
void DeleteObjectReference ()
 Kasuje odwołanie bezpośrednie obiektu do assetu. More...
 
unsigned int GetID ()
 Zwraca identyfikator nadany assetowi. More...
 
- Public Member Functions inherited from EngineObject
TypeID GetType () const
 
std::string GetTypeName () const
 
virtual void Serialize (ISerializer *ser) const
 Implements default serialization. Serializes only declared properties. More...
 
virtual void Deserialize (IDeserializer *deser)
 Implements default deserialization. More...
 
virtual Size MemorySize ()
 
template<typename TargetType >
TargetType * DynamicCast ()
 

Static Public Member Functions

static MockRenderTargetCreateScreenRenderTarget ()
 
static MockRenderTargetCreateRenderTarget (const std::wstring &name, const RenderTargetDescriptor &renderTargetDescriptor)
 

Protected Member Functions

 ~MockRenderTarget ()
 
- Protected Member Functions inherited from IRenderTarget
 IRenderTarget ()
 
virtual ~IRenderTarget ()=default
 
- Protected Member Functions inherited from ResourceObject
virtual ~ResourceObject ()=default
 Nie każdy może skasować obiekt. More...
 

Private Member Functions

 RTTR_ENABLE (RenderTargetObject)
 

Static Private Member Functions

static bool ValidateDescriptor (const RenderTargetDescriptor &renderTargetDescriptor)
 

Private Attributes

uint16 m_height
 
uint16 m_width
 

Additional Inherited Members

- Protected Attributes inherited from RenderTargetObject
ResourcePtr< TextureObjectm_colorBuffer
 Pozwala na dostęp do bufora kolorów dla innych obiektów. Może być nullptrem. More...
 
ResourcePtr< TextureObjectm_depthBuffer
 Pozwala na dostęp do bufora głębokości. Może być nullptrem. More...
 
ResourcePtr< TextureObjectm_stencilBuffer
 Pozwala na dostęp do bufora stencil. Może być nulltrem. More...
 

Constructor & Destructor Documentation

sw::MockRenderTarget::~MockRenderTarget ( )
protected
sw::MockRenderTarget::MockRenderTarget ( TextureObject colorBuffer,
TextureObject depthBuffer,
TextureObject stencilBuffer 
)

Member Function Documentation

MockRenderTarget * sw::MockRenderTarget::CreateRenderTarget ( const std::wstring &  name,
const RenderTargetDescriptor renderTargetDescriptor 
)
static
MockRenderTarget * sw::MockRenderTarget::CreateScreenRenderTarget ( )
static
uint16 sw::MockRenderTarget::GetHeight ( )
inline
uint16 sw::MockRenderTarget::GetWidth ( )
inline
sw::MockRenderTarget::RTTR_ENABLE ( RenderTargetObject  )
private
void sw::MockRenderTarget::SetHeight ( uint16  value)
inline
void sw::MockRenderTarget::SetWidth ( uint16  value)
inline
bool sw::MockRenderTarget::ValidateDescriptor ( const RenderTargetDescriptor renderTargetDescriptor)
staticprivate

Member Data Documentation

uint16 sw::MockRenderTarget::m_height
private
uint16 sw::MockRenderTarget::m_width
private

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