class cv::ogl::Arrays
Overview
Wrapper for OpenGL Client-Side Vertex arrays. Moreā¦
#include <opengl.hpp> class Arrays { public: // methods void bind() const; bool empty() const; void release(); void resetColorArray(); void resetNormalArray(); void resetTexCoordArray(); void resetVertexArray(); void setAutoRelease(bool flag); void setColorArray(InputArray color); void setNormalArray(InputArray normal); void setTexCoordArray(InputArray texCoord); void setVertexArray(InputArray vertex); int size() const; };
Detailed Documentation
Wrapper for OpenGL Client-Side Vertex arrays.
ogl::Arrays stores vertex data in ogl::Buffer objects.
Methods
void bind() const
Binds all vertex arrays.
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.
Parameters:
flag | Auto release mode. |
void setColorArray(InputArray color)
Sets an array of vertex colors.
Parameters:
color | array with vertex colors, can be both host and device memory. |
void setNormalArray(InputArray normal)
Sets an array of vertex normals.
Parameters:
normal | array with vertex normals, can be both host and device memory. |
void setTexCoordArray(InputArray texCoord)
Sets an array of vertex texture coordinates.
Parameters:
texCoord | array with vertex texture coordinates, can be both host and device memory. |
void setVertexArray(InputArray vertex)
Sets an array of vertex coordinates.
Parameters:
vertex | array with vertex coordinates, can be both host and device memory. |
int size() const
Returns the vertex count.