OpenCV  2.4.13
Open Source Computer Vision
cv::GlTexture Class Reference

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

#include <opengl_interop_deprecated.hpp>

Public Member Functions

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

cv::GlTexture::GlTexture ( )

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::bind ( ) const
int cv::GlTexture::channels ( ) const
inline
int cv::GlTexture::cols ( ) const
inline
void cv::GlTexture::copyFrom ( InputArray  mat,
bool  bgra = true 
)

copy from host/device memory

void cv::GlTexture::create ( int  rows,
int  cols,
int  type 
)
void cv::GlTexture::create ( Size  size,
int  type 
)
inline
int cv::GlTexture::depth ( ) const
inline
int cv::GlTexture::elemSize ( ) const
inline
int cv::GlTexture::elemSize1 ( ) const
inline
bool cv::GlTexture::empty ( ) const
inline
void cv::GlTexture::release ( )
int cv::GlTexture::rows ( ) const
inline
Size cv::GlTexture::size ( ) const
inline
int cv::GlTexture::type ( ) const
inline
void cv::GlTexture::unbind ( ) const

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