示例#1
0
 protected override void Initialize()
 {
     this.UseXNA = false;
     GL.device   = base.GraphicsDevice;
     this.OnMain();
     if (m_type == null)
     {
         throw new Exception("Not LSetting Register ! ");
     }
     this.MaxScreen(m_type.setting.width, m_type.setting.height);
     this.OnCreate(m_type.setting.landscape, m_type.setting.full);
     this.m_init = new LGameXNA2DActivity(this, width, height);
     this.m_init.SetContent(Content);
     this.m_init.OnCreate(new XNABundle(this));
     base.Initialize();
 }
示例#2
0
 protected override void Initialize()
 {
     this.UseXNA = false;
     GL.device = base.GraphicsDevice;
     this.OnMain();
     if (m_type == null)
     {
         throw new Exception("Not LSetting Register ! ");
     }
     this.MaxScreen(m_type.setting.width, m_type.setting.height);
     this.OnCreate(m_type.setting.landscape, m_type.setting.full);
     this.m_init = new LGameXNA2DActivity(this, width, height);
     this.m_init.SetContent(Content);
     this.m_init.OnCreate(new XNABundle(this));
     base.Initialize();
 }