|
MVE - Multi-View Environment mve-devel
|
OpenGL texture abstraction. More...
#include <texture.h>
Public Types | |
| typedef std::shared_ptr< Texture const > | ConstPtr |
| typedef std::shared_ptr< Texture > | Ptr |
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. | |
OpenGL texture abstraction.
2D textures are supported only.
| typedef std::shared_ptr<Texture const> ogl::Texture::ConstPtr |
| typedef std::shared_ptr<Texture> ogl::Texture::Ptr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
| void ogl::Texture::upload | ( | mve::ByteImage::ConstPtr | image | ) |
Uploads the given image to OpenGL.
Definition at line 15 of file texture.cc.