Implemented XGL base class and graphics initialization.