DISTRHO Plugin Framework
Classes | Public Member Functions | Friends | List of all members
NanoImage Class Reference

#include <NanoVG.hpp>

Public Member Functions

 NanoImage ()
 
 NanoImage (const Handle &handle)
 
 ~NanoImage ()
 
NanoImageoperator= (const Handle &handle)
 
bool isValid () const noexcept
 
Size< uint > getSize () const noexcept
 
GLuint getTextureHandle () const
 

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.


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