gKit2 light
Loading...
Searching...
No Matches
texture.h File Reference
#include "glcore.h"
#include "image.h"
#include "image_io.h"

Go to the source code of this file.

Functions

GLuint make_texture (const int unit, const Image &im, const GLenum texel_type=GL_RGBA32F)
GLuint make_texture (const int unit, const ImageData &im, const GLenum texel_type=GL_RGBA)
GLuint read_texture (const int unit, const char *filename, const GLenum texel_type=GL_RGBA)
GLuint read_srgb_texture (const int unit, const char *filename, const GLenum texel_type=GL_SRGB8_ALPHA8)
int screenshot (const char *filename)
 enregistre le contenu de la fenetre dans un fichier. doit etre de type .png / .bmp
int screenshot (const char *prefix, const int id)
 enregistre le contenu de la fenetre dans un fichier numerote prefixXXX.png. id est le numero de la capture.
int capture (const char *prefix)
GLuint 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)
 creation de textures filtrables / mipmaps
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
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).
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).
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).
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).
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).
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).

Detailed Description

texture2D openGL.

Definition in file texture.h.