![]() |
VR-Forces 5.0.3 Developer's Guide
|
A helper classes for creating a RTT target, optionally including depth buffer.
Public Member Functions | |
| DtGlTexture (const std::string &name, int width, int height, int numLayers) | |
| virtual | ~DtGlTexture () |
| virtual bool | init (unsigned int glColorTexId) |
| virtual bool | init (DtGlImageType colorFormat=RGB32F, GLenum minFilter=GL_LINEAR, GLenum wrapMode=GL_CLAMP_TO_EDGE) |
| virtual bool | initAsDepth (unsigned int glDepthTexId) |
| virtual bool | initAsDepth (DtGlImageType depthFormat) |
| virtual GLenum | glTextureFormat (void) const |
| virtual unsigned int | id (void) const |
| virtual int | width () const |
| virtual int | height () const |
| virtual int | layers (void) const |
| virtual void | bind (int unit) |
Protected Attributes | |
| int | myWidth |
| int | myHeight |
| std::string | myName |
| int | myNumLayers |
| unsigned int | myId |
| GLenum | myFormat |
| bool | myExternalTex |
Private Member Functions | |
| DtGlTexture () | |
| DtGlTexture (const DtGlTexture &) | |
| DtGlTexture & | operator= (const DtGlTexture &) |
constructor
|
virtual |
destructor
|
private |
private default constructor. not allowed.
|
private |
prevent copy-construction
|
private |
prevent assignment
initialize with an external texture id
|
virtual |
initialize with the color format, min filter and wrap mode
initialize as a depth texture with an external depth texture id
|
virtual |
initialize as a depth texture with the given depth format
|
virtual |
what's the format?
|
virtual |
returns width of the texture
|
virtual |
returns height of the texture
|
virtual |
If vr/multiview num of textures in the array, else 1.
|
virtual |
bind the texture to the given unit
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |