i try to develop a c++ no-GUI GIS core(i want the core have no GUI related things, do not use any GUI library) and I can figure out how to do other things except the drawing part. when cope with 2D drawing, it must assign the drawing context, so it could not be platform-independent? For example , in windows, i need get the handle of DC. So i think always the 2D-drawing is related to platform.
how could i make the drawing things platform- independent? any one have some advises?