All Questions
4 questions
1
vote
1
answer
558
views
Improving sqlite3 code in swift using c api
Trying to come up with a pattern where the code to open db, writing queries is elegant and clean while handling all possible error conditions.
Following code
...
2
votes
2
answers
667
views
Convert C to Swift
I trying to convert this C code for calculating distance from RSSI to Swift code. I try to do it by myself, but considering I'm beginner, I need help in how to do it.
Here is C code:
...
1
vote
1
answer
436
views
Convert image to grayscale
To convert JPEG file, C function, bgraToGrayscale is called from Swift.
Is there a better way to
1.allocate memory and
2.access pointers
than the ways they have been done in code below?
And ...
2
votes
1
answer
55
views
Creating an expanding CCSprite cluster
I am creating an "explosion" of circle sprites from the character with this code, and I was wondering if there is a more effective way to do such things, because this just seems too stupid.
(This is ...