An alternative to CoreGraphics?

I am looking for a 2D rendering library as an alternative to CoreGraphics on the iPhone. Everything in my application is quite dynamic, which greatly complicates the process of layering and animation.

I am very familiar with OpenGL , and that is how rendering is implemented right now. Everything would be much easier to expand, and development would be much faster if I didn't have to worry about low-level materials in OpenGL (although my code would look so neat: D).

I prefer C ++ over Objective-C, so if you know any C ++ libraries for rendering, that would be great. I can work with C. too. A rendering path, like in CoreGraphics or the JavaScript API, would be helpful. Will Cairo work on the iPhone?

I really worked on my own 2D renderer, which will probably be released even if I don't use it in my application because I like to work on it. Does iPhone support a stencil buffer? I can use polygon triangulation or use the GLU tessellation library, but the stencil buffer is safe to load work in the end.

Edit: Also, I already implemented rendering in this application with CoreGraphics, and it is not as good as I would like. I did some research, and people suggested not using CoreGraphics for things that constantly redraw the screen. Some said that CoreGraphics did not use a GPU, others said that it was some kind of caching mechanism. Since then I have avoided this.

+3
source share
1 answer

MonkVG is an implementation of the OpenVG 1.1 API, similar to the implementation of vector graphics, currently using the OpenGL ES backend, which should be compatible with any HW that supports OpenGL ES 2.0, which includes most iOS and Android devices.

This is an open source licensed BSD project that is under active development. At the time of this writing, it is in a very early preliminary state (very minimal functions are implemented). Sponsors and sponsors are invited.

It can be found on GitHub http://github.com/micahpearlman/MonkVG

In addition, there are SVG and SWF (flash) renderers created on top of MonkVG:

MonkSVG MonkSWF

+1

Source: https://habr.com/ru/post/1780783/


All Articles