MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ogl::Texture Class Reference

OpenGL texture abstraction. More...

#include <texture.h>

Public Types

typedef std::shared_ptr< Texture const > ConstPtr
 
typedef std::shared_ptr< TexturePtr
 

Public Member Functions

 Texture (mve::ByteImage::ConstPtr image)
 Creates a new texture object from an MVE image.
 
 Texture (void)
 Creates a new texture object without image data.
 
 ~Texture (void)
 Destroys the texture object, releasing OpenGL resources.
 
void bind (void)
 Makes this texture the active texture.
 
void upload (mve::ByteImage::ConstPtr image)
 Uploads the given image to OpenGL.
 

Static Public Member Functions

static Ptr create (void)
 Creates a smart pointered texture object.
 

Detailed Description

OpenGL texture abstraction.

2D textures are supported only.

Definition at line 24 of file texture.h.

Member Typedef Documentation

◆ ConstPtr

typedef std::shared_ptr<Texture const> ogl::Texture::ConstPtr

Definition at line 28 of file texture.h.

◆ Ptr

typedef std::shared_ptr<Texture> ogl::Texture::Ptr

Definition at line 27 of file texture.h.

Constructor & Destructor Documentation

◆ Texture() [1/2]

ogl::Texture::Texture ( void  )
inline

Creates a new texture object without image data.

Definition at line 55 of file texture.h.

◆ Texture() [2/2]

ogl::Texture::Texture ( mve::ByteImage::ConstPtr  image)
inline

Creates a new texture object from an MVE image.

Definition at line 61 of file texture.h.

◆ ~Texture()

ogl::Texture::~Texture ( void  )
inline

Destroys the texture object, releasing OpenGL resources.

Definition at line 74 of file texture.h.

Member Function Documentation

◆ bind()

void ogl::Texture::bind ( void  )
inline

Makes this texture the active texture.

Definition at line 80 of file texture.h.

◆ create()

Texture::Ptr ogl::Texture::create ( void  )
inlinestatic

Creates a smart pointered texture object.

Definition at line 68 of file texture.h.

◆ upload()

void ogl::Texture::upload ( mve::ByteImage::ConstPtr  image)

Uploads the given image to OpenGL.

Definition at line 15 of file texture.cc.


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