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

RAII wrapper for a 2D OpenGL depth texture with compare mode enabled. More...

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

Go to the source code of this file.

Classes

class  GLDepthTexture

Detailed Description

RAII wrapper for a 2D OpenGL depth texture with compare mode enabled.

Manages the lifetime of a GL_TEXTURE_2D storing depth values and configures common sampler state (wrap, filters, and comparison mode). Storage can be allocated in 16/24/32‑bit depth formats via setEmpty().

Note
The internal depth format is selected by GLDepthDataType (declared in GLEnv.h). All GL calls are wrapped with the GL() macro for debug error checking.