Esempio n. 1
0
        public void Init()
        {
            if (MessageBox.Show("Fullscreen?", "SoulEngineGL Test", MessageBoxButtons.OKCancel) == System.Windows.Forms.DialogResult.OK)
                device = Core.CreateDevice(EngineParameters.DRIVERTYPE.OPENGL, this, 800, 600, 16, true);
            else
                device = Core.CreateDevice(EngineParameters.DRIVERTYPE.OPENGL, this, 800, 600, 16, false);

            if (device != null)
            {
                driver = device.GetVideoDriver();
            }
            else
            {
                MessageBox.Show("CreateDevice failed!");
                return;
            }
        }
Esempio n. 2
0
 public void SetVideoDriver(VideoDriver v)
 {
     this.videoDriver = v;
 }