NTrace
GPU ray tracing framework
|
#include <Image.hpp>
Classes | |
struct | Channel |
struct | StaticFormat |
Public Types | |
enum | ID { R8_G8_B8 = 0, R8_G8_B8_A8, A8, XBGR_8888, ABGR_8888, RGB_565, RGBA_5551, RGB_Vec3f, RGBA_Vec4f, A_F32, ID_Generic, ID_Max } |
enum | ChannelType { ChannelType_R = 0, ChannelType_G, ChannelType_B, ChannelType_A, ChannelType_Generic, ChannelType_Max } |
enum | ChannelFormat { ChannelFormat_Clamp = 0, ChannelFormat_Int, ChannelFormat_Float, ChannelFormat_Max } |
Public Member Functions | |
ImageFormat (void) | |
ImageFormat (ID id) | |
ImageFormat (const ImageFormat &other) | |
~ImageFormat (void) | |
ID | getID (void) const |
const StaticFormat * | getStaticFormat (void) const |
int | getBPP (void) const |
int | getNumChannels (void) const |
const Channel & | getChannel (int idx) const |
int | findChannel (ChannelType type) const |
bool | hasChannel (ChannelType type) const |
void | set (const ImageFormat &other) |
void | clear (void) |
void | addChannel (const Channel &channel) |
ID | getGLFormat (void) const |
ImageFormat & | operator= (const ImageFormat &other) |
bool | operator== (const ImageFormat &other) const |
bool | operator!= (const ImageFormat &other) const |
enum FW::ImageFormat::ID |
|
inline |
int ImageFormat::findChannel | ( | ChannelType | type | ) | const |
const ImageFormat::Channel & ImageFormat::getChannel | ( | int | idx | ) | const |
ImageFormat::ID ImageFormat::getGLFormat | ( | void | ) | const |
ImageFormat::ID ImageFormat::getID | ( | void | ) | const |
const ImageFormat::StaticFormat * ImageFormat::getStaticFormat | ( | void | ) | const |
|
inline |
|
inline |
|
inline |
bool ImageFormat::operator== | ( | const ImageFormat & | other | ) | const |
void ImageFormat::set | ( | const ImageFormat & | other | ) |