Cuda::OpenGL::BufferObject2D< Type > Class Template Reference

BufferObject template specialized for 2 dimension(s). More...

#include <specdim_bufferobject2d.hpp>

Inheritance diagram for Cuda::OpenGL::BufferObject2D< Type >:

Inheritance graph
[legend]
Collaboration diagram for Cuda::OpenGL::BufferObject2D< Type >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BufferObject2D ()
 Default constructor.
 BufferObject2D (const Size< 2 > &_size, GLenum t=GL_ARRAY_BUFFER, GLenum u=GL_STATIC_DRAW)
 Constructor.
 BufferObject2D (const Layout< Type, 2 > &layout, GLenum t=GL_ARRAY_BUFFER, GLenum u=GL_STATIC_DRAW)
 Constructor.
 BufferObject2D (size_t size0, size_t size1, GLenum t=GL_ARRAY_BUFFER, GLenum u=GL_STATIC_DRAW)
 Constructor.
 BufferObject2D (const BufferObject2D< Type > &x)
 Copy constructor.
template<class Name>
 BufferObject2D (const Name &x)
 Constructor.
template<class Name>
 BufferObject2D (const Name &x, const Size< 2 > &ofs, const Size< 2 > &size)
 Constructor.
template<class Name>
 BufferObject2D (const Name &x, size_t ofs0, size_t ofs1, size_t size0, size_t size1)
 Constructor.
void alloc ()
 Allocate memory.
void alloc (const Size< 2 > &_size)
 Allocate memory.
void alloc (size_t size0, size_t size1)
 Allocate memory.


Detailed Description

template<class Type>
class Cuda::OpenGL::BufferObject2D< Type >

BufferObject template specialized for 2 dimension(s).

Constructor & Destructor Documentation

template<class Type>
Cuda::OpenGL::BufferObject2D< Type >::BufferObject2D ( const Size< 2 > &  _size,
GLenum  t = GL_ARRAY_BUFFER,
GLenum  u = GL_STATIC_DRAW 
) [inline]

Constructor.

Parameters:
_size requested size of memory block.

template<class Type>
Cuda::OpenGL::BufferObject2D< Type >::BufferObject2D ( const Layout< Type, 2 > &  layout,
GLenum  t = GL_ARRAY_BUFFER,
GLenum  u = GL_STATIC_DRAW 
) [inline]

Constructor.

Parameters:
layout requested layout of memory block.

template<class Type>
Cuda::OpenGL::BufferObject2D< Type >::BufferObject2D ( const BufferObject2D< Type > &  x  )  [inline]

Copy constructor.

Parameters:
x instance of BufferObject2D to be copied

template<class Type>
template<class Name>
Cuda::OpenGL::BufferObject2D< Type >::BufferObject2D ( const Name &  x  )  [inline]

Constructor.

Initialization from different type.

Parameters:
x instance of different type to be copied

template<class Type>
template<class Name>
Cuda::OpenGL::BufferObject2D< Type >::BufferObject2D ( const Name &  x,
const Size< 2 > &  ofs,
const Size< 2 > &  size 
) [inline]

Constructor.

Initialization of region from same or different type.

Parameters:
x instance to be copied
ofs offset of region
size size of region

template<class Type>
template<class Name>
Cuda::OpenGL::BufferObject2D< Type >::BufferObject2D ( const Name &  x,
size_t  ofs0,
size_t  ofs1,
size_t  size0,
size_t  size1 
) [inline]

Constructor.

Initialization of region from same or different type.

Parameters:
x instance to be copied
ofs0,ofs1 offset of region
size0,size1 size of region


Member Function Documentation

template<class Type>
void Cuda::OpenGL::BufferObject2D< Type >::alloc ( const Size< 2 > &  _size  )  [inline]

Allocate memory.

Parameters:
_size size to be allocated

template<class Type>
void Cuda::OpenGL::BufferObject2D< Type >::alloc ( size_t  size0,
size_t  size1 
) [inline]

Allocate memory.

size0, size1 size to be allocated


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

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