Dusk Audio Framework
Loading...
Searching...
No Matches
NanoImage Class Reference

#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

Detailed Description

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.

Constructor & Destructor Documentation

◆ NanoImage() [1/2]

NanoImage::NanoImage ( )

Constructor for an invalid/null image.

◆ NanoImage() [2/2]

NanoImage::NanoImage ( const Handle & handle)

Constructor.

◆ ~NanoImage()

NanoImage::~NanoImage ( )

Destructor.

Member Function Documentation

◆ operator=()

NanoImage & NanoImage::operator= ( const Handle & handle)

Create a new image without recreating the C++ class.

◆ isValid()

bool NanoImage::isValid ( ) const
noexcept

Wherever this image is valid.

◆ getSize()

Size< uint > NanoImage::getSize ( ) const
noexcept

Get size.

◆ getTextureHandle()

GLuint NanoImage::getTextureHandle ( ) const

Get the OpenGL texture handle.

◆ update()

void NanoImage::update ( const uchar * data)

Update the image data in-place.


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