DOCME: out of date!
The ObjectModelRenderer class implements some functionality for Renderers that use an object-model based engine (which is currently true for all available renderers).
It implements the object parts of the Renderer
interface, keeps a global IntHash mapping Xinferno IDs to NativeObjects (here,
these are called 'Primitive's. The type parameter is in fact required to be
the same as NativeObject. FIXME: clean this up a little!
Deriving classes should ignore the startObject, endObject, startNative,
endNative, showObject and setTransform functions of the Renderer interface
(i.e., not implement them), and instead implement the createPrimitive,
attachPrimitive, clearPrimitive and setPrimitiveTransform functions
declared here. The default implementations of those do nothing. Deriving classes
can access the private member current to get access to the NativeObject currently
being (re-)defined.
child to the parent object,
i.e., insert it, addChild, however you want to call it.