Wrapper class for GL_TEXTURE_3D.
More...
#include <VolumetricTexture.h>
Wrapper class for GL_TEXTURE_3D.
◆ VolumetricTexture()
| VolumetricTexture::VolumetricTexture |
( |
int |
width, |
|
|
int |
height, |
|
|
int |
depth, |
|
|
GLenum |
internalFormat, |
|
|
GLenum |
format, |
|
|
GLenum |
type |
|
) |
| |
Creates 3d texture.
- Parameters
-
| width,height,depth | Dimensions of texture. |
| internalFormat | Internal format of the texture. See openGL documentation. |
| format | Format of data. |
| type | Type of data. |
◆ bindAsImage()
| void VolumetricTexture::bindAsImage |
( |
int |
unit | ) |
|
|
virtual |
Binds the texture as image for image load/store operations (in compute shaders etc.)
- Parameters
-
| unit | Location to bind the image to. |
Implements Texture.
◆ bindAsTexture()
| void VolumetricTexture::bindAsTexture |
( |
int |
unit | ) |
|
|
virtual |
Binds the texture as texture to texture unit.
- Parameters
-
Implements Texture.
The documentation for this class was generated from the following files: