Made a few changes now and made it into a .dll. Still got loads of stuff i'm wanting to add but here's a slightly modified tunnel demo along with the files you need to use the dll as it is atm.
Some changes:
All texture/entity/world etc handles are now integers
Models now contain the object data instead of meshes, models can be used by multiple meshes to cut down on memory usage.
Added functions: text_to_texture,texture_offset,move_texture_offset,render_to_texture.
EDIT d/l removed, get updated version from later post