![]() |
Perception Tool Kit (PTK) API Guide
|
The Texture class is used to store and track the actual data, as well as ensure it is loaded to the GPU, while the Colormap wrapper is used as a shared copy-on-write pointer to a Texture that allows us to have built-in Colormaps (such as HEAT) which the user can "modify" without disturbing other users of that colormap. But, if the user isn't modifying it, this allows us to only have one copy in memory instead of dozens.

Public Member Functions | |
| Texture () | |
| ~Texture () | |
| Texture (const Texture &)=delete | |
| Texture & | operator= (const Texture &)=delete |
| void | bind () |
| void | setPixel (uint32_t pixel, const glm::u8vec4 &color) |
| void | setFiltering (GLint filter) |
Private Attributes | |
| friend | Colormap |
| glm::u8vec4 * | _data |
| uint32_t | _length |
| bool | _loaded |
| GLuint | _tex |
| ptk::Colormap::Texture::Texture | ( | ) |
| ptk::Colormap::Texture::~Texture | ( | ) |
|
delete |
| void ptk::Colormap::Texture::bind | ( | ) |
| void ptk::Colormap::Texture::setPixel | ( | uint32_t | pixel, |
| const glm::u8vec4 & | color | ||
| ) |
| void ptk::Colormap::Texture::setFiltering | ( | GLint | filter | ) |
|
private |
|
private |
|
private |
|
private |
|
private |