Android 上用于绘制应用程序的 OpenGL 或 Canvas
我开始编写一个手指画风格的应用程序(我已经看到了 Google Developer 资源上的教程)。该应用程序将具有以下内容:
1.)要在其上绘制的背景图像
2.)用手指绘制时,它不会绘制颜色,而是绘制纹理/图像,如 Photoshop 画笔。
我已经开始在 OpenGL 中实现,但遇到了在手指拖动期间创建许多四边形的问题。我想知道是否有人有一些指示可以引导我决定是否应该继续用 OpenGL 编写或废弃并转到 Canvas?像这样的应用程序有哪些优点和缺点以及限制。
非常感谢!
I am beginning to write a finger paint style application (I have seen the tutorial on the Google Developer resource). The application will have the following:
1.) A background image to paint on top of
2.) When drawing with finger, it will not draw colors, but a texture/image like a photoshop brush.
I have begun the implementation in OpenGL but am running into an issue with creating many quads during a finger drag. I was wondering if anyone had some pointers that can lead me to decide if I should continue writing in OpenGL or to scrap and go to Canvas? What are the advantages and disadvantages, as well as restrictions for an application like this.
Much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议使用OpenGL。也许会更难,但将来当您需要应用程序提供更多功能时,这对您来说会更好。
I would suggest OpenGL. Maby harder but it will be much better for you in future when you will need more from your app.
我建议你们俩,但对于绘画,您应该使用 Canvas,但如果您还想编辑和添加效果,则需要 OpenGL。
I would suggest you both but for painting you should use Canvas but if you want also edit and add effects you need OpenGL.