Re: RedyCode 0.9.3 graphics
- Posted by ne1uno Aug 01, 2016
- 1272 views
using a structure lib should help with allocation and calculating the offsets. the only 64 bit compatible structure lib in the rds archive doesn't seem to offer any help with the offsets. not sure how much work it would take to modify struct14 from the rds archive for 64 bits.
The builtins/cffi.e component as shipped with Phix ought to cope on 32/64 bit out of the box. The current version is Eu4.1+ compatible, there's even a 2.4 compatible version, and both can be found at https://bitbucket.org/petelomax/phix.
The following snippet [...]
very nice. cffi as you've show is useful as a tool to check the offset math for 32/64 too.
with less than a dozen structs in the win32 wrap in redylib, and not much dynamic code, maybe a struct lib is overkill? I've always used Matt's structs branch of eu41 and I forgot what else was out there. thanks.