シェーダープログラマが集うスレat GAMEDEV
シェーダープログラマが集うスレ - 暇つぶし2ch123:名前は開発中のものです。
02/05/24 07:04
(´-`).。oO(何で仕様書を読まないんだろう・・・)

The commands

 void VertexAttribs{1234}{sfd}vNV(uint index, sizei n, T coords[]);
 void VertexAttribs4ubvNV(uint index, sizei n, GLubyte coords[]);

specify a contiguous set of n vertex attributes. The effect of

 VertexAttribs{1234}{sfd}vNV(index, n, coords)

is the same as the command sequence

 #define NUM k /* where k is 1, 2, 3, or 4 components */
 int i;
 for (i=n-1; i>=0; i--) {
  VertexAttrib{NUM}{sfd}vNV(i+index, &coords[i*NUM]);
 }

VertexAttribs4ubvNV behaves similarly.

The VertexAttribNV calls equivalent to VertexAttribsNV are issued in
reverse order so that vertex program execution is provoked when index
is zero only after all the other vertex attributes have first been
specified.


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch