NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::ImageFormat Class Reference

#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 StaticFormatgetStaticFormat (void) const
 
int getBPP (void) const
 
int getNumChannels (void) const
 
const ChannelgetChannel (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
 
ImageFormatoperator= (const ImageFormat &other)
 
bool operator== (const ImageFormat &other) const
 
bool operator!= (const ImageFormat &other) const
 

Detailed Description

Definition at line 35 of file Image.hpp.

Member Enumeration Documentation

Enumerator
ChannelFormat_Clamp 
ChannelFormat_Int 
ChannelFormat_Float 
ChannelFormat_Max 

Definition at line 68 of file Image.hpp.

Enumerator
ChannelType_R 
ChannelType_G 
ChannelType_B 
ChannelType_A 
ChannelType_Generic 
ChannelType_Max 

Definition at line 57 of file Image.hpp.

Enumerator
R8_G8_B8 
R8_G8_B8_A8 
A8 
XBGR_8888 
ABGR_8888 
RGB_565 
RGBA_5551 
RGB_Vec3f 
RGBA_Vec4f 
A_F32 
ID_Generic 
ID_Max 

Definition at line 38 of file Image.hpp.

Constructor & Destructor Documentation

FW::ImageFormat::ImageFormat ( void  )
inline

Definition at line 99 of file Image.hpp.

FW::ImageFormat::ImageFormat ( ID  id)
inline

Definition at line 100 of file Image.hpp.

FW::ImageFormat::ImageFormat ( const ImageFormat other)
inline

Definition at line 101 of file Image.hpp.

FW::ImageFormat::~ImageFormat ( void  )
inline

Definition at line 102 of file Image.hpp.

Member Function Documentation

void ImageFormat::addChannel ( const Channel channel)

Definition at line 168 of file Image.cpp.

void ImageFormat::clear ( void  )

Definition at line 159 of file Image.cpp.

int ImageFormat::findChannel ( ChannelType  type) const

Definition at line 136 of file Image.cpp.

int ImageFormat::getBPP ( void  ) const

Definition at line 111 of file Image.cpp.

const ImageFormat::Channel & ImageFormat::getChannel ( int  idx) const

Definition at line 127 of file Image.cpp.

ImageFormat::ID ImageFormat::getGLFormat ( void  ) const

Definition at line 184 of file Image.cpp.

ImageFormat::ID ImageFormat::getID ( void  ) const

Definition at line 78 of file Image.cpp.

int ImageFormat::getNumChannels ( void  ) const

Definition at line 119 of file Image.cpp.

const ImageFormat::StaticFormat * ImageFormat::getStaticFormat ( void  ) const

Definition at line 102 of file Image.cpp.

bool FW::ImageFormat::hasChannel ( ChannelType  type) const
inline

Definition at line 110 of file Image.hpp.

bool FW::ImageFormat::operator!= ( const ImageFormat other) const
inline

Definition at line 120 of file Image.hpp.

ImageFormat& FW::ImageFormat::operator= ( const ImageFormat other)
inline

Definition at line 118 of file Image.hpp.

bool ImageFormat::operator== ( const ImageFormat other) const

Definition at line 226 of file Image.cpp.

void ImageFormat::set ( const ImageFormat other)

Definition at line 147 of file Image.cpp.


The documentation for this class was generated from the following files: