toge's diary

コンピュータ関連の趣味をつらつらと。

glIndexPointerはカラーインデックスの配列を示す

http://www.cs.rit.edu/~ncs/Courses/570/UserGuide/OpenGLonWin-15.html より

glIndexPointer() specifies the location and data format of an array of color indexes.

うん、完全に勘違いしてましたよ。てっきりglDrawArrayElements()に渡すのと同じ意味でのindexだと、道理でちゃんと図が書けないわけだ。私の睡眠時間を返せ。

でもこれだとindexの転送だけでやたら時間がかかりそうだな。なんかうまい方法はないものか・・・。