OpenCV453
公開メンバ関数 | 全メンバ一覧
cv::ogl::Arrays クラス

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.

引数
flagAuto release mode.

◆ setColorArray()

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

Sets an array of vertex colors.

引数
colorarray with vertex colors, can be both host and device memory.

◆ setNormalArray()

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

Sets an array of vertex normals.

引数
normalarray 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.

引数
texCoordarray 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.

引数
vertexarray with vertex coordinates, can be both host and device memory.

このクラス詳解は次のファイルから抽出されました: