~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/gameengine/Ketsji/KX_Camera.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: KX_Camera.h,v 1.11 2006/01/06 03:46:52 erwin Exp $
 
2
 * $Id: KX_Camera.h,v 1.12 2007/04/04 13:18:39 campbellbarton Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
83
83
         */
84
84
        bool         m_dirty;
85
85
        /**
86
 
         * true if the frustum planes have been normalised.
 
86
         * true if the frustum planes have been normalized.
87
87
         */
88
 
        bool         m_normalised;
 
88
        bool         m_normalized;
89
89
        
90
90
        /**
91
91
         * View Frustum clip planes.
104
104
        bool         m_set_projection_matrix;
105
105
        
106
106
        /**
107
 
         * The centre point of the frustum.
 
107
         * The center point of the frustum.
108
108
         */
109
 
        MT_Point3    m_frustum_centre;
 
109
        MT_Point3    m_frustum_center;
110
110
        MT_Scalar    m_frustum_radius;
111
 
        bool         m_set_frustum_centre;
 
111
        bool         m_set_frustum_center;
112
112
 
113
113
        /**
114
114
         * Python module doc string.
120
120
         */
121
121
        void ExtractClipPlanes();
122
122
        /**
123
 
         * Normalise the camera clip frames.
 
123
         * Normalize the camera clip frames.
124
124
         */
125
 
        void NormaliseClipPlanes();
 
125
        void NormalizeClipPlanes();
126
126
        /**
127
127
         * Extracts the bound sphere of the view frustum.
128
128
         */
181
181
        /**
182
182
         * Tests if the given sphere is inside this camera's view frustum.
183
183
         *
184
 
         * @param centre The centre of the sphere, in world coordinates.
 
184
         * @param center The center of the sphere, in world coordinates.
185
185
         * @param radius The radius of the sphere.
186
186
         * @return INSIDE, INTERSECT, or OUTSIDE depending on the sphere's relation to the frustum.
187
187
         */
188
 
        int SphereInsideFrustum(const MT_Point3& centre, const MT_Scalar &radius);
 
188
        int SphereInsideFrustum(const MT_Point3& center, const MT_Scalar &radius);
189
189
        /**
190
190
         * Tests the given eight corners of a box with the view frustum.
191
191
         *