|
API Documentation
|
|
|
37 ImageBase (
unsigned int width,
unsigned int height,
unsigned int depth,
PIXEL_FORMAT format,
unsigned int pixelOrBlockByteSize = 0,
unsigned int rowByteSize = 0,
unsigned int sliceByteSize = 0) noexcept ;
51 ImageBase (
unsigned int width,
unsigned int height,
unsigned int depth,
unsigned int arraySize,
unsigned int mips,
PIXEL_FORMAT format,
unsigned int pixelOrBlockByteSize = 0) noexcept ;
84 unsigned int getWidth (
unsigned int mip = 0u) const ;
89 unsigned int getHeight (
unsigned int mip = 0u) const ;
174 nkMaths::Vector
getPixel (
unsigned int x,
unsigned int y,
unsigned int z = 0u,
unsigned int mip = 0u) const ;
187 void setPixel (
nkMaths::Vector v,
unsigned int x,
unsigned int y,
unsigned int z = 0u,
unsigned int mip = 0u) ;
unsigned int getMipCount() const
void setCubeMap(bool value)
virtual nkMemory::BufferView getDataBuffer() const =0
void setAlphaPremultiplied(bool value)
Encompasses all API of component NilkinsMaths.
Definition: IntVector.h:7
unsigned int getWidth(unsigned int mip=0u) const
unsigned int getRowByteSize(unsigned int mip=0u) const
virtual unsigned char * getDataPtr() const =0
void setPixel(nkMaths::Vector v, unsigned int x, unsigned int y, unsigned int z=0u, unsigned int mip=0u)
unsigned int getDepthOrArraySize(unsigned int mip=0u) const
unsigned int getPixelByteSize() const
unsigned int getSliceByteSize(unsigned int mip=0u) const
Base for all image data classes.
Definition: ImageBase.h:19
void setFormat(PIXEL_FORMAT value)
Holds information about alignment constraints.
Definition: AlignmentDescriptor.h:12
Encompasses all API of component NilkinsImages.
Definition: BmpEncoder.h:7
void setPixelOrBlockByteSize(unsigned int value)
Image decompress(const AlignmentDescriptor &alignmentDescriptor=AlignmentDescriptor()) const
PIXEL_FORMAT
Lists formats for pixels.
Definition: PixelFormat.h:16
Describes an image within an array. Used internally.
Definition: ImageDescriptor.h:12
PIXEL_FORMAT getFormat() const
unsigned int getHeight(unsigned int mip=0u) const
virtual unsigned long long getDataByteSize() const =0
bool getAlphaPremultiplied() const
nkMaths::Vector getPixel(unsigned int x, unsigned int y, unsigned int z=0u, unsigned int mip=0u) const
virtual bool isView() const =0
Holds all information required for an image, with ownership over the data.
Definition: Image.h:14
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7