コード例 #1
0
ファイル: MainView.cs プロジェクト: wowbob396/vivid3d
        public void Render()
        {
            GLO.MakeCurrent();
            GL.ClearColor(Color.Gray);
            // GL.DepthMask(true);

            GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);


            GLO.SwapBuffers();
            GLO.Invalidate();
        }
コード例 #2
0
ファイル: GLO.cs プロジェクト: TigAurora/EquivalentExchange
 //初始化
 private void Awake()
 {
     if (Instance == null)
     {
         DontDestroyOnLoad(gameObject);
         Instance = this;
     }
     else if (Instance != null)
     {
         Destroy(gameObject);
     }
 }
コード例 #3
0
ファイル: MainView.cs プロジェクト: wowbob396/vivid3d
        private void MainView_Load(object sender, EventArgs e)
        {
            //if(GLO == null)
            //{


            GLO.Resize += GLO_Resize;
            GLO.Paint  += GLO_Paint;
            Text        =
                GL.GetString(StringName.Vendor) + " " +
                GL.GetString(StringName.Renderer) + " " +
                GL.GetString(StringName.Version);
            VF = new VForm();
            VF.Set(Width, Height);
            Application.Idle += Application_Idle;
            //MessageBox.Show(Text);

            GLO.Invalidate();
        }