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?

closed as off-topic by Jason Scheirer, mkennedy, Chris W, Mapperz Oct 29 '14 at 17:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about software development are off-topic here unless they relate directly to Geographical Information Systems, but they can be asked on Stack Overflow." – Jason Scheirer, mkennedy, Chris W, Mapperz
If this question can be reworded to fit the rules in the help center, please edit the question.

  • I don't think the "GIS" part holds any bearing over the "cross-platform drawing stack" part of your problem. You may want to ask this on Stack Overflow. – Jason Scheirer Oct 29 '14 at 15:08
  • Cross-platform GUIs for C++ programs are typically developed using Qt these days. – WhiteboxDev Oct 29 '14 at 15:43

Browse other questions tagged or ask your own question.