World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
MemBuffer.h
См. документацию.
1 #pragma once
2 
3 #include <memory>
4 
5 class IMemBuffer {
6  public:
7  IMemBuffer() {}
8  virtual ~IMemBuffer() {}
9 
10  virtual const void *GetData() const = 0;
11  virtual size_t GetSize() const = 0;
12 };
13 typedef std::shared_ptr<IMemBuffer> PMemBuffer;
IMemBuffer
Definition: MemBuffer.h:5
AllocMemBuffer
PMemBuffer AllocMemBuffer(size_t size)
Definition: MemBuffer.cpp:20
IMemBuffer::GetData
virtual const void * GetData() const =0
IMemBuffer::~IMemBuffer
virtual ~IMemBuffer()
Definition: MemBuffer.h:8
IMemBuffer::GetSize
virtual size_t GetSize() const =0
IMemBuffer::IMemBuffer
IMemBuffer()
Definition: MemBuffer.h:7
size
GLsizeiptr size
Definition: SDL_opengl_glext.h:540
PMemBuffer
std::shared_ptr< IMemBuffer > PMemBuffer
Definition: MemBuffer.h:13