@ -68,18 +68,18 @@ template<UnsignedInt dimensions> class ImageData {
* The data are expected to be of proper size for given @ p storage
* parameters .
*/
explicit ImageData ( PixelStorage storage , PixelFormat format , PixelType type , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * importerState = nullptr ) ;
explicit ImageData ( PixelStorage storage , PixelFormat format , PixelType type , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * importerState = nullptr ) noexcept ;
/** @overload
* Similar to the above , but uses default @ ref PixelStorage parameters .
*/
explicit ImageData ( PixelFormat format , PixelType type , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * importerState = nullptr ) : ImageData { { } , format , type , size , std : : move ( data ) , importerState } { }
explicit ImageData ( PixelFormat format , PixelType type , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * importerState = nullptr ) noexcept : ImageData { { } , format , type , size , std : : move ( data ) , importerState } { }
# ifdef MAGNUM_BUILD_DEPRECATED
/** @copybrief ImageData(PixelFormat, PixelType, const VectorTypeFor<dimensions, Int>&, Containers::Array<char>&&, const void*)
* @ deprecated Use @ ref ImageData ( PixelFormat , PixelType , const VectorTypeFor < dimensions , Int > & , Containers : : Array < char > & & , const void * ) instead .
*/
explicit CORRADE_DEPRECATED ( " use ImageData(PixelFormat, PixelType, const VectorTypeFor&, Containers::Array&&) instead " ) ImageData(PixelFormat format, PixelType type, const VectorTypeFor<dimensions, Int>& size, void* data): ImageData { format , type , size , Containers : : Array < char > { reinterpret_cast < char * > ( data ) , Magnum : : Implementation : : imageDataSizeFor ( format , type , size ) } } { }
explicit CORRADE_DEPRECATED ( " use ImageData(PixelFormat, PixelType, const VectorTypeFor&, Containers::Array&&) instead " ) ImageData(PixelFormat format, PixelType type, const VectorTypeFor<dimensions, Int>& size, void* data) noexcept : ImageData { format , type , size , Containers : : Array < char > { reinterpret_cast < char * > ( data ) , Magnum : : Implementation : : imageDataSizeFor ( format , type , size ) } } { }
# endif
# ifndef MAGNUM_TARGET_GLES
@ -97,7 +97,7 @@ template<UnsignedInt dimensions> class ImageData {
* @ requires_gl Compressed pixel storage is hardcoded in OpenGL ES and
* WebGL .
*/
explicit ImageData ( CompressedPixelStorage storage , CompressedPixelFormat format , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * importerState = nullptr ) ;
explicit ImageData ( CompressedPixelStorage storage , CompressedPixelFormat format , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * importerState = nullptr ) noexcept ;
# endif
/**
@ -110,7 +110,7 @@ template<UnsignedInt dimensions> class ImageData {
* Similar the above , but uses default @ ref CompressedPixelStorage
* parameters ( or the hardcoded ones in OpenGL ES and WebGL ) .
*/
explicit ImageData ( CompressedPixelFormat format , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * importerState = nullptr ) ;
explicit ImageData ( CompressedPixelFormat format , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * importerState = nullptr ) noexcept ;
/** @brief Copying is not allowed */
ImageData ( const ImageData < dimensions > & ) = delete ;
@ -297,14 +297,14 @@ template<UnsignedInt dimensions> ImageData<dimensions>::ImageData(
# ifndef MAGNUM_TARGET_GLES
const CompressedPixelStorage storage ,
# endif
const CompressedPixelFormat format , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * importerState ) : _compressed { true } ,
const CompressedPixelFormat format , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * importerState ) noexcept : _compressed { true } ,
# ifndef MAGNUM_TARGET_GLES
_compressedStorage { storage } ,
# endif
_compressedFormat { format } , _size { size } , _data { std : : move ( data ) } , _importerState { importerState } { }
# ifndef MAGNUM_TARGET_GLES
template < UnsignedInt dimensions > inline ImageData < dimensions > : : ImageData ( const CompressedPixelFormat format , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * const importerState ) : ImageData { { } , format , size , std : : move ( data ) , importerState } { }
template < UnsignedInt dimensions > inline ImageData < dimensions > : : ImageData ( const CompressedPixelFormat format , const VectorTypeFor < dimensions , Int > & size , Containers : : Array < char > & & data , const void * const importerState ) noexcept : ImageData { { } , format , size , std : : move ( data ) , importerState } { }
# endif
template < UnsignedInt dimensions > inline ImageData < dimensions > : : ImageData ( ImageData < dimensions > & & other ) noexcept : _compressed { std : : move ( other . _compressed ) } , _size { std : : move ( other . _size ) } , _data { std : : move ( other . _data ) } , _importerState { std : : move ( other . _importerState ) } {