#include <RuntimeBitmapSurface.hpp>
|
| std::expected< DataId, std::string > | create (std::uint32_t width, std::uint32_t height, bool transparent, std::uint8_t globalAlpha=255) |
| |
| std::expected< void, std::string > | update (DataId id, LegacyBitmapRGBA8 image, std::optional< std::array< float, 4 > > presentationRect={}, bool preferLinearFiltering=false) |
| |
| std::expected< void, std::string > | fill (DataId id, std::int32_t x, std::int32_t y, std::int32_t width, std::int32_t height, std::uint32_t colorRef) |
| |
| std::expected< void, std::string > | blit (DataId id, const LegacyBitmapRGBA8 &source, std::int32_t x, std::int32_t y, BitmapBlitMode mode=BitmapBlitMode::SourceOver) |
| |
| std::expected< void, std::string > | setGlobalAlpha (DataId id, std::uint8_t alpha) |
| |
| std::optional< RuntimeBitmapExtent > | extent (DataId id) const noexcept |
| |
| std::optional< std::uint8_t > | globalAlpha (DataId id) const noexcept |
| |
| std::shared_ptr< const BitmapRuntimeAsset > | asset (DataId id) const noexcept |
| |
| bool | contains (DataId id) const noexcept |
| |
| bool | remove (DataId id) noexcept |
| |
| void | clear () noexcept |
| |
| std::size_t | size () const noexcept |
| |
Definition at line 38 of file RuntimeBitmapSurface.hpp.
◆ asset()
◆ blit()
◆ clear()
| void monopoly::data::RuntimeBitmapStore::clear |
( |
| ) |
|
|
noexcept |
◆ contains()
| bool monopoly::data::RuntimeBitmapStore::contains |
( |
DataId |
id | ) |
const |
|
inlinenoexcept |
◆ create()
| std::expected< DataId, std::string > monopoly::data::RuntimeBitmapStore::create |
( |
std::uint32_t |
width, |
|
|
std::uint32_t |
height, |
|
|
bool |
transparent, |
|
|
std::uint8_t |
globalAlpha = 255 |
|
) |
| |
◆ extent()
◆ fill()
| std::expected< void, std::string > monopoly::data::RuntimeBitmapStore::fill |
( |
DataId |
id, |
|
|
std::int32_t |
x, |
|
|
std::int32_t |
y, |
|
|
std::int32_t |
width, |
|
|
std::int32_t |
height, |
|
|
std::uint32_t |
colorRef |
|
) |
| |
◆ globalAlpha()
| std::optional< std::uint8_t > monopoly::data::RuntimeBitmapStore::globalAlpha |
( |
DataId |
id | ) |
const |
|
noexcept |
◆ remove()
| bool monopoly::data::RuntimeBitmapStore::remove |
( |
DataId |
id | ) |
|
|
noexcept |
◆ setGlobalAlpha()
| std::expected< void, std::string > monopoly::data::RuntimeBitmapStore::setGlobalAlpha |
( |
DataId |
id, |
|
|
std::uint8_t |
alpha |
|
) |
| |
◆ size()
| std::size_t monopoly::data::RuntimeBitmapStore::size |
( |
| ) |
const |
|
inlinenoexcept |
◆ update()
| std::expected< void, std::string > monopoly::data::RuntimeBitmapStore::update |
( |
DataId |
id, |
|
|
LegacyBitmapRGBA8 |
image, |
|
|
std::optional< std::array< float, 4 > > |
presentationRect = {}, |
|
|
bool |
preferLinearFiltering = false |
|
) |
| |
The documentation for this class was generated from the following files: