Did you use any automated process to make the flat (no OOP) layer? I'm asking because I was thinking of doing the same thing for my engine, to allow usage from C programs. i was thinking of using PasDoc parser for this, and writing a specialized generator that outputs "flat" Pascal code (I'm a devel of PasDoc, so I know the necessary internals..).

Never really got to implementing it, but it would be nice if others would find it useful too (or if others already implemented something similar ).