pub struct Texture2D { /* private fields */ }
Expand description

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

Implementations

The constructors.

Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.

The constructors.

Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.

Overloaded parameters
C++ default parameters
  • auto_release: false

The constructors.

Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.

Overloaded parameters
C++ default parameters
  • auto_release: false

The constructors.

Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.

Overloaded parameters
Parameters
  • arows: Number of rows.
  • acols: Number of columns.
  • aformat: Image format. See cv::ogl::Texture2D::Format .
  • autoRelease: Auto release mode (if true, release will be called in object’s destructor).
C++ default parameters
  • auto_release: false

The constructors.

Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.

Overloaded parameters
Parameters
  • asize: 2D array size.
  • aformat: Image format. See cv::ogl::Texture2D::Format .
  • autoRelease: Auto release mode (if true, release will be called in object’s destructor).
C++ default parameters
  • auto_release: false

The constructors.

Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.

Overloaded parameters
Parameters
  • arr: Input array (host or device memory, it can be Mat , cuda::GpuMat or ogl::Buffer ).
  • autoRelease: Auto release mode (if true, release will be called in object’s destructor).
C++ default parameters
  • auto_release: false

Trait Implementations

Wrap the specified raw pointer Read more
Return an the underlying raw pointer while consuming this wrapper. Read more
Return the underlying raw pointer. Read more
Return the underlying mutable raw pointer Read more
Executes the destructor for this type. Read more
Allocates memory for ogl::Texture2D object. Read more
Allocates memory for ogl::Texture2D object. Read more
Decrements the reference counter and destroys the texture object if needed. Read more
Sets auto release mode. Read more
Copies from host/device memory to OpenGL texture. Read more
Copies from OpenGL texture to host/device memory or another OpenGL texture object. Read more
Binds texture to current active texture unit for GL_TEXTURE_2D target.
get OpenGL opject id

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.