#include <gl.h>

Public Member Functions | |
| void | Bind () const |
| GlTexture (GLint width, GLint height, GLint internal_format=GL_RGBA8) | |
| internal_format normally one of GL_RGBA8, GL_LUMINANCE8 | |
| void | RenderToViewport () const |
| void | RenderToViewportFlipY () const |
| void | SetLinear () |
| void | SetNearestNeighbour () |
| void | Unbind () const |
| void | Upload (void *image, GLenum data_layout=GL_LUMINANCE, GLenum data_type=GL_FLOAT) |
| ~GlTexture () | |
Public Attributes | |
| GLint | height |
| GLint | internal_format |
| GLuint | tid |
| GLint | width |
| pangolin::GlTexture::GlTexture | ( | GLint | width, |
| GLint | height, | ||
| GLint | internal_format = GL_RGBA8 |
||
| ) | [inline] |
| pangolin::GlTexture::~GlTexture | ( | ) | [inline] |
| void pangolin::GlTexture::Bind | ( | ) | const [inline] |
| void pangolin::GlTexture::RenderToViewport | ( | ) | const [inline] |
| void pangolin::GlTexture::RenderToViewportFlipY | ( | ) | const [inline] |
| void pangolin::GlTexture::SetLinear | ( | ) | [inline] |
| void pangolin::GlTexture::SetNearestNeighbour | ( | ) | [inline] |
| void pangolin::GlTexture::Unbind | ( | ) | const [inline] |
| void pangolin::GlTexture::Upload | ( | void * | image, |
| GLenum | data_layout = GL_LUMINANCE, |
||
| GLenum | data_type = GL_FLOAT |
||
| ) | [inline] |
| GLuint pangolin::GlTexture::tid |