Ctrl+K

Shader

Declaration

public class Strawberry.Web.Graphics.Shader

Inherits: Strawberry.Graphics.Shader

Constructors

Shader

void Shader(IGraphicsContext context, string vsCode, string fsCode, VertexElementContainer elements)

Parameters:

Name Type Description
context Strawberry.Graphics.IGraphicsContext
vsCode System.String
fsCode System.String
elements Strawberry.Graphics.VertexElementContainer

Properties

GraphicsContext override

IGraphicsContext GraphicsContext { get }

Program

int Program { get }

Methods

Activate override

void Activate()

SetMatrixParameterByName override

void SetMatrixParameterByName(string constant, string name, Matrix4 mat, bool transpose)

Parameters:

Name Type Description
constant System.String
name System.String
mat Strawberry.Math.Matrix4
transpose System.Boolean

CleanManaged protected override

void CleanManaged()