3

他のバッファには、次のような関数があります。

glVertexArrayVertexAttribOffsetEXT(
    this->handle,               // vao handle
    vbo.getHandle(),            // vbo handle
    index,                      // specifies the index of the generic vertex attribute to be modified.
    size,                       // number of components per generic vertex attribute
    vbo.getType(),              // specifies the data type of each component in the array
    normalized,                 // specifies whether fixed-point data values should be normalized
    stride,                     // specifies the byte offset between consecutive generic vertex attributes
    offset                      // specifies a pointer to the first component of the first generic vertex attribute in the array
    );

しかし、要素バッファーをvaoにバインドする方法が見つかりません。または私はそこに何かが欠けていますか?

PS:vertex-array-objectタグとdirect-state-accessタグを追加することは意味がありますか?

4

1 に答える 1

5

それはその一部ではないので、あなたはそれを見つけることができません。

DSA拡張機能は、VAOがGL3.0の一部になる前に設計され、後でそれと対話するように変更されました。それが仕様の穴であることは驚くことではありません。仕様の所有者(拡張機能の上部にリストされています)に連絡してください。

于 2010-09-23T09:54:25.973 に答える