Loading [MathJax]/extensions/tex2jax.js
Carna  Version 3.3.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Related Functions | List of all members
Carna::base::TextureBase Class Reference

Texture base class with dimension-independent definitions. More...

#include <Texture.h>

+ Inheritance diagram for Carna::base::TextureBase:

Public Member Functions

virtual ~TextureBase ()
 Deletes the maintained OpenGL texture object.
 

Public Attributes

const unsigned int id
 Holds the ID of the represented OpenGL texture object.
 

Static Public Attributes

static const unsigned int SETUP_UNIT = 0
 Texture unit that is fine to be used for temporal bindings, i.e. for setting textures up. This unit shouldn't be used for lasting bindings.
 

Protected Member Functions

 TextureBase ()
 Creates OpenGL texture object.
 
void uploadGLTextureData (const Eigen::Matrix< unsigned int, 1, 1 > &size, int internalFormat, int pixelFormat, int bufferType, const void *bufferPtr)
 Wraps glTexImage1d.
 
void uploadGLTextureData (const math::Vector2ui &size, int internalFormat, int pixelFormat, int bufferType, const void *bufferPtr)
 Wraps glTexImage2d.
 
void uploadGLTextureData (const math::Vector3ui &size, int internalFormat, int pixelFormat, int bufferType, const void *bufferPtr)
 Wraps glTexImage3d.
 

Related Functions

(Note that these are not member functions.)

template<unsigned int dimension>
void bindGLTextureObject (unsigned int unit, unsigned int id)
 Binds OpenGL texture object id to texture unit. For internal usage only, use Texture::bind instead.
 

Detailed Description

Texture base class with dimension-independent definitions.

Author
Leonid Kostrykin
Date
24.3.15 - 30.3.15

Definition at line 77 of file Texture.h.


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