root / trunk / pysoy / include / soy.fields.pxd

Revision 1274, 2.0 kB (checked in by ArcRiley, 5 months ago)

Pyrex 0.9.8.2 fixes :

  • now compiles and runs!
  • Render loop is not set nogil yet - this still needs to be done
  • Property svn:keywords set to Id
Line 
1# PySoy's fields Declarations
2#
3# Copyright (C) 2006,2007,2008 PySoy Group
4#
5#  This program is free software; you can redistribute it and/or modify
6#  it under the terms of the GNU Affero General Public License as published
7#  by the Free Software Foundation, either version 3 of the License, or
8#  (at your option) any later version.
9#
10#  This program is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13#  GNU Affero General Public License for more details.
14#
15#  You should have received a copy of the GNU Affero General Public License
16#  along with this program; if not, see http://www.gnu.org/licenses
17#
18#  $Id$
19
20cimport ode
21cimport soy._internals
22cimport soy.bodies
23
24cdef class Field (soy.bodies.Body) :
25  cdef void                     _give            ( self, int )            nogil
26  cdef int                      _apply           ( self )                 nogil
27  cdef int                      _exert           ( self,
28                                                   soy.bodies.Body )      nogil
29  cdef void                     _commit          ( self )                 nogil
30
31
32cdef class Monopole (Field) :
33  cdef soy._internals.Children  _affected
34  cdef float                    _multiplier
35
36
37cdef class Wind (Field) :
38  cdef float            _density
39  cdef float            _vx
40  cdef float            _vy
41  cdef float            _vz
42
43cdef class Shockwave (Field) :
44  cdef ode.dSpaceID             _space
45  cdef float                    _radius
46  cdef double                   _t0
47  cdef double                   _inner
48  cdef double                   _outer
49  cdef float                    _velocity
50  cdef float                    _length
51  cdef float                    _energy
52
53cdef class Buoyancy (Field) :
54  cdef soy._internals.Children  _affected
55  cdef float                    _density
56
57cdef extern from "math.h" nogil :
58  float powf (float x, float y)
Note: See TracBrowser for help on using the browser.