Public Types | Public Member Functions
cv::GlBuffer Class Reference

Smart pointer for OpenGL buffer memory with reference counting. More...

#include <opengl_interop.hpp>

List of all members.

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

Detailed Description

Smart pointer for OpenGL buffer memory with reference counting.


Member Enumeration Documentation

Enumerator:
ARRAY_BUFFER 
TEXTURE_BUFFER 

Constructor & Destructor Documentation

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


Member Function Documentation

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 
)

copy from host/device memory

map to host memory

map to device memory

int cv::GlBuffer::rows ( ) const
int cv::GlBuffer::cols ( ) 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

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