CGVIS Utils
Loading...
Searching...
No Matches
GLTextureCube.h File Reference

RAII wrapper for an OpenGL cube map texture with byte/half/float uploads. More...

#include <vector>
#include "GLEnv.h"
#include "Image.h"
Include dependency graph for GLTextureCube.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GLTextureCube
 OpenGL cube map texture (6 faces) with convenience upload helpers. More...

Enumerations

enum class  Face {
  POSX =0 , NEGX , POSY , NEGY ,
  POSZ , NEGZ
}

Detailed Description

RAII wrapper for an OpenGL cube map texture with byte/half/float uploads.

Encapsulates creation/destruction of a GL_TEXTURE_CUBE_MAP object, data uploads for each face from Image or raw interleaved vectors, basic sampler parameter control (filters, wrap S/T/R), and mipmap generation.

Note
All GL calls are wrapped with the GL() macro provided by GLEnv.h.

Enumeration Type Documentation

◆ Face

enum class Face
strong
Enumerator
POSX 

+X face (GL_TEXTURE_CUBE_MAP_POSITIVE_X).

NEGX 

−X face (GL_TEXTURE_CUBE_MAP_NEGATIVE_X).

POSY 

+Y face (GL_TEXTURE_CUBE_MAP_POSITIVE_Y).

NEGY 

−Y face (GL_TEXTURE_CUBE_MAP_NEGATIVE_Y).

POSZ 

+Z face (GL_TEXTURE_CUBE_MAP_POSITIVE_Z).

NEGZ 

−Z face (GL_TEXTURE_CUBE_MAP_NEGATIVE_Z).