Support Forum       G3D Web Page     
Static Public Member Functions | List of all members
G3D::ImageConvert Class Reference

Image conversion utility methods. More...

Static Public Member Functions

static shared_ptr< PixelTransferBufferconvertBuffer (const shared_ptr< PixelTransferBuffer > &src, const ImageFormat *dstFormat)
 Converts image buffer to another format if supported, otherwise returns null ref. More...
 

Detailed Description

Image conversion utility methods.

Member Function Documentation

◆ convertBuffer()

static shared_ptr<PixelTransferBuffer> G3D::ImageConvert::convertBuffer ( const shared_ptr< PixelTransferBuffer > &  src,
const ImageFormat dstFormat 
)
static

Converts image buffer to another format if supported, otherwise returns null ref.

If no conversion is necessary then src reference is returned and a new buffer is NOT created.


documentation generated on Wed Nov 24 2021 08:01:57 using doxygen 1.8.15