Re: SFML2 Demo Dilema
- Posted by Shian_Lee May 09, 2015
- 2580 views
jimcbrown said...
Shian_Lee said...
As far as I understand C struct, it's about a single pointer for continuous block of memory. So I assume that all you need is a pointer
More or less. There are some annoying hiccups, however, like packing size/padding.
Well, that's what my old library did: not only storing variables, but also padding and aligning them, as fields in records.
With this kind of library you always deal with full struct, you don't really need to pass or accept individual variables.