Table of Contents

Class Shader

Namespace
LibGFX.Graphics.Shader
Assembly
LibGFX.dll
public class Shader
Inheritance
Shader
Inherited Members

Constructors

Shader()

Default constructor for the Shader class.

public Shader()

Shader(string)

Constructor for the Shader class that initializes the source code.

public Shader(string source)

Parameters

source string

The source code of the shader.

Properties

ShaderID

Gets or sets the ID of the shader.

public int ShaderID { get; set; }

Property Value

int

Source

Gets or sets the source code of the shader.

public string Source { get; set; }

Property Value

string

Methods

FromFile(string)

Creates a Shader object by reading the source code from a file.

public static Shader FromFile(string filename)

Parameters

filename string

The path to the file containing the shader source code.

Returns

Shader

A Shader object with the source code read from the file.