Moved all bindings to the "bindings" sub-directory
Renamed the CSFML directory to c Renamed the DSFML directory to d --> bindings must now be updated to match the new organization! git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1630 4e206d99-4929-0410-ac5d-dfc041789085
BIN
bindings/d/samples/dsfml/bin/Data/background.jpg
Normal file
After Width: | Height: | Size: 154 KiB |
BIN
bindings/d/samples/dsfml/bin/Data/ball.tga
Normal file
BIN
bindings/d/samples/dsfml/bin/Data/ball.wav
Normal file
BIN
bindings/d/samples/dsfml/bin/Data/bluerallyecarleft.bmp
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
bindings/d/samples/dsfml/bin/Data/bluerallyecarright.bmp
Normal file
After Width: | Height: | Size: 27 KiB |
16
bindings/d/samples/dsfml/bin/Data/blur.sfx
Normal file
|
@ -0,0 +1,16 @@
|
|||
texture framebuffer
|
||||
float offset
|
||||
|
||||
effect
|
||||
{
|
||||
vec2 offx = vec2(offset, 0.0);
|
||||
vec2 offy = vec2(0.0, offset);
|
||||
|
||||
vec4 c0 = framebuffer(_in);
|
||||
vec4 c1 = framebuffer(_in - offy);
|
||||
vec4 c2 = framebuffer(_in + offy);
|
||||
vec4 c3 = framebuffer(_in - offx);
|
||||
vec4 c4 = framebuffer(_in + offx);
|
||||
|
||||
_out = c0 * 0.2 + c1 * 0.2 + c2 * 0.2 + c3 * 0.2 + c4 * 0.2;
|
||||
}
|
BIN
bindings/d/samples/dsfml/bin/Data/car_idle.wav
Normal file
BIN
bindings/d/samples/dsfml/bin/Data/cheeseburger.ttf
Normal file
10
bindings/d/samples/dsfml/bin/Data/colorize.sfx
Normal file
|
@ -0,0 +1,10 @@
|
|||
texture framebuffer
|
||||
vec3 color
|
||||
|
||||
effect
|
||||
{
|
||||
vec4 pixel = framebuffer(_in);
|
||||
float gray = pixel.r * 0.39 + pixel.g * 0.50 + pixel.b * 0.11;
|
||||
|
||||
_out = vec4(gray * color, 1.0) * 0.6 + pixel * 0.4;
|
||||
}
|
BIN
bindings/d/samples/dsfml/bin/Data/crosshair.bmp
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
bindings/d/samples/dsfml/bin/Data/crosshair.tga
Normal file
12
bindings/d/samples/dsfml/bin/Data/fisheye.sfx
Normal file
|
@ -0,0 +1,12 @@
|
|||
texture framebuffer
|
||||
vec2 mouse
|
||||
|
||||
effect
|
||||
{
|
||||
float len = distance(_in, mouse) * 7.0;
|
||||
|
||||
if (len < 1.0)
|
||||
_out = framebuffer(_in + (_in - mouse) * len);
|
||||
else
|
||||
_out = framebuffer(_in);
|
||||
}
|
6
bindings/d/samples/dsfml/bin/Data/nothing.sfx
Normal file
|
@ -0,0 +1,6 @@
|
|||
texture framebuffer
|
||||
|
||||
effect
|
||||
{
|
||||
_out = framebuffer(_in);
|
||||
}
|
BIN
bindings/d/samples/dsfml/bin/Data/opengl/background.jpg
Normal file
After Width: | Height: | Size: 140 KiB |
BIN
bindings/d/samples/dsfml/bin/Data/opengl/texture.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
bindings/d/samples/dsfml/bin/Data/paddle.tga
Normal file
BIN
bindings/d/samples/dsfml/bin/Data/wave.jpg
Normal file
After Width: | Height: | Size: 23 KiB |
12
bindings/d/samples/dsfml/bin/Data/wave.sfx
Normal file
|
@ -0,0 +1,12 @@
|
|||
texture framebuffer
|
||||
texture wave
|
||||
vec2 offset
|
||||
|
||||
effect
|
||||
{
|
||||
vec2 texoffset = wave(_in * offset).xy;
|
||||
texoffset -= vec2(0.5, 0.5);
|
||||
texoffset *= 0.05;
|
||||
|
||||
_out = framebuffer(_in + texoffset);
|
||||
}
|