Table of Contents

Class ShaderLibrary

Namespace
Axolotl2D.Shaders
Assembly
Axolotl2D.dll

Creates and disposes the custom shaders owned by one scene scope.

public sealed class ShaderLibrary : IDisposable
Inheritance
ShaderLibrary
Implements
Inherited Members

Constructors

ShaderLibrary(Game)

Creates and disposes the custom shaders owned by one scene scope.

public ShaderLibrary(Game game)

Parameters

game Game

Methods

Create(string, string)

public ShaderProgram Create(string vertexSource, string fragmentSource)

Parameters

vertexSource string
fragmentSource string

Returns

ShaderProgram

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()