Re: SFML Wrapper
- Posted by mattlewis (admin) Jan 09, 2012
- 1907 views
Lone_EverGreen_Ranger said...
How's this looking?
Looks good, although I think that your GetTime wrapper is incorrect:
xClock_GetTime = define_c_func(System,"sfClock_GetTime",{C_FLOAT},C_FLOAT),
The parameter is a pointer to the sfClock:
xClock_GetTime = define_c_func(System,"sfClock_GetTime",{C_POINTER},C_FLOAT),
If you're not familiar with C (and even if you are), parsing the function prototypes and translating that into a wrapper can be very frustrating. If something isn't working the way you think that it should, I find that reviewing your wrappers and the way that you're handling the data is probably the place to look first.
Matt