Table of Contents

Class Shader

Namespace
TaleWorlds.TwoDimension.Standalone
Assembly
TaleWorlds.TwoDimension.Standalone.dll
public class Shader
Inheritance
Shader
Inherited Members

Methods

CompileShaders(string, string)

public static int CompileShaders(string vertexShaderCode, string fragmentShaderCode)

Parameters

vertexShaderCode string
fragmentShaderCode string

Returns

int

CreateShader(GraphicsContext, string, string)

public static Shader CreateShader(GraphicsContext graphicsContext, string vertexShaderCode, string fragmentShaderCode)

Parameters

graphicsContext GraphicsContext
vertexShaderCode string
fragmentShaderCode string

Returns

Shader

SetBoolean(string, bool)

public void SetBoolean(string name, bool value)

Parameters

name string
value bool

SetColor(string, Color)

public void SetColor(string name, Color color)

Parameters

name string
color Color

SetFloat(string, float)

public void SetFloat(string name, float value)

Parameters

name string
value float

SetMatrix(string, Matrix4x4)

public void SetMatrix(string name, Matrix4x4 matrix)

Parameters

name string
matrix Matrix4x4

SetTexture(string, OpenGLTexture)

public void SetTexture(string name, OpenGLTexture texture)

Parameters

name string
texture OpenGLTexture

SetVector2(string, Vector2)

public void SetVector2(string name, Vector2 value)

Parameters

name string
value Vector2

StopUsing()

public void StopUsing()

Use()

public void Use()

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).