Table of Contents

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 ITypeDescriptorContext

An optional context object that can be used to obtain further information about the edit.

component object

The component to be edited.

provider IServiceProvider

A service provider that this editor can use to obtain services.

owner IWin32Window

The window handle which contains any editor dialogs.

Returns

bool

true if the component was modified; otherwise, false.

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.