コード例 #1
0
        static void Main(string[] args)
        {
            logger.Info("Starting main application");

            OpenGLWindow window = new OpenGLWindow(1024, 768);

            window.Run();
        }
コード例 #2
0
        private void OpenGLWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            OpenGLWindow openGLWindow = new OpenGLWindow();

            // TODO: fix!
            //openGLWindow.vertices = lAllVertices;
            openGLWindow.Run();
        }
コード例 #3
0
        private void OpenGLWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            OpenGLWindow openGLWindow = new OpenGLWindow();

            openGLWindow.vertices = lAllVertices;
            openGLWindow.colors   = lAllColors;

            openGLWindow.Run();
        }
コード例 #4
0
 private void RenderWindow()
 {
     while (true)
     {
         _openWindowSem.WaitOne();
         GPU gpu = GPU.Create(500, 500, new DefaultGpuController());
         _renderWindow = new OpenGLWindow(500, 500, "GPUSharp Preview Window", gpu);
         _renderWindow.Run();
         _renderWindow.Dispose();
         _renderWindow = null;
         if (!_isWindowOpened)
         {
             break;
         }
         _isWindowOpened = false;
     }
 }