wrappers and c structures
- Posted by Molasses <molasses at ALPHALINK.COM.AU> Dec 22, 1998
- 489 views
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