remove obsolete/unused GL code
add initial code for software graphics