Ogre::uint16 u16
Definition: TypeDefine.h:22
Ogre::uint8 u8
Definition: TypeDefine.h:21
Emulates a VRAM block.
Definition: Vram.h:27
void AddImageBuffer(u16 x, u16 y, u16 width, u16 height, u8 *buffer)
Adds an image buffer to an existing buffer.
u16 height_
The VRAM block height.
Definition: Vram.h:132
static std::unique_ptr< Vram > MakeInstance()
Creates a VRAM block.
Definition: Vram.h:36
void PutU8(u16 x, u16 y, u8 byte)
Writes 8 bytes to the VRAM block.
Definition: Vram.cpp:54
u8 vram_[2048 *512]
The data block.
Definition: Vram.h:122
void Save(const Ogre::String &file)
Saves the contents of the VRAM block to a file.
Definition: Vram.cpp:29
u16 width_
The VRAM block width.
Definition: Vram.h:127
void PutU16(u16 x, u16 y, u16 bytes)
Writes 16 bytes to the VRAM block.
Definition: Vram.cpp:76
Vram()
Constructor.
Definition: Vram.cpp:21
u16 GetU16(u16 x, u16 y) const
Reads 16 bytes from the VRAM block.
Definition: Vram.cpp:89
u16 GetHeight() const
Retrieves the block width.
Definition: Vram.cpp:27
u16 GetWidth() const
Retrieves the block width.
Definition: Vram.cpp:25
u8 GetU8(u16 x, u16 y) const
Reads 8 bytes from the VRAM block.
Definition: Vram.cpp:65
virtual ~Vram()
Destructor.
Definition: Vram.cpp:23
Ogre::String String
Definition: TypeDefine.h:37