projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.06.tar.gz
[xscreensaver]
/
hacks
/
glx
/
chessmodels.c
diff --git
a/hacks/glx/chessmodels.c
b/hacks/glx/chessmodels.c
index 0dd9b0cfa867ead1871f30dcd299a5b3d5921294..4ef0595d8465c018e29117cbd2cb62b4eed8bec1 100644
(file)
--- 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 <bob27@users.sourceforge.net>
* glChess - A 3D chess interface
*
* Copyright (C) 2002 Robert Ancell <bob27@users.sourceforge.net>
@@
-28,8
+31,6
@@
#include "chessmodels.h"
#include "chessmodels.h"
-double piece_size = 0.1;
-
#define ROT 16
#define piece_size 0.095
#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) {
}
void gen_model_lists(void) {
- glNewList(
1
, GL_COMPILE);
+ glNewList(
KING
, GL_COMPILE);
draw_king();
glEndList();
draw_king();
glEndList();
- glNewList(
2
, GL_COMPILE);
+ glNewList(
QUEEN
, GL_COMPILE);
draw_queen();
glEndList();
draw_queen();
glEndList();
- glNewList(
3
, GL_COMPILE);
+ glNewList(
BISHOP
, GL_COMPILE);
draw_bishop();
glEndList();
draw_bishop();
glEndList();
- glNewList(
4
, GL_COMPILE);
+ glNewList(
KNIGHT
, GL_COMPILE);
draw_knight();
glEndList();
draw_knight();
glEndList();
- glNewList(
5
, GL_COMPILE);
+ glNewList(
ROOK
, GL_COMPILE);
draw_rook();
glEndList();
draw_rook();
glEndList();
- glNewList(
6
, GL_COMPILE);
+ glNewList(
PAWN
, GL_COMPILE);
draw_pawn();
glEndList();
}
draw_pawn();
glEndList();
}