Does it have to be Allegro, wouldn't OpenGL be much easier? Or DirectX?