SFML.Net
Shader Constructor |

Name | Description | |
---|---|---|
![]() |
Shader(IntPtr) |
Construct the shader from a pointer
|
![]() |
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.
|
![]() |
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.
|
