OpenCV  2.4.13.5
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

§ GlTexture() [1/4]

cv::GlTexture::GlTexture ( )

create empty texture

§ GlTexture() [2/4]

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

create texture

§ GlTexture() [3/4]

cv::GlTexture::GlTexture ( Size  size,
int  type 
)

§ GlTexture() [4/4]

cv::GlTexture::GlTexture ( InputArray  mat,
bool  bgra = true 
)
explicit

copy from host/device memory

Member Function Documentation

§ bind()

void cv::GlTexture::bind ( ) const

§ channels()

int cv::GlTexture::channels ( ) const
inline

§ cols()

int cv::GlTexture::cols ( ) const
inline

§ copyFrom()

void cv::GlTexture::copyFrom ( InputArray  mat,
bool  bgra = true 
)

copy from host/device memory

§ create() [1/2]

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

§ create() [2/2]

void cv::GlTexture::create ( Size  size,
int  type 
)
inline

§ depth()

int cv::GlTexture::depth ( ) const
inline

§ elemSize()

int cv::GlTexture::elemSize ( ) const
inline

§ elemSize1()

int cv::GlTexture::elemSize1 ( ) const
inline

§ empty()

bool cv::GlTexture::empty ( ) const
inline

§ release()

void cv::GlTexture::release ( )

§ rows()

int cv::GlTexture::rows ( ) const
inline

§ size()

Size cv::GlTexture::size ( ) const
inline

§ type()

int cv::GlTexture::type ( ) const
inline

§ unbind()

void cv::GlTexture::unbind ( ) const

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