我的绘图应用程序应该使用 Quartz 还是 Open GL ES?或者两者结合起来?
这是我的第一个 iPhone/iPad 应用程序:S
这是一个绘图应用程序,我希望用户可以保存当前的工作,然后继续在同一张图像上绘图(更新)。
我已经根据 this 和 此。这使用石英。 因此,我必须将其保存为某种可以读回内存并显示在屏幕上进行更新的格式(用户绘制另一条线或之前删除一些线)。
图像将保存在服务器上,我希望它的格式在未来的 Android 设备中也可以读取它(只是读取它,而不是更新)。
此外,在完成绘制后,图像将进行很多变换(比例、投影......)。我发现 Open GL ES 非常适合这种转换 --> Open GL ES
所以这个问题是的,
我应该使用 Quartz 进行绘图,因为它很简单,并以某种方式将图像转换为 Open GL,因为 OpenGL 适合转换?以哪种格式保存绘图以便稍后用于更新并且 Android 设备也可以读取它?
This is my first iPhone/iPad app :S
It is a drawing app and I would like that user could save the current work and after that continue drawing on that same image (updating).
I already did something based on this and this. This uses Quartz.
So I would have to save it to some format that can be read back into the memory and displayed on the screen for updating (user draws another line or erases some before).
The images would be saved on server and I would like it to be in a format that in future Android devices also can read it (just read it, not update).
Also, a lot of transformations is going to be on that images after they are finished drawing (scale, projection...). I found that Open GL ES is great for this transformations --> Open GL ES
So the question is,
should I use Quartz for drawing since it is simple and convert the image somehow to Open GL because Open GL is good for transformations? And in which format to save the drawing so it could be used latter for updating and that Android devices could also read it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要移植到 android 后者 Quartz 不会帮助你,openGL 更快,在这种情况下更便携并且非常适合转换(和效果,使用 ES 2.0 和着色器甚至更好)。
然而,如果您还没有使用过 openGL,那么这与quartz 的旅程完全不同,所以也许可以先阅读一些有关 openGL 编程的教程来感受它。
To port to android latter Quartz won't help you, openGL is faster, in this case more portable and great for transformations (and effects, even better with ES 2.0 and shaders).
However if you haven't used openGL yet it's quite a different journey from quartz, so maybe read some tutorials on programming in openGL first to get a fell for it.