在android中找不到OpenGLContext扩展了SurfaceView类

时间:2011-07-06 09:46:42

标签: android opengl-es

我在创造游戏。

我只是游戏的初学者,我有一些演示。

但是当我想要OpenGLContext的对象时,我只是面对这个问题。

这是我的代码:

public class GLView extends SurfaceView implements SurfaceHolder.Callback
    {
    private OpenGLContext ctx;
    private Tunnel3D      tunnel;

在OpenGLContext上我收到了错误。

我该怎么办?

1 个答案:

答案 0 :(得分:0)

OpenGLContext已过时。你应该做我在this answer写的。