static void Main() { UrielConfiguration editorMode = new UrielConfiguration() { ViewPortLength = 900, ViewPortHeight = 900, LockSize = true, LoggingEnabled = true, WorkflowMode = UrielWorkflowMode.EditorMode, WatchDirectory = new List <string>() { @"Z:\ShaderStore\", (Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName) + "\\ExampleShaders" } }; UrielConfiguration movieMode = new UrielConfiguration() { ViewPortLength = 900, ViewPortHeight = 900, LockSize = true, LoggingEnabled = true, WorkflowMode = UrielWorkflowMode.MovieMode, MovieModeShaderFileName = @"Z:\Uriel\Core\bin\Debug\ExampleShaders\TexTest.glsl", WatchDirectory = new List <string>() }; //UrielConfiguration config = editorMode; UrielConfiguration config = movieMode; StaticLogger.Create(config.LoggingEnabled); StaticLogger.Logger.Info("Starting Uriel Main"); StaticLogger.Logger.InfoFormat("Uriel Config: {0}", config.ToString()); KhronosApi.Log += delegate(object sender, KhronosLogEventArgs e) { StaticLogger.Logger.Info(e.ToString()); }; KhronosApi.LogEnabled = false; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new UrielForm(config)); }
public UrielForm(UrielConfiguration configuration) { this.configuration = configuration; if (configuration.WorkflowMode != UrielWorkflowMode.MovieMode) { this.watcher = new ShaderFileWatcher(configuration.WatchDirectory); watcher.Run(); } this.renderLoop = new RenderLoop(); this.builder = new ShaderBuilder(ShaderZoo.BadShaderArguments()); this.FrameTracker = new FrameTracker(); this.ShaderBlobs = new BindingList <ShaderBlob>(); this.listener = new KeyPressListener(); this.tks = new TotalKeyState(); this.ki = new KeyInterpreter(); InitializeComponent(); }