20#ifndef GAL_BITMAP_TEXTURE_H
21#define GAL_BITMAP_TEXTURE_H
51GAL_API std::vector<uint8_t>
RgbToRgba(
const uint8_t* aRgb,
const uint8_t* aAlpha,
size_t aPixelCount );
The Cairo implementation of the graphics abstraction layer.
std::vector< uint8_t > ImageToRgba(const wxImage &aImage)
The pixels of aImage as tightly packed RGBA, transparent where it has alpha or a mask.
constexpr size_t BITMAP_CACHE_MAX_BYTES
Texture memory the GPU canvases may hold for placed bitmaps before they evict the oldest.
std::vector< uint8_t > RgbToRgba(const uint8_t *aRgb, const uint8_t *aAlpha, size_t aPixelCount)
Expand packed RGB to tightly packed RGBA.
wxImage FitImageToTexture(const wxImage &aImage, int aMaxTextureSize)
Fit an image into the largest texture a GPU can hold.