开发者

iPhone Quartz 2d development using C++?

开发者 https://www.devze.com 2022-12-19 21:11 出处:网络
Could I write c++ code that interacts with the iPhone Quartz 2D framework, or can I only using objective-c?

Could I write c++ code that interacts with the iPhone Quartz 2D framework, or can I only using objective-c?

Than开发者_StackOverflow中文版ks


Yes. Quartz is a C framework. You can use C++ code that uses Quartz.

You will need some Objective-C to launch your application and get a graphics context for a view to draw into.


I think Quartz 2D is a C framework isn't it? As long as you only call the C APIs, you can use C++ by itself. If you want access to any Objective-C frameworks, you will need to look into Objective-C++.

0

精彩评论

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