Sleeping Wombat GUI
0.100
swGUI
|
#include <MockBuffer.h>
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 BufferInfo & | GetDescriptor () 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 MockBuffer * | CreateFromMemory (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... | |
|
protected |
sw::MockBuffer::MockBuffer | ( | const std::wstring & | name, |
const BufferInfo & | descriptor | ||
) |
|
overridevirtual |
Kopiuje dane z bufora i umieszcza je w zwracanym MemoryChunku.
Implements IBuffer.
|
static |
|
inlinevirtual |
Returns buffer descriptor.
Implements IBuffer.
|
private |
|
private |