Re: SFML2 Demo Dilema

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu