All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
pangolin::GlTexture Struct Reference

#include <gl.h>

Inheritance diagram for pangolin::GlTexture:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 49 of file gl.h.


Constructor & Destructor Documentation

pangolin::GlTexture::GlTexture ( GLint  width,
GLint  height,
GLint  internal_format = GL_RGBA8 
) [inline]

internal_format normally one of GL_RGBA8, GL_LUMINANCE8

Definition at line 127 of file gl.h.

Definition at line 143 of file gl.h.


Member Function Documentation

void pangolin::GlTexture::Bind ( ) const [inline]

Definition at line 148 of file gl.h.

void pangolin::GlTexture::RenderToViewport ( ) const [inline]

Definition at line 182 of file gl.h.

Definition at line 203 of file gl.h.

void pangolin::GlTexture::SetLinear ( ) [inline]

Definition at line 164 of file gl.h.

Definition at line 172 of file gl.h.

void pangolin::GlTexture::Unbind ( ) const [inline]

Definition at line 153 of file gl.h.

void pangolin::GlTexture::Upload ( void *  image,
GLenum  data_layout = GL_LUMINANCE,
GLenum  data_type = GL_FLOAT 
) [inline]

data_layout normally one of GL_LUMINANCE, GL_RGB, ... data_type normally one of GL_UNSIGNED_BYTE, GL_FLOAT

Definition at line 158 of file gl.h.


Member Data Documentation

Definition at line 71 of file gl.h.

Definition at line 68 of file gl.h.

Definition at line 69 of file gl.h.

Definition at line 70 of file gl.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


pangolin_wrapper
Author(s): Todor Stoyanov
autogenerated on Wed Feb 13 2013 14:03:25