开发者

Does Core Animation makes use Quartz2D and OpenGL 3D or they are at same level in OSX architechture?

开发者 https://www.devze.com 2023-03-18 06:13 出处:网络
I have slight confusion in apple\'s documentation. I am not able to understand that in Graphics and Media Layer, Core Animation is above Quartz framework or in the same line?

I have slight confusion in apple's documentation. I am not able to understand that in Graphics and Media Layer, Core Animation is above Quartz framework or in the same line? From image it looks 开发者_Go百科below. Am I right?

Does Core Animation makes use Quartz2D and OpenGL 3D or they are at same level?

Thank you Rahul


It's not really clear from the illustration, but Core Animation makes use of OpenGL (for compositing) and Quartz (for rendering 2D graphics), so it's a higher-level framework than the other two.

Quartz is tightly integrated with Core Animation and the two are often used in combination, for example when animating a custom layer/view that's drawn with Quartz.

OpenGL is mostly abstracted away by Core Animation and while there is some glue for special applications (like games), you usually wouldn't use OpenGL directly while using Core Animation.


Even 11 years later Quartz rendering in 2D is still all done on the CPU. Only Windows in 18.04 was able to move Font Rendering and 2D to the GPU. The GPU is only for compositing.

0

精彩评论

暂无评论...
验证码 换一张
取 消