[Canvas.drawVertices Javadoc](http://developer.android.com/reference/android/graphics/Canvas.html#drawVertices(android.graphics.Canvas.VertexMode、int、float []、int、 float []、int、int []、int、short []、int、int、android.graphics.Paint))null
をペイントとして渡すと有効です。texs
パラメータがnull
の場合も同様です。Paintオブジェクトを渡さないと、Canvas.drawVerticesがnullポインタ例外を送出するのはなぜですか?
をペイントtexs配列がnullである場合に使用するシェーダーを指定し
ペイント用null
でdrawVertices
メソッドを呼び出すとき、これは、NULLポインタ例外が発生します。
お返事ありがとうございます。私の使用目的は 'colors'配列を使って三角形が塗りつぶされる色を定義することでした。 (今働いている) –