【发布时间】:2012-03-08 20:49:20
【问题描述】:
我编写了一个测试类,它应该只将应用程序图标绘制到屏幕上。到目前为止还没有运气。我做错了什么?
public class GLTester
{
void test(final Context context)
{
BitmapFactory.Options options = new BitmapFactory.Options();
options.inScaled = false;
bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon, options);
setupGLES();
createProgram();
setupTexture();
draw();
}
void draw()
{
GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);
glUseProgram(glProgramHandle);
}
}
【问题讨论】: