2D example with OpenGL

折月煮酒 提交于 2019-12-08 16:22:58

问题


I am looking for a very simple tutorial to use OpenGL only for 2D drawing.

My problem is that I want to draw, with OpenGl a bitmap having its pixels.

Thank you in advance, Ouael


回答1:


The glbuffer for the Android NDK was useful for me.

This answer also has many tutorials linked.




回答2:


Get any 3d example and just set the z coordinate to zero.

e.g. if you have coordinates like (2,3,1) change it to (2,3) or (2,3,0).



来源:https://stackoverflow.com/questions/5220105/2d-example-with-opengl

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