1
私は三角形と四角形を描くためのコードを書いています。Android用OpenGLで三角形を描画するときのテクスチャの問題
// Reset the Modelview Matrix
gl.glLoadIdentity();
gl.glTranslatef(0.0f, -1.2f, -6.0f);
tt.draw(gl); //rectangle class draw method
gl.glTranslatef(0.0f, 2.5f, 0.0f);
tr.draw(gl); //triangle class draw method
私は私の問題は、三角形状のテクスチャマッピングにもスクリーンショットがリンクを以下に提供されています ある長方形
// Load the texture for the rectangle in onSurfaceCreated()
tt.loadGLTexture(gl, this.context);
にテクスチャをロードしています。 http://www.freeimagehosting.net/uploads/82fe919770.png
どうすればこの問題を解決できますか?
スクリーンショットは私には正しいようですが、あなたは何を望みますか? – Calvin1602