|
Dusk Audio Framework
|
#include <NanoVG.hpp>
Public Member Functions | |
| NanoImage () | |
| NanoImage (const Handle &handle) | |
| ~NanoImage () | |
| NanoImage & | operator= (const Handle &handle) |
| bool | isValid () const noexcept |
| Size< uint > | getSize () const noexcept |
| GLuint | getTextureHandle () const |
| void | update (const uchar *data) |
Friends | |
| class | NanoVG |
NanoVG Image class.
This implements NanoVG images as a C++ class where deletion is handled automatically. Images need to be created within a NanoVG or NanoWidget class.
| NanoImage::NanoImage | ( | ) |
Constructor for an invalid/null image.
| NanoImage::NanoImage | ( | const Handle & | handle | ) |
Constructor.
| NanoImage::~NanoImage | ( | ) |
Destructor.
| NanoImage & NanoImage::operator= | ( | const Handle & | handle | ) |
Create a new image without recreating the C++ class.
|
noexcept |
Wherever this image is valid.
|
noexcept |
Get size.
| GLuint NanoImage::getTextureHandle | ( | ) | const |
Get the OpenGL texture handle.
| void NanoImage::update | ( | const uchar * | data | ) |
Update the image data in-place.