From: Francois Fleuret Date: Sat, 4 Jul 2009 21:55:38 +0000 (+0200) Subject: Automatic commit X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f825b57d69d139d239eae7773a51929ab869dd5;p=universe.git Automatic commit --- diff --git a/Makefile b/Makefile index 10669ed..3ad3823 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,10 @@ main: main.o misc.o simple_window.o universe.o polygon.o map.o \ task.o retina.o manipulator.o approximer.o intelligence.o $(CXX) -lX11 $(CXXFLAGS) -o $@ $^ $(LDFLAGS) +art: art.o misc.o simple_window.o universe.o polygon.o map.o \ + task.o retina.o manipulator.o approximer.o intelligence.o + $(CXX) -lX11 $(CXXFLAGS) -o $@ $^ $(LDFLAGS) + %.task: %.cc misc.o universe.o polygon.o map.o task.o manipulator.o $(CXX) $(CXXFLAGS) -shared -Wl,-soname,$@ -o $@ $^ diff --git a/art.cc b/art.cc index d71f266..37dba17 100644 --- a/art.cc +++ b/art.cc @@ -1,3 +1,5 @@ +// -*- compile-command:"g++ -lX11 -Wall -g -O3 -o art misc.o simple_window.o universe.o polygon.o map.o task.o retina.o manipulator.o approximer.o intelligence.o art.cc -L/usr/X11R6/lib/"; -*- + #include #include #include @@ -22,8 +24,8 @@ int main(int argc, char **argv) { nice(19); scalar_t xs[] = { -28, 28, 28, -28 }; scalar_t ys[] = { -28, -28, 28, 28 }; - Universe universe(1000); int w = 20, h = 20; + Universe universe(w * h * 10, w * 60, h * 60); Polygon *p; for(int x = 0; x < w; x++) for(int y = 0; y < h; y++) { p = new Polygon(1.0, 1.0, 1.0, 0.0, xs, ys, 4);