/* * Copyright (C) 1991 By DeepCore Technologies * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 1, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * DeepCore Technologies * Att: Sψren Schmidt Email: sos@kmd-ac.dk * Tritonvej 36 UUCP: ...uunet!dkuug!kmd-ac!sos * DK9210 Aalborg SO Phone: +45 9814 8076 */ #include #include "dgl.h" main(argc, argv) int argc; char **argv; { int x, y, i; DGLBitmap tmp; if (argc!=2) { printf("usage: demo \n"); exit(1); } DGLInitMode(atoi(argv[1])); sleep(1); DGLClear(DGLDisplay, 0); tmp.Type = MEMBUF; tmp.Bitmap = (char*)malloc(256*256); tmp.Xsize = 256; tmp.Ysize = 256; for (y=0; y 256) break; } DGLEnd(); }