; tool) so your best bet would be using that tool to configure the demo.
; If that does not work for some reason, modify this file with care...
-fullscreen = true
+fullscreen = false
resolution = 1024x768
bpp = dontcare
zbuffer = dontcare
-src := src/sumhack.cpp src/events.cpp
-bin := sumhack-thelab
+src = src/sumhack.cpp src/events.cpp
+bin = sumhack-thelab
include src/parts/Makefile-part
include src/sdlvf/Makefile-part
-obj := $(src:.cpp=.o) $(csrc:.c=.o)
+obj = $(src:.cpp=.o) $(csrc:.c=.o)
-opt := -O1
-opt := -g
-CXXFLAGS := -ansi -pedantic -Wall $(opt) -Isrc/3dengfx/src `src/3dengfx/3dengfx-config --cflags`
-CFLAGS := -std=c89 -pedantic -Wall $(opt) `src/3dengfx/3dengfx-config --cflags`
-libs := src/3dengfx/lib3dengfx.a `src/3dengfx/3dengfx-config --libs-no-3dengfx` -lGL -lvorbisfile
+opt = -O1
+opt = -g
+CXXFLAGS = -ansi -pedantic -Wall $(opt) -Isrc/3dengfx/src `src/3dengfx/3dengfx-config --cflags`
+CFLAGS = -std=c89 -pedantic -Wall $(opt) `src/3dengfx/3dengfx-config --cflags`
+libs = src/3dengfx/lib3dengfx.a `src/3dengfx/3dengfx-config --libs-no-3dengfx` -lGL -lvorbisfile
$(bin): $(obj) src/3dengfx/lib3dengfx.a data/tex_list
$(CXX) -o $@ $(obj) $(libs)
data/tex_list: $(src)
tools/find_textures >$@
-include $(obj:.o=.d)
+-include $(obj:.o=.d)
%.d: %.cpp
@set -e; rm -f $@; $(CXX) -MM $(CXXFLAGS) $< > $@.$$$$; \
Material *mat = face[i]->get_material_ptr();
mat->emissive_color = 1.0;
- add_texture(tex[i]);
mat->set_texture(tex[i], TEXTYPE_DIFFUSE);
face[i]->set_texture_addressing(TEXADDR_CLAMP);
scene->add_object(face[i]);
for(int i=0; i<6; i++) {
Material *mat = face[i]->get_material_ptr();
mat->emissive_color = 1.0;
- add_texture(tex[i]);
mat->set_texture(tex[i], TEXTYPE_DIFFUSE);
face[i]->set_texture_addressing(TEXADDR_CLAMP);
scene->add_object(face[i]);
for(int i=0; i<6; i++) {
Material *mat = face[i]->get_material_ptr();
mat->emissive_color = 1.0;
- add_texture(tex[i]);
mat->set_texture(tex[i], TEXTYPE_DIFFUSE);
face[i]->set_texture_addressing(TEXADDR_CLAMP);
scene->add_object(face[i]);