Wrapper for OpenGL Client-Side Vertex arrays.
More...
#include <opencv2/core/opengl.hpp>
Wrapper for OpenGL Client-Side Vertex arrays.
ogl::Arrays stores vertex data in ogl::Buffer objects.
cv::ogl::Arrays::Arrays |
( |
| ) |
|
void cv::ogl::Arrays::bind |
( |
| ) |
const |
bool cv::ogl::Arrays::empty |
( |
| ) |
const |
void cv::ogl::Arrays::release |
( |
| ) |
|
Releases all inner buffers.
void cv::ogl::Arrays::resetColorArray |
( |
| ) |
|
void cv::ogl::Arrays::resetNormalArray |
( |
| ) |
|
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
-
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. |
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. |
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. |
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. |
int cv::ogl::Arrays::size |
( |
| ) |
const |
Returns the vertex count.
The documentation for this class was generated from the following file: