SFML.Net
Shader Constructor (Stream, Stream) |
Load both the vertex and fragment shaders from custom streams
This function can load both the vertex and the fragment
shaders, or only one of them: pass NULL if you don't want to load
either the vertex shader or the fragment shader.
The sources must be valid shaders in GLSL language. GLSL is
a C-like language dedicated to OpenGL shaders; you'll
probably need to read a good documentation for it before
writing your own shaders.
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

public Shader( Stream vertexShaderStream, Stream fragmentShaderStream )
Public Sub New ( vertexShaderStream As Stream, fragmentShaderStream As Stream )
public: Shader( Stream^ vertexShaderStream, Stream^ fragmentShaderStream )
new : vertexShaderStream : Stream * fragmentShaderStream : Stream -> Shader
Parameters
- vertexShaderStream
- Type: System.IOStream
Source stream to read the vertex shader from, or null to skip this shader - fragmentShaderStream
- Type: System.IOStream
Source stream to read the fragment shader from, or null to skip this shader

Exception | Condition |
---|---|
LoadingFailedException |
