在OpenGL android中设置背景
我是 OpenGL 编程的新手。我制作了一个旋转立方体,在立方体的不同面上有不同的图像。我想为屏幕设置背景。任何帮助将不胜感激。
I am new to OpenGL programming.I have made a rotating cube with different images on different faces of the cube..i want to set background for the Screen..Any help will be appreciated..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
绘制一个覆盖整个视口的纹理四边形。为此,请将投影和模型视图切换为标识并禁用深度测试。由于投影和模型视图是同一顶点坐标 [-1 … 1] 将覆盖整个视口。在代码中:
Draw a textured quad covering the whole viewport. To do this, switch the projection and modelview to identity and disable depth testing. With projection and modelview being identity vertex coordinates [-1 … 1] will cover the whole viewport. In code:
在我的项目中,创建 GLSurfaceView 的所有代码如下所示:
注意:不要使用
我在上面浪费了几天时间。
并且不要打电话
进来
In my project all code of creation GLSurfaceView looks like:
NOTE: Do not use
I wasted a few days on it.
And do not call
in
我认为OP想把他的代码变成Android动态壁纸。
@Sumit:如果我是对的,你应该尽职尽责: http:// developer.android.com/resources/articles/live-wallpapers.html
如果我错了,那么请更准确地提出您的问题。
I think the OP wants to turn his code into an android live wallpaper.
@Sumit : if I'm right you should do your due dilligence: http://developer.android.com/resources/articles/live-wallpapers.html
If I'm wrong, then please be more precise in your question.