aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/makefile6
-rw-r--r--examples/smelt_test.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/examples/makefile b/examples/makefile
index b4844d9..6654d03 100644
--- a/examples/makefile
+++ b/examples/makefile
@@ -1,9 +1,13 @@
CC= g++
CXXFLAGS= -I/usr/include/freetype2 -I../include -D_LINUX
LINK= -lSDL2 -lvorbis -lvorbisfile -lopenal -ljpeg -lpng -lfreetype -lz -lsmeltext -lsmelt -lCxImage
+LINK_GLFW= -lglfw -lGLEW -lGL -lvorbis -lvorbisfile -lopenal -ljpeg -lpng -lfreetype -lz -lsmeltext -lsmelt -lCxImage
LINK_FOLDER= -L../smelt/sdl -L../extensions
+LINK_GLFW_FOLDER= -L../smelt/glfw -L../extensions
all:
$(CC) smelt_test.cpp $(CXXFLAGS) $(LINK_FOLDER) $(LINK) -o smelt_test
clean:
- rm smelt_test \ No newline at end of file
+ rm smelt_test
+glfw:
+ $(CC) smelt_test.cpp $(CXXFLAGS) $(LINK_GLFW_FOLDER) $(LINK_GLFW) -o smelt_test_glfw
diff --git a/examples/smelt_test.cpp b/examples/smelt_test.cpp
index 6bad6a6..879a507 100644
--- a/examples/smelt_test.cpp
+++ b/examples/smelt_test.cpp
@@ -61,7 +61,7 @@ bool doingNothing()
if(d>0.37){sm->smSFXPlay(sfx);d=0;}
//We render the 3D scene to a render target.
- sm->smRenderBegin3D(60,testtrg);
+ sm->smRenderBegin3D(60,true,testtrg);
//camera position and rotation.
static float pos[3]={0,0,600};
static float rot[3]={0,0,-30};