private void CreateBufferControls() { m_BufferManager = new BufferPluginManager(); m_Buffers = m_BufferManager.GetInstances(); foreach (BufferInstance buffer in m_Buffers) { BufferParameter filterParam = new BufferParameter(XrayImage_Panel, m_History); try { buffer.Instance.Initialize(filterParam); Buffer_ToolBar.Items.Add(buffer.Instance.ToolBarItem); Button button = buffer.Instance.ToolBarItem as Button; if (button != null) { button.Click += new RoutedEventHandler(BufferButton_Clicked); } } catch { //TODO: Error Logs } } }
public void Initialize(Object passedObj) { BufferParameter bufferParam = passedObj as BufferParameter; if (bufferParam != null) { _Effect = bufferParam.dockPanel.Effect as XrayImageEffect; m_History = bufferParam.History; } }
public void GetBufferParameteriv(BufferTarget target, BufferParameter pname, int[] riparams) { glGetBufferParameteriv_IIaI((int)target, (int)pname, riparams); }
public T GetBufferParameter <T>(BufferType target, BufferParameter pname) => this.CallMethod <T>(GET_BUFFER_PARAMETER, target, pname);