Public Member Functions
cv::GlTexture Class Reference

Smart pointer for OpenGL 2d texture memory with reference counting. More...

#include <opengl_interop.hpp>

List of all members.

Public Member Functions

 GlTexture ()
 create empty texture
 GlTexture (int rows, int cols, int type)
 create texture
 GlTexture (Size size, int type)
 GlTexture (InputArray mat, bool bgra=true)
 copy from host/device memory
void create (int rows, int cols, int type)
void create (Size size, int type)
void release ()
void copyFrom (InputArray mat, bool bgra=true)
 copy from host/device memory
void bind () const
void unbind () const
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

Detailed Description

Smart pointer for OpenGL 2d texture memory with reference counting.


Constructor & Destructor Documentation

create empty texture

cv::GlTexture::GlTexture ( int  rows,
int  cols,
int  type 
)

create texture

cv::GlTexture::GlTexture ( Size  size,
int  type 
)
cv::GlTexture::GlTexture ( InputArray  mat,
bool  bgra = true 
) [explicit]

copy from host/device memory


Member Function Documentation

void cv::GlTexture::create ( int  rows,
int  cols,
int  type 
)
void cv::GlTexture::create ( Size  size,
int  type 
)
void cv::GlTexture::copyFrom ( InputArray  mat,
bool  bgra = true 
)

copy from host/device memory

int cv::GlTexture::rows ( ) const
int cv::GlTexture::cols ( ) const
bool cv::GlTexture::empty ( ) const
int cv::GlTexture::type ( ) const
int cv::GlTexture::depth ( ) const
int cv::GlTexture::channels ( ) const
int cv::GlTexture::elemSize ( ) const
int cv::GlTexture::elemSize1 ( ) const

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