|
Blender V5.3
|
#include <BKE_icons.hh>
Public Attributes | |
| int | width |
| int | height |
| int | channels |
| Span< uint8_t > | buffer |
Simple wrapper to reference a drawable pixel buffer (non-owning). Useful for draw functions that don't care where that buffer comes from (e.g. an ImBuf icon or a PreviewImage icon).
Definition at line 118 of file BKE_icons.hh.
Reference to the pixels to be drawn (size of width * height * channels).
Definition at line 127 of file BKE_icons.hh.
Referenced by blender::file_draw_preview().
| int blender::IconBufferRef::channels |
The number of channels per pixel.
Definition at line 124 of file BKE_icons.hh.
Referenced by blender::file_draw_preview().
| int blender::IconBufferRef::height |
Height in pixels.
Definition at line 122 of file BKE_icons.hh.
Referenced by blender::file_draw_preview().
| int blender::IconBufferRef::width |
Width in pixels.
Definition at line 120 of file BKE_icons.hh.
Referenced by blender::file_draw_preview().