Xcode/TemplatesForXcodeTiger/SDL OpenGL Application/atlantis/atlantis.h
changeset 3329 232e5e00e398
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Xcode/TemplatesForXcodeTiger/SDL OpenGL Application/atlantis/atlantis.h	Tue Sep 29 07:59:23 2009 +0000
     1.3 @@ -0,0 +1,65 @@
     1.4 +/**
     1.5 + * (c) Copyright 1993, 1994, Silicon Graphics, Inc.
     1.6 + * ALL RIGHTS RESERVED
     1.7 + * Permission to use, copy, modify, and distribute this software for
     1.8 + * any purpose and without fee is hereby granted, provided that the above
     1.9 + * copyright notice appear in all copies and that both the copyright notice
    1.10 + * and this permission notice appear in supporting documentation, and that
    1.11 + * the name of Silicon Graphics, Inc. not be used in advertising
    1.12 + * or publicity pertaining to distribution of the software without specific,
    1.13 + * written prior permission.
    1.14 + *
    1.15 + * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
    1.16 + * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
    1.17 + * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
    1.18 + * FITNESS FOR A PARTICULAR PURPOSE.  IN NO EVENT SHALL SILICON
    1.19 + * GRAPHICS, INC.  BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
    1.20 + * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
    1.21 + * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
    1.22 + * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
    1.23 + * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC.  HAS BEEN
    1.24 + * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
    1.25 + * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
    1.26 + * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
    1.27 + *
    1.28 + * US Government Users Restricted Rights
    1.29 + * Use, duplication, or disclosure by the Government is subject to
    1.30 + * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
    1.31 + * (c)(1)(ii) of the Rights in Technical Data and Computer Software
    1.32 + * clause at DFARS 252.227-7013 and/or in similar or successor
    1.33 + * clauses in the FAR or the DOD or NASA FAR Supplement.
    1.34 + * Unpublished-- rights reserved under the copyright laws of the
    1.35 + * United States.  Contractor/manufacturer is Silicon Graphics,
    1.36 + * Inc., 2011 N.  Shoreline Blvd., Mountain View, CA 94039-7311.
    1.37 + *
    1.38 + * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
    1.39 + */
    1.40 +#define RAD 57.295
    1.41 +#define RRAD 0.01745
    1.42 +
    1.43 +#define NUM_SHARKS 4
    1.44 +#define SHARKSIZE 6000
    1.45 +#define SHARKSPEED 100.0
    1.46 +
    1.47 +#define WHALESPEED 250.0
    1.48 +
    1.49 +typedef struct _fishRec {
    1.50 +    float x, y, z, phi, theta, psi, v;
    1.51 +    float xt, yt, zt;
    1.52 +    float htail, vtail;
    1.53 +    float dtheta;
    1.54 +    int spurt, attack;
    1.55 +} fishRec;
    1.56 +
    1.57 +extern fishRec sharks[NUM_SHARKS];
    1.58 +extern fishRec momWhale;
    1.59 +extern fishRec babyWhale;
    1.60 +extern fishRec dolph;
    1.61 +
    1.62 +extern void FishTransform(fishRec *);
    1.63 +extern void WhalePilot(fishRec *);
    1.64 +extern void SharkPilot(fishRec *);
    1.65 +extern void SharkMiss(int);
    1.66 +extern void DrawWhale(fishRec *);
    1.67 +extern void DrawShark(fishRec *);
    1.68 +extern void DrawDolphin(fishRec *);