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

RAII wrapper for an OpenGL 2D texture with byte/half/float upload helpers. More...

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

Go to the source code of this file.

Classes

class  GLTexture2D

Detailed Description

RAII wrapper for an OpenGL 2D texture with byte/half/float upload helpers.

Encapsulates creation/destruction of a GL_TEXTURE_2D object, provides data upload from interleaved vectors or an Image, supports multiple data types (see GLDataType), basic parameter control (filters, wrap), and mipmap generation. Read-back helpers are available on non-Emscripten builds.

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