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

Revision 1305, 3.4 kB (checked in by FrankieWoodruff, 2 weeks ago)

Added src/actions/Rotate.pym and /src/actions/Locomotive.pym

  • Property svn:keywords set to Id
Line 
1# PySoy's bodies 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
22
23
24##############################################################################
25
26# Forward Declarations
27#
28#######################################
29#
30# soy._datatypes
31#
32cimport soy._datatypes
33cdef class soy._datatypes.HashTable
34#
35#######################################
36#
37# soy.models
38#
39cimport soy.models
40cdef class soy.models.Model
41#
42#######################################
43#
44# soy.scenes
45#
46cimport soy.scenes
47cdef class soy.scenes.Scene (soy._internals.Loopable)
48#
49#######################################
50#
51# soy.shapes
52#
53cimport soy.shapes
54cdef class soy.shapes.Shape
55#
56##############################################################################
57
58
59cdef class Body :
60  cdef ode.dBodyID              _bodyID
61  cdef soy.scenes.Scene         _scene
62  cdef soy.models.Model         _model
63  cdef soy.shapes.Shape         _shape
64  cdef soy._datatypes.HashTable _tags
65  cdef ode.dMass                _mass
66  cdef ode.dReal*               _position
67  cdef ode.dReal*               _rotation
68  cdef ode.dReal*               _quaternion
69  cdef ode.dReal*               _linearVel
70  cdef ode.dReal*               _angularVel
71  # C functions
72  cdef void                     _create                  ( self )
73  cdef void                     _destroy                 ( self )
74  cdef void                     _append                  ( self )
75  cdef void                     _remove                  ( self )
76  cdef void                     _copyTo                  ( self, ode.dReal* )
77  cdef void                     _copySet                 ( self, ode.dReal* )
78  cdef void                     _copyFrom                ( self, ode.dReal* )
79  cdef void                     _addForce                ( self, ode.dVector3 )
80  cdef void                     _addRotation             ( self, ode.dVector3 )
81  # WindowLoop functions
82  cdef void                     _calcFogCoords           ( self )         nogil
83  cdef void                     _getModelviewInv         ( self, float* ) nogil
84
85
86cdef class Camera (Body) :
87  cdef int                      _wire
88  cdef float                    _fovy
89  cdef int                      _rpt
90  cdef double                   _rtimes[16]
91  # WindowLoop functions
92  cdef void                     _project                 ( self )        #nogil
93
94
95cdef class Light (Body) :
96  cdef float                    _radius
97  cdef object                   _ambient
98  cdef object                   _diffuse
99  cdef object                   _specular
100  # WindowLoop functions
101  cdef void                     _on                      ( self, int )    nogil
102  cdef void                     _off                     ( self, int )    nogil
Note: See TracBrowser for help on using the browser.