~ubuntu-branches/ubuntu/precise/rss-glx/precise

« back to all changes in this revision

Viewing changes to reallyslick/cpp_src/goo.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-06-03 18:41:32 UTC
  • mfrom: (1.1.5 upstream) (2.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090603184132-znjy66pq9xom7hac
Tags: 0.9.0-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop dependency on openal. It is not enabled by default anyway, and
    allows openal to migrate to universe.
  - src/skyrocket.{cpp,xml}: Disable sound by default.
  - Add --disable-sound configure flag to debian/rules, as we don't keep 
    the dependencies on openal nor freeglut (both universe packages).
* Dropped changes, merged upstream:
  - other_src/Makefile.am: fix the upstream build rules to actually use
    the ImageMagick CFLAGS returned by pkg-config.
  - Move the unconditional ImageMagick check up in configure.in so that
    our first PKG_CHECK_MODULES() call isn't hidden behind a shell
    conditional.

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