implement more basic webgl routines