Unofficial OpenGL Software Development Kit  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Namespaces | Enumerations | Functions
TextureGenerator.h File Reference

Functions for generating textures and OpenGL-specific information. More...

#include "ImageSet.h"
#include "TextureGeneratorExceptions.h"

Go to the source code of this file.

Classes

struct  glimg::OpenGLPixelTransferParams
 Contains the pixel transfer parameters for OpenGL texture upload functions. More...
 

Namespaces

namespace  glimg
 The main GL Image library namespace.
 

Enumerations

enum  glimg::ForcedConvertFlags {
  glimg::FORCE_SRGB_COLORSPACE_FMT = 0x0001, glimg::FORCE_BC1_ALPHA_FMT = 0x0002, glimg::FORCE_LUMINANCE_FMT = 0x0008, glimg::FORCE_INTEGRAL_FMT = 0x0020,
  glimg::FORCE_SIGNED_FMT = 0x0040, glimg::FORCE_COLOR_RENDERABLE_FMT = 0x0080, glimg::FORCE_ARRAY_TEXTURE = 0x0004, glimg::USE_TEXTURE_STORAGE = 0x0100,
  glimg::FORCE_TEXTURE_STORAGE = 0x0200, glimg::USE_DSA = 0x0400, glimg::FORCE_DSA = 0x0800
}
 Control flags for texture conversion processes. More...
 

Functions

unsigned int glimg::GetInternalFormat (const ImageFormat &format, unsigned int forceConvertBits)
 Retrieves the OpenGL internal format for the given image format and bits. More...
 
OpenGLPixelTransferParams glimg::GetUploadFormatType (const ImageFormat &format, unsigned int forceConvertBits)
 Retrieves the pixel transfer parameters for the given image format. More...
 
unsigned int glimg::GetTextureType (const ImageSet *pImage, unsigned int forceConvertBits)
 Retrieves the texture type for the given ImageSet. More...
 
unsigned int glimg::CreateTexture (const ImageSet *pImage, unsigned int forceConvertBits)
 Creates a texture object from the given ImageSet, with flags. More...
 
void glimg::CreateTexture (unsigned int textureName, const ImageSet *pImage, unsigned int forceConvertBits)
 As CreateTexture(const ImageSet *, unsigned int), but with a texture object provided by the user. More...
 

Detailed Description

Functions for generating textures and OpenGL-specific information.