Android OpenGL ES not rasterizing - Matrix multiplication switched

ⅰ亾dé卋堺 提交于 2019-12-06 01:23:32

Just off the top of my head, did you check the projection settings? It's possible those shapes are being drawn, just not where you expect them to be.

Also, check the return values for the shader loading steps. If there's a compile issue, you'll get an invalid handle for the shader program.

There may be some warnings or errors in your code which aren't bubbling up to LogCat. I've found that using a native OpenGL wrapper from LibGDX actually shows me those errors and is pretty helpful for debugging.

You can find some helpful pointers on setting up the LibGDX libraries here - http://www.learnopengles.com/android-lesson-seven-an-introduction-to-vertex-buffer-objects-vbos/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!