Unofficial OpenGL Software Development Kit  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TextureGenerator.h
Go to the documentation of this file.
1 #ifndef GLIMG_TEXTURE_GENERATOR_H
2 #define GLIMG_TEXTURE_GENERATOR_H
3 
11 #include "ImageSet.h"
13 
14 
15 namespace glimg
16 {
19 
31  {
35 
36 //Not supported yet.
37 // FORCE_REQUIRED_FMT = 0x0010, ///<Will only get image formats that are required to exist by OpenGL.
38  FORCE_INTEGRAL_FMT = 0x0020,
39  FORCE_SIGNED_FMT = 0x0040,
41 
45  USE_DSA = 0x0400,
46  FORCE_DSA = 0x0800,
47  };
48 
82  unsigned int GetInternalFormat(const ImageFormat &format, unsigned int forceConvertBits);
83 
88  {
89  unsigned int format;
90  unsigned int type;
91  unsigned int blockByteCount;
92  };
93 
127  OpenGLPixelTransferParams GetUploadFormatType(const ImageFormat &format, unsigned int forceConvertBits);
128 
145  unsigned int GetTextureType(const ImageSet *pImage, unsigned int forceConvertBits);
146 
186  unsigned int CreateTexture(const ImageSet *pImage, unsigned int forceConvertBits);
187 
196  void CreateTexture(unsigned int textureName, const ImageSet *pImage, unsigned int forceConvertBits);
198 }
199 
200 
201 
202 #endif //GLIMG_TEXTURE_GENERATOR_H