Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
RenderPass::TextureChannel Class Reference

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...
 

Detailed Description

This channel is used to link textures or data maps.

It stores a texture id.

Member Function Documentation

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.

Returns
The 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.

Parameters
xThe x-resolution of the depth map.
yThe 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.

Parameters
xThe x-resolution of the texture.
yThe y-resolution of the texture.
floatPrecisiontrue if the texture shall be in floating point precision.

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