gKit2 light

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

texture.h
Go to the documentation of this file.
1
2 #ifndef _TEXTURE_H
3 #define _TEXTURE_H
4
5 #include "glcore.h"
6 #include "image.h"
7 #include "image_io.h"
8
9
12
15
16
19 GLuint make_texture( const int unit, const Image& im, const GLenum texel_type= GL_RGBA32F );
20
23 GLuint make_texture( const int unit, const ImageData& im, const GLenum texel_type= GL_RGBA );
24
27 GLuint read_texture( const int unit, const char *filename, const GLenum texel_type= GL_RGBA );
28
30 int miplevels( const int width, const int height );
31
33 int screenshot( const char *filename );
34
64 int capture( const char *prefix );
65
67 #endif
ImageData
stockage temporaire des donnees d'une image.
Definition: image_io.h:23
make_texture
GLuint make_texture(const int unit, const Image &im, const GLenum texel_type=GL_RGBA32F)
Definition: texture.cpp:25
read_texture
GLuint read_texture(const int unit, const char *filename, const GLenum texel_type=GL_RGBA)
Definition: texture.cpp:98
image.h
capture
int capture(const char *prefix)
Definition: texture.cpp:126
miplevels
int miplevels(const int width, const int height)
renvoie le nombre de mipmap d'une image width x height.
Definition: texture.cpp:10
Image
representation d'une image.
Definition: image.h:18
image_io.h
screenshot
int screenshot(const char *filename)
enregistre le contenu de la fenetre dans un fichier filename nom de l'image a ecrire. doit etre de type .png / .bmp
Definition: texture.cpp:105