gKit2 light
Loading...
Searching...
No Matches
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
19GLuint make_texture( const int unit, const Image& im, const GLenum texel_type= GL_RGBA32F );
20
23GLuint make_texture( const int unit, const ImageData& im, const GLenum texel_type= GL_RGBA );
24
27GLuint read_texture( const int unit, const char *filename, const GLenum texel_type= GL_RGBA );
28
31GLuint read_srgb_texture( const int unit, const char *filename, const GLenum texel_type= GL_SRGB8_ALPHA8 );
32
34int screenshot( const char *filename );
35
37int screenshot( const char *prefix, const int id );
38
67int capture( const char *prefix );
68
70GLuint make_texture( const int unit, const int width, const int height, const GLenum texel_type, const GLenum data_format= GL_RGBA, const GLenum data_type= GL_UNSIGNED_BYTE );
71
73GLuint make_flat_texture( const int unit, const int width, const int height, const GLenum texel_type, const GLenum data_format= GL_RGBA, const GLenum data_type= GL_UNSIGNED_BYTE );
74
75// utilitaires.
77GLuint make_depth_texture( const int unit, const int width, const int height, const GLenum texel_type= GL_DEPTH_COMPONENT );
79GLuint make_uint_texture( const int unit, const int width, const int height, const GLenum texel_type= GL_R32UI );
81GLuint make_float_texture( const int unit, const int width, const int height, const GLenum texel_type= GL_R32F );
83GLuint make_vec2_texture( const int unit, const int width, const int height, const GLenum texel_type= GL_RG32F );
85GLuint make_vec3_texture( const int unit, const int width, const int height, const GLenum texel_type= GL_RGB32F );
87GLuint make_vec4_texture( const int unit, const int width, const int height, const GLenum texel_type= GL_RGBA32F );
88
90#endif
representation d'une image.
Definition image.h:21
GLuint make_vec2_texture(const int unit, const int width, const int height, const GLenum texel_type=GL_RG32F)
creation de textures pour stocker des donnees (autres qu'une couleur).
Definition texture.cpp:161
int capture(const char *prefix)
Definition texture.cpp:205
GLuint make_texture(const int unit, const Image &im, const GLenum texel_type=GL_RGBA32F)
Definition texture.cpp:61
int screenshot(const char *filename)
enregistre le contenu de la fenetre dans un fichier. doit etre de type .png / .bmp
Definition texture.cpp:178
GLuint make_vec3_texture(const int unit, const int width, const int height, const GLenum texel_type=GL_RGB32F)
creation de textures pour stocker des donnees (autres qu'une couleur).
Definition texture.cpp:166
GLuint make_float_texture(const int unit, const int width, const int height, const GLenum texel_type=GL_R32F)
creation de textures pour stocker des donnees (autres qu'une couleur).
Definition texture.cpp:156
GLuint read_srgb_texture(const int unit, const char *filename, const GLenum texel_type=GL_SRGB8_ALPHA8)
Definition texture.cpp:139
GLuint make_vec4_texture(const int unit, const int width, const int height, const GLenum texel_type=GL_RGBA32F)
creation de textures pour stocker des donnees (autres qu'une couleur).
Definition texture.cpp:171
GLuint read_texture(const int unit, const char *filename, const GLenum texel_type=GL_RGBA)
Definition texture.cpp:133
GLuint make_flat_texture(const int unit, const int width, const int height, const GLenum texel_type, const GLenum data_format=GL_RGBA, const GLenum data_type=GL_UNSIGNED_BYTE)
creation de textures non filtrables / 1 mipmap
Definition texture.cpp:34
GLuint make_uint_texture(const int unit, const int width, const int height, const GLenum texel_type=GL_R32UI)
creation de textures pour stocker des donnees (autres qu'une couleur).
Definition texture.cpp:151
GLuint make_depth_texture(const int unit, const int width, const int height, const GLenum texel_type=GL_DEPTH_COMPONENT)
creation de textures pour stocker des donnees (autres qu'une couleur).
Definition texture.cpp:146
stockage temporaire des donnees d'une image.
Definition image_io.h:53