Cuda::OpenGL::Texture< Type, Dim > Class Template Reference

Representation of OpenGL texture. More...

#include <texture.hpp>

Inheritance diagram for Cuda::OpenGL::Texture< Type, Dim >:

Inheritance graph
[legend]
Collaboration diagram for Cuda::OpenGL::Texture< Type, Dim >:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

template<class Type, size_t Dim>
class Cuda::OpenGL::Texture< Type, Dim >

Representation of OpenGL texture.

Constructor & Destructor Documentation

template<class Type, size_t Dim>
Cuda::OpenGL::Texture< Type, Dim >::Texture ( const Size< Dim > &  _size  )  [inline]

Constructor.

Parameters:
_size requested size of memory block.

template<class Type, size_t Dim>
Cuda::OpenGL::Texture< Type, Dim >::Texture ( const Layout< Type, Dim > &  layout  )  [inline]

Constructor.

Parameters:
layout requested size of memory block.

template<class Type, size_t Dim>
Cuda::OpenGL::Texture< Type, Dim >::~Texture (  )  [inline]

Destructor.

Parameters:
layout requested size of memory block.


Member Function Documentation

template<class Type, size_t Dim>
void Cuda::OpenGL::Texture< Type, Dim >::alloc ( const Size< Dim > &  _size  )  [inline]

Allocate texture memory.

size to be allocated

Reimplemented from Cuda::Storage< Type, Dim >.


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

Generated on Sun Sep 13 00:55:29 2009 for cudatemplates by  doxygen 1.5.6