More changes to try and get a triangle on the screen. Currently the example segfaults. =(