ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.06.tar.gz
[xscreensaver] / hacks / glx / chessmodels.h
1 /*
2  * models for the xss chess screensavers
3  * hacked from:
4  *
5  * glChess - A 3D chess interface
6  *
7  * Copyright (C) 2002  Robert  Ancell <bob27@users.sourceforge.net>
8  *                     Michael Duelli <duelli@users.sourceforge.net>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23  */
24
25 /* ugggggggly */
26 #define PIECES    7
27 #define NONE      0
28 #define KING      1
29 #define QUEEN     2
30 #define BISHOP    3 
31 #define KNIGHT    4 
32 #define ROOK      5
33 #define PAWN      6 
34 #define BKING     8
35 #define BQUEEN    9
36 #define BBISHOP  10 
37 #define BKNIGHT  11
38 #define BROOK    12
39 #define BPAWN    13 
40
41 void revolve_line(double *, double *, double, int);
42 void gen_model_lists(void);
43 void draw_pawn(void);
44 void draw_rook(void);
45 void draw_rook_old(void);
46 void draw_knight(void);
47 void draw_bishop(void);
48 void draw_queen(void);
49 void draw_king(void);
50