Smart pointer for OpenGL buffer memory with reference counting. More...
#include <opengl_interop_deprecated.hpp>
Public Types | |
enum | Usage { ARRAY_BUFFER = 0x8892, TEXTURE_BUFFER = 0x88EC } |
Public Member Functions | |
GlBuffer (Usage usage) | |
create empty buffer More... | |
GlBuffer (int rows, int cols, int type, Usage usage) | |
create buffer More... | |
GlBuffer (Size size, int type, Usage usage) | |
GlBuffer (InputArray mat, Usage usage) | |
copy from host/device memory More... | |
void | create (int rows, int cols, int type, Usage usage) |
void | create (Size size, int type, Usage usage) |
void | create (int rows, int cols, int type) |
void | create (Size size, int type) |
void | release () |
void | copyFrom (InputArray mat) |
copy from host/device memory More... | |
void | bind () const |
void | unbind () const |
Mat | mapHost () |
map to host memory More... | |
void | unmapHost () |
gpu::GpuMat | mapDevice () |
map to device memory More... | |
void | unmapDevice () |
int | rows () const |
int | cols () const |
Size | size () const |
bool | empty () const |
int | type () const |
int | depth () const |
int | channels () const |
int | elemSize () const |
int | elemSize1 () const |
Usage | usage () const |
Smart pointer for OpenGL buffer memory with reference counting.
enum cv::GlBuffer::Usage |
|
explicit |
create empty buffer
cv::GlBuffer::GlBuffer | ( | InputArray | mat, |
Usage | usage | ||
) |
copy from host/device memory
void cv::GlBuffer::bind | ( | ) | const |
|
inline |
|
inline |
void cv::GlBuffer::copyFrom | ( | InputArray | mat | ) |
copy from host/device memory
|
inline |
|
inline |
|
inline |
|
inline |
gpu::GpuMat cv::GlBuffer::mapDevice | ( | ) |
map to device memory
Mat cv::GlBuffer::mapHost | ( | ) |
map to host memory
void cv::GlBuffer::release | ( | ) |
|
inline |
|
inline |
|
inline |
void cv::GlBuffer::unbind | ( | ) | const |
void cv::GlBuffer::unmapDevice | ( | ) |
void cv::GlBuffer::unmapHost | ( | ) |
|
inline |