~ubuntu-branches/ubuntu/lucid/blender/lucid

« back to all changes in this revision

Viewing changes to source/gameengine/Physics/common/PHY_IGraphicController.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-08-06 22:32:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090806223219-8z4eej1u8levu4pz
Tags: 2.49a+dfsg-0ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Build-depend on python-2.6 rather than python-2.5.
  - debian/misc/*.desktop: Add Spanish translation to .desktop 
    files.
  - debian/pyversions: 2.6.
  - debian/rules: Clean *.o of source/blender/python/api2_2x/
* New upstream release (LP: #382153).
* Refreshed patches:
  - 01_sanitize_sys.patch
  - 02_tmp_in_HOME
  - 10_use_systemwide_ftgl
  - 70_portability_platform_detection
* Removed patches merged upstream:
  - 30_fix_python_syntax_warning
  - 90_ubuntu_ffmpeg_52_changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * $Id: PHY_IGraphicController.h 20021 2009-05-01 19:02:23Z ben2610 $
 
3
 *
 
4
 * ***** BEGIN GPL LICENSE BLOCK *****
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License
 
8
 * as published by the Free Software Foundation; either version 2
 
9
 * of the License, or (at your option) any later version.
 
10
 *
 
11
 * This program 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 Foundation,
 
18
 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
19
 *
 
20
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
 
21
 * All rights reserved.
 
22
 *
 
23
 * The Original Code is: all of this file.
 
24
 *
 
25
 * Contributor(s): none yet.
 
26
 *
 
27
 * ***** END GPL LICENSE BLOCK *****
 
28
 */
 
29
#ifndef PHY_IGRAPHICCONTROLLER_H
 
30
#define PHY_IGRAPHICCONTROLLER_H
 
31
 
 
32
#include "PHY_IController.h"
 
33
 
 
34
 
 
35
 
 
36
/**
 
37
        PHY_IPhysicsController is the abstract simplified Interface to a physical object.
 
38
        It contains the IMotionState and IDeformableMesh Interfaces.
 
39
*/
 
40
class PHY_IGraphicController : public PHY_IController
 
41
{
 
42
 
 
43
        public:
 
44
                
 
45
                virtual ~PHY_IGraphicController();
 
46
                /**
 
47
                        SynchronizeMotionStates ynchronizes dynas, kinematic and deformable entities (and do 'late binding')
 
48
                */
 
49
                virtual bool SetGraphicTransform()=0;
 
50
                virtual void Activate(bool active=true)=0;
 
51
                virtual void setLocalAabb(const PHY__Vector3& aabbMin,const PHY__Vector3& aabbMax)=0;
 
52
                virtual void setLocalAabb(const float* aabbMin,const float* aabbMax)=0;
 
53
 
 
54
                virtual PHY_IGraphicController* GetReplica(class PHY_IMotionState* motionstate) {return 0;}
 
55
 
 
56
};
 
57
 
 
58
#endif //PHY_IGRAPHICCONTROLLER_H
 
59