How to Teach Graphics Using X (And Live To Tell About It) Theo Pavlidis State University of New York The Problem If you are teaching a graphics course with programming assignments, you will probably agree that using X for that purpose can be a troublesome experience.X is a large and complex system and its major roolkits (such as Motif) are oriented towards GUls rather than graphics. Generating even the simplest graphics display requires using the low level Xlib functions and close to 30 lines of code for the trivial "hello world" program. (You can get away with half of that if you f'~ure out the right widget to use). Clearly, you must provide an interface library to X; the question is what kind. It is tempting to write a library that hides X completely and imitates whatever system you were using previously. I believe that this is not the best solution for several reasons: ¢ Students will eventually enter the "real world" and must deal directly with window systems. It is desirable to prepare them for that day. ¢ If the library is going to be complete, it will duplicate a lot of work already done. If it
/lp/association-for-computing-machinery/how-to-teach-graphics-using-x-and-live-to-tell-about-it-7mR0tv8die