Shader.SetParameter Method (String, Vector2f)

SFML.Net

ShaderSetParameter Method (String, Vector2f)
Change a 2-components vector parameter of the shader "name" is the name of the variable to change in the shader. The corresponding parameter in the shader must be a 2x1 vector (vec2 GLSL type).

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public void SetParameter(
	string name,
	Vector2f vector
)
Public Sub SetParameter ( 
	name As String,
	vector As Vector2f
)
public:
void SetParameter(
	String^ name, 
	Vector2f vector
)
member SetParameter : 
        name : string * 
        vector : Vector2f -> unit 

Parameters

name
Type: SystemString
Name of the parameter in the shader
vector
Type: SFML.SystemVector2f
Vector to assign
See Also