#include <specdim_bufferobject1d.hpp>
Public Member Functions | |
BufferObject1D () | |
Default constructor. | |
BufferObject1D (const Size< 1 > &_size, GLenum t=GL_ARRAY_BUFFER, GLenum u=GL_STATIC_DRAW) | |
Constructor. | |
BufferObject1D (const Layout< Type, 1 > &layout, GLenum t=GL_ARRAY_BUFFER, GLenum u=GL_STATIC_DRAW) | |
Constructor. | |
BufferObject1D (size_t size0, GLenum t=GL_ARRAY_BUFFER, GLenum u=GL_STATIC_DRAW) | |
Constructor. | |
BufferObject1D (const BufferObject1D< Type > &x) | |
Copy constructor. | |
template<class Name> | |
BufferObject1D (const Name &x) | |
Constructor. | |
template<class Name> | |
BufferObject1D (const Name &x, const Size< 1 > &ofs, const Size< 1 > &size) | |
Constructor. | |
template<class Name> | |
BufferObject1D (const Name &x, size_t ofs0, size_t size0) | |
Constructor. | |
void | alloc () |
Allocate memory. | |
void | alloc (const Size< 1 > &_size) |
Allocate memory. | |
void | alloc (size_t size0) |
Allocate memory. |
Cuda::OpenGL::BufferObject1D< Type >::BufferObject1D | ( | const Size< 1 > & | _size, | |
GLenum | t = GL_ARRAY_BUFFER , |
|||
GLenum | u = GL_STATIC_DRAW | |||
) | [inline] |
Constructor.
_size | requested size of memory block. |
Cuda::OpenGL::BufferObject1D< Type >::BufferObject1D | ( | const Layout< Type, 1 > & | layout, | |
GLenum | t = GL_ARRAY_BUFFER , |
|||
GLenum | u = GL_STATIC_DRAW | |||
) | [inline] |
Constructor.
layout | requested layout of memory block. |
Cuda::OpenGL::BufferObject1D< Type >::BufferObject1D | ( | const BufferObject1D< Type > & | x | ) | [inline] |
Cuda::OpenGL::BufferObject1D< Type >::BufferObject1D | ( | const Name & | x | ) | [inline] |
Constructor.
Initialization from different type.
x | instance of different type to be copied |
Cuda::OpenGL::BufferObject1D< Type >::BufferObject1D | ( | const Name & | x, | |
const Size< 1 > & | ofs, | |||
const Size< 1 > & | size | |||
) | [inline] |
Constructor.
Initialization of region from same or different type.
x | instance to be copied | |
ofs | offset of region | |
size | size of region |
Cuda::OpenGL::BufferObject1D< Type >::BufferObject1D | ( | const Name & | x, | |
size_t | ofs0, | |||
size_t | size0 | |||
) | [inline] |
Constructor.
Initialization of region from same or different type.
x | instance to be copied | |
ofs0 | offset of region | |
size0 | size of region |
void Cuda::OpenGL::BufferObject1D< Type >::alloc | ( | const Size< 1 > & | _size | ) | [inline] |
Allocate memory.
_size | size to be allocated |
void Cuda::OpenGL::BufferObject1D< Type >::alloc | ( | size_t | size0 | ) | [inline] |
Allocate memory.
size0 size to be allocated