TkGS graphics model is device-independent. Drawing operations can be performed transparently on any kind of device: windows, full screen, printers, plotters, metafiles... For each type of device, one needs to write a device driver that acts as a translator between device-independent TkGS structures and calls and the underlying device-specific structures and calls (Win32, MacOS Toolbox, Xlib, DirectX, OpenGL, PostScript...).
TkGS provides an installable device driver model. Device drivers need to register themselves to TkGS by passing a driver descriptor (ie a function pointer table). Access to drawables will be done through this descriptor. However drawable creation will need device-specific routines (see Porting Tk code to TkGS)
int TkGS_GetDeviceCap( TkGS_Device device, int capability );
device
: the TkGS_Device we
want to query.
capability
: the capability.