~ubuntu-branches/ubuntu/gutsy/rss-glx/gutsy

« back to all changes in this revision

Viewing changes to reallyslick/cpp_src/goo.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2005-11-30 18:21:27 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051130182127-5iww7elbiyzej1lk
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2005  Terence M. Welsh
 
3
 * Ported to Linux by Tugrul Galatali <tugrul@galatali.com>
 
4
 *
 
5
 * This file is part of Hyperspace.
 
6
 *
 
7
 * Hyperspace is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License version 2 as 
 
9
 * published by the Free Software Foundation.
 
10
 *
 
11
 * Hyperspace is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
19
 */
 
20
 
 
21
 
 
22
#ifndef GOO_H
 
23
#define GOO_H
 
24
 
 
25
 
 
26
#include <list>
 
27
 
 
28
 
 
29
#include "Implicit/impCubeVolume.h"
 
30
#include "Implicit/impCrawlPoint.h"
 
31
 
 
32
 
 
33
class goo{
 
34
public:
 
35
        int resolution;
 
36
        float radius;
 
37
        float unitSize;
 
38
        float volumeSize;
 
39
 
 
40
        float waveOffset[4];
 
41
 
 
42
        float centerx, centerz;
 
43
        int arraySize;
 
44
        impCubeVolume* volume;
 
45
        impSurface*** surface;
 
46
        bool** useSurface;
 
47
 
 
48
        // normals of planes for culling impSurfaces
 
49
        float clip[3][2];
 
50
 
 
51
        goo(int res, float rad, float (*func)(float* position));
 
52
        ~goo();
 
53
        void update(float x, float z, float heading, float fov);
 
54
        void draw();
 
55
};
 
56
 
 
57
 
 
58
#endif