Class ShaderScriptComponentEditor
- Namespace
- Bonsai.Shaders.Configuration.Design
- Assembly
- Bonsai.Shaders.Design.dll
Provides a custom user interface for editing and validating GLSL shader scripts.
public class ShaderScriptComponentEditor : WorkflowComponentEditor
- Inheritance
-
ShaderScriptComponentEditor
- Inherited Members
Methods
EditComponent(ITypeDescriptorContext, object, IServiceProvider, IWin32Window)
Edits the component and returns a value indicating whether the component was modified using the specified context and a parent window handle.
public override bool EditComponent(ITypeDescriptorContext context, object component, IServiceProvider provider, IWin32Window owner)
Parameters
context
ITypeDescriptorContextAn optional context object that can be used to obtain further information about the edit.
component
objectThe component to be edited.
provider
IServiceProviderA service provider that this editor can use to obtain services.
owner
IWin32WindowThe window handle which contains any editor dialogs.
Returns
GetShaderExamples()
Gets the GLSL example scripts that can be created from this editor.
protected virtual GlslScriptExample[] GetShaderExamples()
Returns
- GlslScriptExample[]
An array of GLSL examples that this editor can create.