Smart pointer for OpenGL 2d texture memory with reference counting. More...
#include <opengl_interop.hpp>
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 |
Smart pointer for OpenGL 2d texture memory with reference counting.
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
| 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
| void cv::GlTexture::bind | ( | ) | const |
| void cv::GlTexture::unbind | ( | ) | const |
| int cv::GlTexture::rows | ( | ) | const |
| int cv::GlTexture::cols | ( | ) | const |
| Size cv::GlTexture::size | ( | ) | 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 |