mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
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:
parent
15c81ba493
commit
7aabc3c3c1
@ -10,7 +10,7 @@ export CFLAGS = -W -Wall -ansi -I../../include $(DEBUGFLAGS)
|
||||
export LDFLAGS =
|
||||
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:
|
||||
@(mkdir -p bin)
|
||||
|
@ -3,7 +3,7 @@ OBJ = Shader.o
|
||||
|
||||
all: $(EXEC)
|
||||
|
||||
post-fx: $(OBJ)
|
||||
shader: $(OBJ)
|
||||
$(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-graphics -lsfml-window -lsfml-system
|
||||
|
||||
%.o: %.cpp
|
||||
|
@ -188,6 +188,7 @@ int main()
|
||||
case sf::Key::Numpad5 : entityShader.GotoNext(); break;
|
||||
case sf::Key::Numpad3 : globalShader.GotoPrevious(); break;
|
||||
case sf::Key::Numpad6 : globalShader.GotoNext(); break;
|
||||
default : break;
|
||||
}
|
||||
|
||||
// Update the text
|
||||
|
Loading…
Reference in New Issue
Block a user