Shader Constructor

SFML.Net

Shader Constructor
Overload List
  Name Description
Public method Shader(IntPtr)
Construct the shader from a pointer
Public method Shader(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.
Public method Shader(String, String)
Load the vertex and fragment shaders from files 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 text files containing 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.
Top
See Also