Wrapper for OpenGL Client-Side Vertex arrays.
[詳解]
#include <opengl.hpp>
|
|
| Arrays () |
| | Default constructor
|
| |
| void | setVertexArray (InputArray vertex) |
| | Sets an array of vertex coordinates. [詳解]
|
| |
|
void | resetVertexArray () |
| | Resets vertex coordinates.
|
| |
| void | setColorArray (InputArray color) |
| | Sets an array of vertex colors. [詳解]
|
| |
|
void | resetColorArray () |
| | Resets vertex colors.
|
| |
| void | setNormalArray (InputArray normal) |
| | Sets an array of vertex normals. [詳解]
|
| |
|
void | resetNormalArray () |
| | Resets vertex normals.
|
| |
| void | setTexCoordArray (InputArray texCoord) |
| | Sets an array of vertex texture coordinates. [詳解]
|
| |
|
void | resetTexCoordArray () |
| | Resets vertex texture coordinates.
|
| |
|
void | release () |
| | Releases all inner buffers.
|
| |
| void | setAutoRelease (bool flag) |
| | Sets auto release mode all inner buffers. [詳解]
|
| |
|
void | bind () const |
| | Binds all vertex arrays.
|
| |
|
int | size () const |
| | Returns the vertex count.
|
| |
|
bool | empty () const |
| |
Wrapper for OpenGL Client-Side Vertex arrays.
ogl::Arrays stores vertex data in ogl::Buffer objects.
◆ setAutoRelease()
| void cv::ogl::Arrays::setAutoRelease |
( |
bool |
flag | ) |
|
Sets auto release mode all inner buffers.
- 引数
-
◆ setColorArray()
| void cv::ogl::Arrays::setColorArray |
( |
InputArray |
color | ) |
|
Sets an array of vertex colors.
- 引数
-
| 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.
- 引数
-
| 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.
- 引数
-
| 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.
- 引数
-
| vertex | array with vertex coordinates, can be both host and device memory. |
このクラス詳解は次のファイルから抽出されました: