libgui 3.00
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
GuiImageData::DecodedImage Struct Reference

CPU-only decode result from decodeToRgba(): raw RGBA8 pixel data that has NOT been uploaded to a platform texture yet. More...

#include <GuiImageData.h>

Public Member Functions

bool valid () const
 

Public Attributes

std::unique_ptr< uint8_t, decltype(&free)> rgba {nullptr, free}
 row-major RGBA8, or null if decode failed
 
int width = 0
 
int height = 0
 
bool assetScaled = true
 False when maxw/maxh constrained this decode to a caller-specified pixel box.
 

Detailed Description

CPU-only decode result from decodeToRgba(): raw RGBA8 pixel data that has NOT been uploaded to a platform texture yet.

Definition at line 77 of file GuiImageData.h.

Member Function Documentation

◆ valid()

bool GuiImageData::DecodedImage::valid ( ) const
inline

Definition at line 84 of file GuiImageData.h.

Member Data Documentation

◆ assetScaled

bool GuiImageData::DecodedImage::assetScaled = true

False when maxw/maxh constrained this decode to a caller-specified pixel box.

Definition at line 83 of file GuiImageData.h.

◆ height

int GuiImageData::DecodedImage::height = 0

Definition at line 81 of file GuiImageData.h.

◆ rgba

std::unique_ptr<uint8_t, decltype(&free)> GuiImageData::DecodedImage::rgba {nullptr, free}

row-major RGBA8, or null if decode failed

Definition at line 79 of file GuiImageData.h.

◆ width

int GuiImageData::DecodedImage::width = 0

Definition at line 80 of file GuiImageData.h.


The documentation for this struct was generated from the following file: