Got transparency working and moved opengl initialization stuff into constructor