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

#include <MockBuffer.h>

Inheritance diagram for sw::MockBuffer:
BufferObject IBuffer ResourceObject EngineObject

Public Member Functions

 MockBuffer (const std::wstring &name, const BufferInfo &descriptor)
 
virtual MemoryChunk CopyData () override
 Kopiuje dane z bufora i umieszcza je w zwracanym MemoryChunku. More...
 
virtual const BufferInfoGetDescriptor () const
 Returns buffer descriptor. More...
 
- Public Member Functions inherited from BufferObject
 BufferObject (unsigned int elementSize, unsigned int elementCount)
 
unsigned int GetStride ()
 Zwraca rozmiar pojedynczego elementu w buforze. More...
 
unsigned int GetElementSize ()
 Zwraca rozmiar pojedynczego elementu w buforze. More...
 
unsigned int GetElementCount ()
 Zwraca liczbę elementów w buforze. More...
 
virtual std::string GetResourceName () const override
 Zwraca nazwę zasobu. To może być nazwa pliku, na podstawie którego stworzono zasób, ale zasadniczo interpretacja jest dowolna. More...
 
- 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 MockBufferCreateFromMemory (const std::wstring &name, const uint8 *data, const BufferInfo &bufferInfo)
 

Protected Member Functions

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

Private Member Functions

 RTTR_ENABLE (BufferObject)
 

Private Attributes

BufferInfo m_descriptor
 

Additional Inherited Members

- Protected Attributes inherited from BufferObject
unsigned int m_elementSize
 Rozmiar elementu. More...
 
unsigned int m_elementCount
 Liczba elementów. More...
 

Constructor & Destructor Documentation

sw::MockBuffer::~MockBuffer ( )
protected
sw::MockBuffer::MockBuffer ( const std::wstring &  name,
const BufferInfo descriptor 
)

Member Function Documentation

MemoryChunk sw::MockBuffer::CopyData ( )
overridevirtual

Kopiuje dane z bufora i umieszcza je w zwracanym MemoryChunku.

Implements IBuffer.

MockBuffer * sw::MockBuffer::CreateFromMemory ( const std::wstring &  name,
const uint8 data,
const BufferInfo bufferInfo 
)
static
virtual const BufferInfo& sw::MockBuffer::GetDescriptor ( ) const
inlinevirtual

Returns buffer descriptor.

Implements IBuffer.

sw::MockBuffer::RTTR_ENABLE ( BufferObject  )
private

Member Data Documentation

BufferInfo sw::MockBuffer::m_descriptor
private

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