#include <surfacedescriptor.h>
Public Member Functions | |
SurfaceDescriptor ()=default | |
virtual | ~SurfaceDescriptor ()=default |
SurfaceDescriptor (uint32_t width, uint32_t height, ESurfaceDataType dataType, ESurfaceChannels channels) | |
SurfaceDescriptor (uint32_t width, uint32_t height, ESurfaceDataType dataType, ESurfaceChannels channels, EColorSpace colorSpace) | |
int | getWidth () const |
int | getHeight () const |
int | getPitch () const |
int | getNumChannels () const |
int | getChannelSize () const |
int | getBytesPerPixel () const |
uint64_t | getSizeInBytes () const |
ESurfaceDataType | getDataType () const |
ESurfaceChannels | getChannels () const |
EColorSpace | getColorSpace () const |
bool | isValid () const |
bool | operator== (const SurfaceDescriptor &other) const |
bool | operator!= (const SurfaceDescriptor &other) const |
Public Attributes | |
uint32_t | mWidth = 0 |
Property: 'Width' specifies the width of the texture. More... | |
uint32_t | mHeight = 0 |
Property: 'Height' specifies the height of the texture. More... | |
ESurfaceDataType | mDataType = nap::ESurfaceDataType::BYTE |
Property: 'DataType' specifies the amount of bytes in a single channel. More... | |
ESurfaceChannels | mChannels = nap::ESurfaceChannels::BGRA |
Property: 'Channels' specifies the channels and their order. More... | |
EColorSpace | mColorSpace = EColorSpace::Linear |
Property: 'ColorSpace' specifies linear or SRGB space. Only applicable to BYTE datatypes. More... | |
Used to describe the data of all 2D surfaces, including 2DTextures and Bitmaps.
|
default |
|
virtualdefault |
SurfaceDescriptor | ( | uint32_t | width, |
uint32_t | height, | ||
ESurfaceDataType | dataType, | ||
ESurfaceChannels | channels | ||
) |
SurfaceDescriptor | ( | uint32_t | width, |
uint32_t | height, | ||
ESurfaceDataType | dataType, | ||
ESurfaceChannels | channels, | ||
EColorSpace | colorSpace | ||
) |
int getBytesPerPixel | ( | ) | const |
ESurfaceChannels getChannels | ( | ) | const |
int getChannelSize | ( | ) | const |
EColorSpace getColorSpace | ( | ) | const |
ESurfaceDataType getDataType | ( | ) | const |
int getHeight | ( | ) | const |
int getNumChannels | ( | ) | const |
int getPitch | ( | ) | const |
uint64_t getSizeInBytes | ( | ) | const |
int getWidth | ( | ) | const |
bool isValid | ( | ) | const |
bool operator!= | ( | const SurfaceDescriptor & | other | ) | const |
bool operator== | ( | const SurfaceDescriptor & | other | ) | const |
ESurfaceChannels mChannels = nap::ESurfaceChannels::BGRA |
Property: 'Channels' specifies the channels and their order.
EColorSpace mColorSpace = EColorSpace::Linear |
Property: 'ColorSpace' specifies linear or SRGB space. Only applicable to BYTE datatypes.
ESurfaceDataType mDataType = nap::ESurfaceDataType::BYTE |
Property: 'DataType' specifies the amount of bytes in a single channel.
uint32_t mHeight = 0 |
Property: 'Height' specifies the height of the texture.
uint32_t mWidth = 0 |
Property: 'Width' specifies the width of the texture.