#include <texture.hpp>
Public Member Functions | |
Texture () | |
Default constructor. | |
Texture (const Size< Dim > &_size) | |
Constructor. | |
Texture (const Layout< Type, Dim > &layout) | |
Constructor. | |
~Texture () | |
Destructor. | |
void | alloc () |
Allocate texture memory. | |
void | alloc (const Size< Dim > &_size) |
Allocate texture memory. | |
void | bind () |
Bind OpenGL texture object. | |
void | free () |
Free texture memory. | |
void | init () |
Initialize texture name. | |
Static Public Member Functions | |
static GLenum | target () |
Get OpenGL texture target. | |
static void | unbind () |
Unbind OpenGL buffer object. |
Cuda::OpenGL::Texture< Type, Dim >::Texture | ( | const Size< Dim > & | _size | ) | [inline] |
Constructor.
_size | requested size of memory block. |
Cuda::OpenGL::Texture< Type, Dim >::Texture | ( | const Layout< Type, Dim > & | layout | ) | [inline] |
Constructor.
layout | requested size of memory block. |
Cuda::OpenGL::Texture< Type, Dim >::~Texture | ( | ) | [inline] |
Destructor.
layout | requested size of memory block. |
void Cuda::OpenGL::Texture< Type, Dim >::alloc | ( | const Size< Dim > & | _size | ) | [inline] |