Point Cloud Viewer
1.00
A Viewer to display point clouds with phong shading by converting them to splats.
|
This channel is used to link textures or data maps. More...
#include <renderpass.h>
Inherits RenderPass::Channel.
Public Member Functions | |
GLuint | getID () |
Getter for the OpenGL texture id. More... | |
void | reserveTexture (unsigned int x, unsigned int y, bool floatPrecision) |
Reserves a new texture on the GPU. More... | |
void | reserveDepthTexture (unsigned int x, unsigned int y) |
Reserves a new depth map on the GPU. More... | |
void | freeTexture () |
Tells the channel that it will not be updated anymore. More... | |
This channel is used to link textures or data maps.
It stores a texture id.
void RenderPass::TextureChannel::freeTexture | ( | ) |
Tells the channel that it will not be updated anymore.
Removes the texture from the GPU and sets the Channel inactive. Uses OpenGL calls and might delete the Channel - do not try to access this Channel after this call.
GLuint RenderPass::TextureChannel::getID | ( | ) |
Getter for the OpenGL texture id.
void RenderPass::TextureChannel::reserveDepthTexture | ( | unsigned int | x, |
unsigned int | y | ||
) |
Reserves a new depth map on the GPU.
Uses OpenGL calls. Deletes the current texture.
x | The x-resolution of the depth map. |
y | The y-resolution of the depth map. |
void RenderPass::TextureChannel::reserveTexture | ( | unsigned int | x, |
unsigned int | y, | ||
bool | floatPrecision | ||
) |
Reserves a new texture on the GPU.
Uses OpenGL calls. Deletes current texture.
x | The x-resolution of the texture. |
y | The y-resolution of the texture. |
floatPrecision | true if the texture shall be in floating point precision. |