#include <View2DShader.h>

Public Member Functions | |
| View2DTextureLUTShader () | |
| virtual | ~View2DTextureLUTShader () |
Protected Member Functions | |
| void | createLutTexture () |
| creates a 2D texture from the shader's LUT | |
| void | updateLutTexture () |
| upload the lut to the texture (texture must be already created) | |
| void | destroyLutTexture () |
| frees the lut texture | |
| void | createFilterKernelTexture () |
| create 1d filter kernel texture (using the approach described in section 20.2 of GPU Gems 2) | |
| void | destroyFilterKernelTexture () |
| destroy the filter kernel | |
Protected Attributes | |
| ml::GLTexture | _lutTexture |
| texture that stores the LUT data | |
| ml::GLTexture | _kernelTexture |
| int | _lutTextureWidth |
| power-of-two width of lut texture | |
| int | _lutTextureHeight |
| power-of-two height of lut texture | |
| int | _lutHeight |
| number of COMPLETE texture rows used by the LUT (an additional row may be used partly) | |
Definition at line 78 of file View2DShader.h.
| View2DTextureLUTShader::View2DTextureLUTShader | ( | ) |
| virtual View2DTextureLUTShader::~View2DTextureLUTShader | ( | ) | [virtual] |
| void View2DTextureLUTShader::createFilterKernelTexture | ( | ) | [protected] |
create 1d filter kernel texture (using the approach described in section 20.2 of GPU Gems 2)
| void View2DTextureLUTShader::createLutTexture | ( | ) | [protected] |
creates a 2D texture from the shader's LUT
| void View2DTextureLUTShader::destroyFilterKernelTexture | ( | ) | [protected] |
destroy the filter kernel
| void View2DTextureLUTShader::destroyLutTexture | ( | ) | [protected] |
frees the lut texture
| void View2DTextureLUTShader::updateLutTexture | ( | ) | [protected] |
upload the lut to the texture (texture must be already created)
ml::GLTexture View2DTextureLUTShader::_kernelTexture [protected] |
Definition at line 101 of file View2DShader.h.
int View2DTextureLUTShader::_lutHeight [protected] |
number of COMPLETE texture rows used by the LUT (an additional row may be used partly)
Definition at line 108 of file View2DShader.h.
ml::GLTexture View2DTextureLUTShader::_lutTexture [protected] |
int View2DTextureLUTShader::_lutTextureHeight [protected] |
int View2DTextureLUTShader::_lutTextureWidth [protected] |
1.5.8