机器人:GLWallpaperService导致绿屏 [英] android: GLWallpaperService causing green screen
问题描述
我想创建一个使用OpenGL的一个活的壁纸(小于2.0)。
I am trying to create a live wallpaper using opengl (<2.0).
我进口想跑罗伯特·格林GLWallpaperService和实例这里(使用Eclipse SDK)。
I imported and tried to run Robert Green's GLWallpaperService and Example here (using Eclipse SDK).
我的手机是一个护胃航升Android 2.1系统。我已经知道它可以运行其他的OpenGL的LWP。
My phone is a Huwei Ascend Android 2.1. I already know it can run other opengl LWPs.
当我运行该程序包,它只是产生一个坚实的绿色屏障,并且没有形状或任何东西。
When I run the package, it just produces a solid green screen, and no shapes or anything.
香港专业教育学院研究也很多,仍然无法弄清楚为什么会这样。
Ive researched it alot and still cant figure out why this is happening.
我读了几遍,该命名空间必须改变我的包。但仍然没有运气...
I read a few times that the namespaces have to be changed to my package. But still no luck...
我想他GLWallpaperService JAR库链接到我的包按指示。都能跟得上。
I tried linking his GLWallpaperService JAR library to my package as per instructed. Nope.
任何指导,将大大AP preciated。
Any guidance would be much appreciated.
推荐答案
尝试gl.glScale()在渲染code。我也得到了同样的问题,我想通了,我GLView是这么多的放大,我看不到任何东西。尽量减少水垢。 我的WO程序
try gl.glScale() in your Renderer Code. I also got the same problem and i figured out that my GLView was so much zoomed that i cant see anything. try to reduce scale. My program wo
这篇关于机器人:GLWallpaperService导致绿屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!