Unofficial OpenGL Software Development Kit
0.5.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
distro
glsdk_0_5_1
glimg
include
glimg
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
"
12
#include "
TextureGeneratorExceptions.h
"
13
14
15
namespace
glimg
16
{
19
30
enum
ForcedConvertFlags
31
{
32
FORCE_SRGB_COLORSPACE_FMT
= 0x0001,
33
FORCE_BC1_ALPHA_FMT
= 0x0002,
34
FORCE_LUMINANCE_FMT
= 0x0008,
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,
40
FORCE_COLOR_RENDERABLE_FMT
= 0x0080,
41
42
FORCE_ARRAY_TEXTURE
= 0x0004,
43
USE_TEXTURE_STORAGE
= 0x0100,
44
FORCE_TEXTURE_STORAGE
= 0x0200,
45
USE_DSA
= 0x0400,
46
FORCE_DSA
= 0x0800,
47
};
48
82
unsigned
int
GetInternalFormat
(
const
ImageFormat &format,
unsigned
int
forceConvertBits);
83
87
struct
OpenGLPixelTransferParams
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
Generated on Mon Jul 29 2013 05:34:59 for Unofficial OpenGL Software Development Kit by
1.8.3.1