1
我已经编写绘制三角形和矩形的代码。使用OpenGL for Android绘制三角形的纹理问题
// 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 2011-02-17 21:22:23