VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions
makVrv::DtGlTextureUtils Class Reference

Public Member Functions

 DtGlTextureUtils ()=delete
 
virtual ~DtGlTextureUtils ()=delete
 
 DtGlTextureUtils (const DtGlTextureUtils &)=delete
 
DtGlTextureUtilsoperator= (const DtGlTextureUtils &)=delete
 

Static Public Member Functions

static std::string textureName (unsigned int id)
 
static int textureSize (unsigned int id)
 
static int width (unsigned int id)
 
static int height (unsigned int id)
 
static int internalFormat (unsigned int id)
 
static int numMipMaps (unsigned int id)
 
static int numComponents (unsigned int pixelFormat)
 
static bool isCompressedFormat (unsigned int internalFormat)
 
static int sizeInBytesOfCompressedTextureWithMipMaps (int internalFormat, int startMipMapWidth, int startMipMapHeight)
 
static int sizeOfMipMap (int internalFormat, int width, int height)
 
static const charformatToString (int format)
 
static void computeCompressedSize (int internalFormat, int width, int height, int depth, int &blockSize, int &size)
 

Constructor & Destructor Documentation

makVrv::DtGlTextureUtils::DtGlTextureUtils ( )
delete

not allowed

virtual makVrv::DtGlTextureUtils::~DtGlTextureUtils ( )
virtualdelete

not allowed

makVrv::DtGlTextureUtils::DtGlTextureUtils ( const DtGlTextureUtils )
delete

not allowed

Member Function Documentation

DtGlTextureUtils& makVrv::DtGlTextureUtils::operator= ( const DtGlTextureUtils )
delete

not allowed

static std::string makVrv::DtGlTextureUtils::textureName ( unsigned int  id)
static

get the name

static int makVrv::DtGlTextureUtils::textureSize ( unsigned int  id)
static

texture size in bytes

static int makVrv::DtGlTextureUtils::width ( unsigned int  id)
static

This is width of texture/highest-resolution mip map.

static int makVrv::DtGlTextureUtils::height ( unsigned int  id)
static

This is height of texture/highest-resolution mip map.

static int makVrv::DtGlTextureUtils::internalFormat ( unsigned int  id)
static

The internal gl format of the texture.

static int makVrv::DtGlTextureUtils::numMipMaps ( unsigned int  id)
static

The number of mip maps.

static int makVrv::DtGlTextureUtils::numComponents ( unsigned int  pixelFormat)
static

get the number of components e.g. GL_SLUMINANCE_ALPHA -> 2, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT-> 4

static bool makVrv::DtGlTextureUtils::isCompressedFormat ( unsigned int  internalFormat)
static

is it a compressed format? (e.g: GL_COMPRESSED_SRGB_ALPHA -> true)

static int makVrv::DtGlTextureUtils::sizeInBytesOfCompressedTextureWithMipMaps ( int  internalFormat,
int  startMipMapWidth,
int  startMipMapHeight 
)
static

compute the size of compressed mip mapped texture with mip map 0 as [startMipMapWidth, startMipMapHeight]

static int makVrv::DtGlTextureUtils::sizeOfMipMap ( int  internalFormat,
int  width,
int  height 
)
static

compute the size of compressed a single mip map [width, height]

static const char* makVrv::DtGlTextureUtils::formatToString ( int  format)
static

convert a gl (texture) format to a string

static void makVrv::DtGlTextureUtils::computeCompressedSize ( int  internalFormat,
int  width,
int  height,
int  depth,
int blockSize,
int size 
)
static

compute the size and block size of a given compressed format for a resolution of width x height


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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)