static void Main(string[] args) { logger.Info("Starting main application"); OpenGLWindow window = new OpenGLWindow(1024, 768); window.Run(); }
private void OpenGLWorker_DoWork(object sender, DoWorkEventArgs e) { OpenGLWindow openGLWindow = new OpenGLWindow(); // TODO: fix! //openGLWindow.vertices = lAllVertices; openGLWindow.Run(); }
private void OpenGLWorker_DoWork(object sender, DoWorkEventArgs e) { OpenGLWindow openGLWindow = new OpenGLWindow(); openGLWindow.vertices = lAllVertices; openGLWindow.colors = lAllColors; openGLWindow.Run(); }
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; } }