EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

getVertexAttribOffset method

Returns the address of a specified vertex attribute.

IE11

 

Syntax

var retVal = WebGLRenderingContext.getVertexAttribOffset(index, pname);

Parameters

index [in]

Type: Number

The index of the vertex attribute to query.

pname [in]

Type: Number

Must be gl.VERTEX_ATTRIB_ARRAY_POINTER

Return value

Type: Number

The address of the vertex attribute. Returns a null if an error is generated. Returns 0 if the context lost flag is set.

Remarks

WebGL errorDescription
gl.INVALID_ENUMpname isn't the constant gl.VERTEX_ATTRIB_ARRAY_POINTER..
gl.INVALID_VALUEindex is greater than or equal to gl.MAX_VERTEX_ATTRIBS.

 

See also

WebGLRenderingContext

 

 

표시:
© 2014 Microsoft