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

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

#include <specdim_bufferobject3d.hpp>

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

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

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


Detailed Description

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

BufferObject template specialized for 3 dimension(s).

Constructor & Destructor Documentation

template<class Type>
Cuda::OpenGL::BufferObject3D< Type >::BufferObject3D ( const Size< 3 > &  _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::BufferObject3D< Type >::BufferObject3D ( const Layout< Type, 3 > &  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::BufferObject3D< Type >::BufferObject3D ( const BufferObject3D< Type > &  x  )  [inline]

Copy constructor.

Parameters:
x instance of BufferObject3D to be copied

template<class Type>
template<class Name>
Cuda::OpenGL::BufferObject3D< Type >::BufferObject3D ( 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::BufferObject3D< Type >::BufferObject3D ( const Name &  x,
const Size< 3 > &  ofs,
const Size< 3 > &  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::BufferObject3D< Type >::BufferObject3D ( const Name &  x,
size_t  ofs0,
size_t  ofs1,
size_t  ofs2,
size_t  size0,
size_t  size1,
size_t  size2 
) [inline]

Constructor.

Initialization of region from same or different type.

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


Member Function Documentation

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

Allocate memory.

Parameters:
_size size to be allocated

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

Allocate memory.

size0, size1, size2 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