OpenCV
3.1.0
Open Source Computer Vision
|
Smart pointer for OpenGL 2D texture memory with reference counting. More...
#include "opengl.hpp"
Public Types | |
enum | Format { NONE = 0, DEPTH_COMPONENT = 0x1902, RGB = 0x1907, RGBA = 0x1908 } |
An Image Format describes the way that the images in Textures store their data. More... | |
Public Member Functions | |
Texture2D () | |
The constructors. More... | |
Texture2D (int arows, int acols, Format aformat, unsigned int atexId, bool autoRelease=false) | |
Texture2D (Size asize, Format aformat, unsigned int atexId, bool autoRelease=false) | |
Texture2D (int arows, int acols, Format aformat, bool autoRelease=false) | |
Texture2D (Size asize, Format aformat, bool autoRelease=false) | |
Texture2D (InputArray arr, bool autoRelease=false) | |
void | bind () const |
Binds texture to current active texture unit for GL_TEXTURE_2D target. More... | |
int | cols () const |
void | copyFrom (InputArray arr, bool autoRelease=false) |
Copies from host/device memory to OpenGL texture. More... | |
void | copyTo (OutputArray arr, int ddepth=CV_32F, bool autoRelease=false) const |
Copies from OpenGL texture to host/device memory or another OpenGL texture object. More... | |
void | create (int arows, int acols, Format aformat, bool autoRelease=false) |
Allocates memory for ogl::Texture2D object. More... | |
void | create (Size asize, Format aformat, bool autoRelease=false) |
bool | empty () const |
Format | format () const |
void | release () |
Decrements the reference counter and destroys the texture object if needed. More... | |
int | rows () const |
void | setAutoRelease (bool flag) |
Sets auto release mode. More... | |
Size | size () const |
unsigned int | texId () const |
get OpenGL opject id More... | |
Smart pointer for OpenGL 2D texture memory with reference counting.