Class cv::ogl::Arrays#

Wrapper for OpenGL Client-Side Vertex arrays. View details

Collaboration diagram for cv::ogl::Arrays:

Detailed Description#

Wrapper for OpenGL Client-Side Vertex arrays.

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

Constructor & Destructor Documentation#

Arrays()#

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

Default constructor.

Member Function Documentation#

bind()#

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

Binds all vertex arrays.

empty()#

bool cv::ogl::Arrays::empty()

release()#

void cv::ogl::Arrays::release()

Releases all inner buffers.

resetColorArray()#

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

Resets vertex colors.

resetNormalArray()#

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

Resets vertex normals.

resetTexCoordArray()#

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

Resets vertex texture coordinates.

resetVertexArray()#

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

Resets vertex coordinates.

setAutoRelease()#

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

Sets auto release mode all inner buffers.

Parameters

  • flag — Auto release mode.

setColorArray()#

void cv::ogl::Arrays::setColorArray(InputArray color)

Sets an array of vertex colors.

Parameters

  • color — array with vertex colors, can be both host and device memory.

setNormalArray()#

void cv::ogl::Arrays::setNormalArray(InputArray normal)

Sets an array of vertex normals.

Parameters

  • normal — array with vertex normals, can be both host and device memory.

setTexCoordArray()#

void cv::ogl::Arrays::setTexCoordArray(InputArray texCoord)

Sets an array of vertex texture coordinates.

Parameters

  • texCoord — array with vertex texture coordinates, can be both host and device memory.

setVertexArray()#

void cv::ogl::Arrays::setVertexArray(InputArray vertex)

Sets an array of vertex coordinates.

Parameters

  • vertex — array with vertex coordinates, can be both host and device memory.

size()#

int cv::ogl::Arrays::size()

Returns the vertex count.

Member Data Documentation#

color_#

Buffer cv::ogl::Arrays::color_

normal_#

Buffer cv::ogl::Arrays::normal_

size_#

int cv::ogl::Arrays::size_

texCoord_#

Buffer cv::ogl::Arrays::texCoord_

vertex_#

Buffer cv::ogl::Arrays::vertex_

Source file#

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