X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fchessmodels.c;h=4ef0595d8465c018e29117cbd2cb62b4eed8bec1;hp=0dd9b0cfa867ead1871f30dcd299a5b3d5921294;hb=c28aecf9fc41e3a03494bacf7279745425e2fa18;hpb=723c9eeee862766a1534b2ce17b78adbfac1c3be diff --git a/hacks/glx/chessmodels.c b/hacks/glx/chessmodels.c index 0dd9b0cf..4ef0595d 100644 --- a/hacks/glx/chessmodels.c +++ b/hacks/glx/chessmodels.c @@ -1,4 +1,7 @@ /* + * models for the xss chess screensavers + * hacked from: + * * glChess - A 3D chess interface * * Copyright (C) 2002 Robert Ancell @@ -28,8 +31,6 @@ #include "chessmodels.h" -double piece_size = 0.1; - #define ROT 16 #define piece_size 0.095 @@ -131,27 +132,27 @@ void revolve_line(double *trace_r, double *trace_h, double max_ih, int rot) { } void gen_model_lists(void) { - glNewList(1, GL_COMPILE); + glNewList(KING, GL_COMPILE); draw_king(); glEndList(); - glNewList(2, GL_COMPILE); + glNewList(QUEEN, GL_COMPILE); draw_queen(); glEndList(); - glNewList(3, GL_COMPILE); + glNewList(BISHOP, GL_COMPILE); draw_bishop(); glEndList(); - glNewList(4, GL_COMPILE); + glNewList(KNIGHT, GL_COMPILE); draw_knight(); glEndList(); - glNewList(5, GL_COMPILE); + glNewList(ROOK, GL_COMPILE); draw_rook(); glEndList(); - glNewList(6, GL_COMPILE); + glNewList(PAWN, GL_COMPILE); draw_pawn(); glEndList(); }