Integrating Stack Blur C++ Port to iPhone SDK
Can anybody give me a pointer as to how to integrate the Stack Blur C++ library to Objective C?
http://antigrain.com/index.html
It's probably straightforward. I used to be a C开发者_开发百科 programmer long, long time ago and now I'm comfortable enough with Objective C but I completely bypassed C++ so it gives me a headache just looking at the code.
Any help would be greatly appreciated.
You'll want to look at the docs regarding "Objective-C++". Basically, you can semi-freely intermix Obj-C and C++ with a few restrictions. The main one is that Obj-C classes can't inherit from C++ or vice versa. You can have C++ members in an obj-c class, and vice versa, because it's just pointers.
Here's an implementation of Stack Blur for iOS somebody else created:
https://github.com/tomsoft1/StackBluriOS
I'm sure it'll come in handy for some people.
精彩评论