Xcode/TemplatesForXcodeTiger/SDL OpenGL Application/atlantis/atlantis.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 29 Sep 2009 07:59:23 +0000
changeset 3329 232e5e00e398
permissions -rw-r--r--
Added missing templates
slouken@3329
     1
/**
slouken@3329
     2
 * (c) Copyright 1993, 1994, Silicon Graphics, Inc.
slouken@3329
     3
 * ALL RIGHTS RESERVED
slouken@3329
     4
 * Permission to use, copy, modify, and distribute this software for
slouken@3329
     5
 * any purpose and without fee is hereby granted, provided that the above
slouken@3329
     6
 * copyright notice appear in all copies and that both the copyright notice
slouken@3329
     7
 * and this permission notice appear in supporting documentation, and that
slouken@3329
     8
 * the name of Silicon Graphics, Inc. not be used in advertising
slouken@3329
     9
 * or publicity pertaining to distribution of the software without specific,
slouken@3329
    10
 * written prior permission.
slouken@3329
    11
 *
slouken@3329
    12
 * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
slouken@3329
    13
 * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
slouken@3329
    14
 * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
slouken@3329
    15
 * FITNESS FOR A PARTICULAR PURPOSE.  IN NO EVENT SHALL SILICON
slouken@3329
    16
 * GRAPHICS, INC.  BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
slouken@3329
    17
 * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
slouken@3329
    18
 * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
slouken@3329
    19
 * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
slouken@3329
    20
 * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC.  HAS BEEN
slouken@3329
    21
 * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
slouken@3329
    22
 * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
slouken@3329
    23
 * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
slouken@3329
    24
 *
slouken@3329
    25
 * US Government Users Restricted Rights
slouken@3329
    26
 * Use, duplication, or disclosure by the Government is subject to
slouken@3329
    27
 * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
slouken@3329
    28
 * (c)(1)(ii) of the Rights in Technical Data and Computer Software
slouken@3329
    29
 * clause at DFARS 252.227-7013 and/or in similar or successor
slouken@3329
    30
 * clauses in the FAR or the DOD or NASA FAR Supplement.
slouken@3329
    31
 * Unpublished-- rights reserved under the copyright laws of the
slouken@3329
    32
 * United States.  Contractor/manufacturer is Silicon Graphics,
slouken@3329
    33
 * Inc., 2011 N.  Shoreline Blvd., Mountain View, CA 94039-7311.
slouken@3329
    34
 *
slouken@3329
    35
 * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
slouken@3329
    36
 */
slouken@3329
    37
#define RAD 57.295
slouken@3329
    38
#define RRAD 0.01745
slouken@3329
    39
slouken@3329
    40
#define NUM_SHARKS 4
slouken@3329
    41
#define SHARKSIZE 6000
slouken@3329
    42
#define SHARKSPEED 100.0
slouken@3329
    43
slouken@3329
    44
#define WHALESPEED 250.0
slouken@3329
    45
slouken@3329
    46
typedef struct _fishRec {
slouken@3329
    47
    float x, y, z, phi, theta, psi, v;
slouken@3329
    48
    float xt, yt, zt;
slouken@3329
    49
    float htail, vtail;
slouken@3329
    50
    float dtheta;
slouken@3329
    51
    int spurt, attack;
slouken@3329
    52
} fishRec;
slouken@3329
    53
slouken@3329
    54
extern fishRec sharks[NUM_SHARKS];
slouken@3329
    55
extern fishRec momWhale;
slouken@3329
    56
extern fishRec babyWhale;
slouken@3329
    57
extern fishRec dolph;
slouken@3329
    58
slouken@3329
    59
extern void FishTransform(fishRec *);
slouken@3329
    60
extern void WhalePilot(fishRec *);
slouken@3329
    61
extern void SharkPilot(fishRec *);
slouken@3329
    62
extern void SharkMiss(int);
slouken@3329
    63
extern void DrawWhale(fishRec *);
slouken@3329
    64
extern void DrawShark(fishRec *);
slouken@3329
    65
extern void DrawDolphin(fishRec *);