wrappers and c structures

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

Hi,

[ wrappers ]

Has anyone wrapped any parts of Direct X? (or anyone planning to)
More specifically has anyone wrapped Direct Input?


[ c structures ]

For people who are wrapping DLL's, does anyone have a better way to handle c
structures?
Currently I use a very basic way of defining constants of the offsets of
each structure element.
eg
constant structure_element_red = 0
constant structure_element_blue = 4

poke4( address + structure_element_blue, #0000FF)

Of course this method means I have to know what data type
'structure_element_blue' is, otherwise I
could end up poking a float32, or something else in there.


thanks,

-molasses

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

Search



Quick Links

User menu

Not signed in.

Misc Menu