public ShaderCompilerGame() { _graphicsDeviceManager = new GraphicsDeviceManager(this); _data = new ShaderData(); _builder = new ShaderBuilder(_data); }
private bool _isRebuildingAfterReset; // on compilation error, we try to rebuild it again with the original data public ShaderBuilder(ShaderData data) { if (data == null) throw new ArgumentNullException("data"); _data = data; _effectCompiler = new EffectCompiler(); }
private bool _isRebuildingAfterReset; // on compilation error, we try to rebuild it again with the original data public ShaderBuilder(ShaderData data) { if (data == null) { throw new ArgumentNullException("data"); } _data = data; _effectCompiler = new EffectCompiler(); }
public Form1(ShaderData data) { InitializeComponent(); _data = data; // create the RenderControl _renderControl = new RenderControl(); pnRenderControlPanel.Controls.Add(_renderControl); // initialize the controls state from initial data cbInvert.Checked = _data.EnableInvertColor; cbGrayscale.Checked = _data.EnableGrayscale; tbHeader.Text = _data.Header; tbSource.Text = _data.Source; }