OpenGLDrawElements 方法 (UInt32, Int32, UInt32, IntPtr) |
Render primitives from array data.
命名空间:
DSkin.OpenGL
程序集:
DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法public void DrawElements(
uint mode,
int count,
uint type,
IntPtr indices
)
参数
- mode
- 类型:SystemUInt32
Specifies what kind of primitives to render. Symbolic constants OpenGL.POINTS, OpenGL.LINE_STRIP, OpenGL.LINE_LOOP, OpenGL.LINES, OpenGL.TRIANGLE_STRIP, OpenGL.TRIANGLE_FAN, OpenGL.TRIANGLES, OpenGL.QUAD_STRIP, OpenGL.QUADS, and OpenGL.POLYGON are accepted. - count
- 类型:SystemInt32
Specifies the number of elements to be rendered. - type
- 类型:SystemUInt32
Specifies the type of the values in indices. Must be one of OpenGL.UNSIGNED_BYTE, OpenGL.UNSIGNED_SHORT, or OpenGL.UNSIGNED_INT. - indices
- 类型:SystemIntPtr
Specifies a pointer to the location where the indices are stored.
参见