Fixed the Shader sample on Linux

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1272 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2009-11-11 09:55:11 +00:00
parent 15c81ba493
commit 7aabc3c3c1
3 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@ export CFLAGS = -W -Wall -ansi -I../../include $(DEBUGFLAGS)
export LDFLAGS = export LDFLAGS =
export EXECPATH = ../bin export EXECPATH = ../bin
all: ftp-sample opengl-sample pong-sample shader-sample qt-sample sockets-sample sound-sample sound_capture-sample voip-sample window-sample wxwidgets-sample X11-sample all: ftp-sample opengl-sample pong-sample qt-sample shader-sample sockets-sample sound-sample sound_capture-sample voip-sample window-sample wxwidgets-sample X11-sample
ftp-sample: ftp-sample:
@(mkdir -p bin) @(mkdir -p bin)

View File

@ -3,7 +3,7 @@ OBJ = Shader.o
all: $(EXEC) all: $(EXEC)
post-fx: $(OBJ) shader: $(OBJ)
$(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-graphics -lsfml-window -lsfml-system $(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-graphics -lsfml-window -lsfml-system
%.o: %.cpp %.o: %.cpp

View File

@ -188,6 +188,7 @@ int main()
case sf::Key::Numpad5 : entityShader.GotoNext(); break; case sf::Key::Numpad5 : entityShader.GotoNext(); break;
case sf::Key::Numpad3 : globalShader.GotoPrevious(); break; case sf::Key::Numpad3 : globalShader.GotoPrevious(); break;
case sf::Key::Numpad6 : globalShader.GotoNext(); break; case sf::Key::Numpad6 : globalShader.GotoNext(); break;
default : break;
} }
// Update the text // Update the text