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