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
Returns
CreateShader(GraphicsContext, string, string)
public static Shader CreateShader(GraphicsContext graphicsContext, string vertexShaderCode, string fragmentShaderCode)
Parameters
graphicsContext
GraphicsContextvertexShaderCode
stringfragmentShaderCode
string
Returns
SetBoolean(string, bool)
public void SetBoolean(string name, bool value)
Parameters
SetColor(string, Color)
public void SetColor(string name, Color color)
Parameters
SetFloat(string, float)
public void SetFloat(string name, float value)
Parameters
SetMatrix(string, Matrix4x4)
public void SetMatrix(string name, Matrix4x4 matrix)
Parameters
SetTexture(string, OpenGLTexture)
public void SetTexture(string name, OpenGLTexture texture)
Parameters
name
stringtexture
OpenGLTexture
SetVector2(string, Vector2)
public void SetVector2(string name, Vector2 value)
Parameters
StopUsing()
public void StopUsing()
Use()
public void Use()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).