Developer Documentation
ACG::GLFormatInfo Class Reference

Public Types

enum  BaseType { FloatingPt , SignedInt , UnsignedInt }
 

Public Member Functions

 GLFormatInfo (GLenum _internalFormat)
 
int channelSize (int i=0) const
 
int channelBits (int i) const
 
int channelCount () const
 
int elemSize () const
 
int bpp () const
 
GLenum internalFormat () const
 
GLenum format () const
 
GLenum type () const
 
bool isNormalized () const
 
bool isFloat () const
 
bool isUint () const
 
bool isInt () const
 
bool isValid () const
 
BaseType baseType () const
 
const char * sizedFormatString () const
 

Private Member Functions

 GLFormatInfo (GLenum _intfmt, GLenum _fmt, GLenum _type, int _r, int _g, int _b, int _a, BaseType _bt, bool _nrm)
 

Static Private Member Functions

static void registerFmt (GLenum _intfmt, GLenum _fmt, GLenum _type, int _r, int _g, int _b, int _a, BaseType _bt, bool _nrm)
 

Private Attributes

GLenum internalFormat_
 
GLenum format_
 
GLenum type_
 
int channelBits_ [4]
 
int channelCount_
 
int bpp_
 
BaseType baseType_
 
bool normalized_
 
char sizedName_ [32]
 

Static Private Attributes

static std::map< GLenum, GLFormatInfoformatMap_
 

Detailed Description

Definition at line 70 of file GLFormatInfo.hh.

Member Enumeration Documentation

◆ BaseType

enum ACG::GLFormatInfo::BaseType

Definition at line 106 of file GLFormatInfo.hh.

Constructor & Destructor Documentation

◆ GLFormatInfo() [1/3]

ACG::GLFormatInfo::GLFormatInfo ( GLenum  _internalFormat)
explicit

Definition at line 54 of file GLFormatInfo.cc.

◆ GLFormatInfo() [2/3]

ACG::GLFormatInfo::GLFormatInfo ( )

Definition at line 218 of file GLFormatInfo.cc.

◆ ~GLFormatInfo()

ACG::GLFormatInfo::~GLFormatInfo ( )

Definition at line 229 of file GLFormatInfo.cc.

◆ GLFormatInfo() [3/3]

ACG::GLFormatInfo::GLFormatInfo ( GLenum  _intfmt,
GLenum  _fmt,
GLenum  _type,
int  _r,
int  _g,
int  _b,
int  _a,
BaseType  _bt,
bool  _nrm 
)
private

Definition at line 151 of file GLFormatInfo.cc.

Member Function Documentation

◆ baseType()

BaseType ACG::GLFormatInfo::baseType ( ) const
inline

Definition at line 119 of file GLFormatInfo.hh.

◆ bpp()

int ACG::GLFormatInfo::bpp ( ) const
inline

Definition at line 91 of file GLFormatInfo.hh.

◆ channelBits()

int ACG::GLFormatInfo::channelBits ( int  i) const
inline

Definition at line 82 of file GLFormatInfo.hh.

◆ channelCount()

int ACG::GLFormatInfo::channelCount ( ) const
inline

Definition at line 85 of file GLFormatInfo.hh.

◆ channelSize()

int ACG::GLFormatInfo::channelSize ( int  i = 0) const
inline

Definition at line 79 of file GLFormatInfo.hh.

◆ elemSize()

int ACG::GLFormatInfo::elemSize ( ) const
inline

Definition at line 88 of file GLFormatInfo.hh.

◆ format()

GLenum ACG::GLFormatInfo::format ( ) const
inline

Definition at line 97 of file GLFormatInfo.hh.

◆ internalFormat()

GLenum ACG::GLFormatInfo::internalFormat ( ) const
inline

Definition at line 94 of file GLFormatInfo.hh.

◆ isFloat()

bool ACG::GLFormatInfo::isFloat ( ) const
inline

Definition at line 113 of file GLFormatInfo.hh.

◆ isInt()

bool ACG::GLFormatInfo::isInt ( ) const
inline

Definition at line 115 of file GLFormatInfo.hh.

◆ isNormalized()

bool ACG::GLFormatInfo::isNormalized ( ) const
inline

Definition at line 103 of file GLFormatInfo.hh.

◆ isUint()

bool ACG::GLFormatInfo::isUint ( ) const
inline

Definition at line 114 of file GLFormatInfo.hh.

◆ isValid()

bool ACG::GLFormatInfo::isValid ( ) const
inline

Definition at line 117 of file GLFormatInfo.hh.

◆ registerFmt()

void ACG::GLFormatInfo::registerFmt ( GLenum  _intfmt,
GLenum  _fmt,
GLenum  _type,
int  _r,
int  _g,
int  _b,
int  _a,
BaseType  _bt,
bool  _nrm 
)
staticprivate

Definition at line 233 of file GLFormatInfo.cc.

◆ sizedFormatString()

const char * ACG::GLFormatInfo::sizedFormatString ( ) const
inline

Definition at line 122 of file GLFormatInfo.hh.

◆ type()

GLenum ACG::GLFormatInfo::type ( ) const
inline

Definition at line 100 of file GLFormatInfo.hh.

Member Data Documentation

◆ baseType_

BaseType ACG::GLFormatInfo::baseType_
private

Definition at line 138 of file GLFormatInfo.hh.

◆ bpp_

int ACG::GLFormatInfo::bpp_
private

Definition at line 135 of file GLFormatInfo.hh.

◆ channelBits_

int ACG::GLFormatInfo::channelBits_[4]
private

Definition at line 132 of file GLFormatInfo.hh.

◆ channelCount_

int ACG::GLFormatInfo::channelCount_
private

Definition at line 134 of file GLFormatInfo.hh.

◆ format_

GLenum ACG::GLFormatInfo::format_
private

Definition at line 129 of file GLFormatInfo.hh.

◆ formatMap_

std::map< GLenum, GLFormatInfo > ACG::GLFormatInfo::formatMap_
staticprivate

Definition at line 145 of file GLFormatInfo.hh.

◆ internalFormat_

GLenum ACG::GLFormatInfo::internalFormat_
private

Definition at line 128 of file GLFormatInfo.hh.

◆ normalized_

bool ACG::GLFormatInfo::normalized_
private

Definition at line 140 of file GLFormatInfo.hh.

◆ sizedName_

char ACG::GLFormatInfo::sizedName_[32]
private

Definition at line 142 of file GLFormatInfo.hh.

◆ type_

GLenum ACG::GLFormatInfo::type_
private

Definition at line 130 of file GLFormatInfo.hh.


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