Molecular Vis
Improving perception of molecular visualization
VolumetricTexture Class Reference

Wrapper class for GL_TEXTURE_3D. More...

#include <VolumetricTexture.h>

Inheritance diagram for VolumetricTexture:
Texture

Public Member Functions

 VolumetricTexture (int width, int height, int depth, GLenum internalFormat, GLenum format, GLenum type)
 
virtual void bindAsTexture (int unit)
 
virtual void bindAsImage (int unit)
 

Detailed Description

Wrapper class for GL_TEXTURE_3D.

Constructor & Destructor Documentation

◆ VolumetricTexture()

VolumetricTexture::VolumetricTexture ( int  width,
int  height,
int  depth,
GLenum  internalFormat,
GLenum  format,
GLenum  type 
)

Creates 3d texture.

Parameters
width,height,depthDimensions of texture.
internalFormatInternal format of the texture. See openGL documentation.
formatFormat of data.
typeType of data.

Member Function Documentation

◆ bindAsImage()

void VolumetricTexture::bindAsImage ( int  unit)
virtual

Binds the texture as image for image load/store operations (in compute shaders etc.)

Parameters
unitLocation to bind the image to.

Implements Texture.

◆ bindAsTexture()

void VolumetricTexture::bindAsTexture ( int  unit)
virtual

Binds the texture as texture to texture unit.

Parameters
unitTexture unit to bind to.

Implements Texture.


The documentation for this class was generated from the following files: