OpenCV  4.1.0
Open Source Computer Vision
Public Member Functions | List of all members
cv::ogl::Arrays Class Reference

Wrapper for OpenGL Client-Side Vertex arrays. More...

#include <opencv2/core/opengl.hpp>

Public Member Functions

 Arrays ()
 Default constructor.
 
void bind () const
 Binds all vertex arrays.
 
bool empty () const
 
void release ()
 Releases all inner buffers.
 
void resetColorArray ()
 Resets vertex colors.
 
void resetNormalArray ()
 Resets vertex normals.
 
void resetTexCoordArray ()
 Resets vertex texture coordinates.
 
void resetVertexArray ()
 Resets vertex coordinates.
 
void setAutoRelease (bool flag)
 Sets auto release mode all inner buffers.
 
void setColorArray (InputArray color)
 Sets an array of vertex colors.
 
void setNormalArray (InputArray normal)
 Sets an array of vertex normals.
 
void setTexCoordArray (InputArray texCoord)
 Sets an array of vertex texture coordinates.
 
void setVertexArray (InputArray vertex)
 Sets an array of vertex coordinates.
 
int size () const
 Returns the vertex count.
 

Detailed Description

Wrapper for OpenGL Client-Side Vertex arrays.

ogl::Arrays stores vertex data in ogl::Buffer objects.

Constructor & Destructor Documentation

cv::ogl::Arrays::Arrays ( )

Default constructor.

Member Function Documentation

void cv::ogl::Arrays::bind ( ) const

Binds all vertex arrays.

bool cv::ogl::Arrays::empty ( ) const
void cv::ogl::Arrays::release ( )

Releases all inner buffers.

void cv::ogl::Arrays::resetColorArray ( )

Resets vertex colors.

void cv::ogl::Arrays::resetNormalArray ( )

Resets vertex normals.

void cv::ogl::Arrays::resetTexCoordArray ( )

Resets vertex texture coordinates.

void cv::ogl::Arrays::resetVertexArray ( )

Resets vertex coordinates.

void cv::ogl::Arrays::setAutoRelease ( bool  flag)

Sets auto release mode all inner buffers.

Parameters
flagAuto release mode.
void cv::ogl::Arrays::setColorArray ( InputArray  color)

Sets an array of vertex colors.

Parameters
colorarray with vertex colors, can be both host and device memory.
void cv::ogl::Arrays::setNormalArray ( InputArray  normal)

Sets an array of vertex normals.

Parameters
normalarray with vertex normals, can be both host and device memory.
void cv::ogl::Arrays::setTexCoordArray ( InputArray  texCoord)

Sets an array of vertex texture coordinates.

Parameters
texCoordarray with vertex texture coordinates, can be both host and device memory.
void cv::ogl::Arrays::setVertexArray ( InputArray  vertex)

Sets an array of vertex coordinates.

Parameters
vertexarray with vertex coordinates, can be both host and device memory.
int cv::ogl::Arrays::size ( ) const

Returns the vertex count.


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