4 * ***** BEGIN GPL LICENSE BLOCK *****
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * The Original Code is: all of this file.
25 * Contributor(s): none yet.
27 * ***** END GPL LICENSE BLOCK *****
30 /** \file KX_BlenderSystem.h
32 * \brief Blender System embedding. Needed when gameengine runs embedded within Blender.
35 #ifndef __KX_BLENDERSYSTEM
36 #define __KX_BLENDERSYSTEM
38 #include "KX_ISystem.h"
40 #ifdef WITH_CXX_GUARDEDALLOC
41 #include "MEM_guardedalloc.h"
44 class KX_BlenderSystem : public KX_ISystem
50 virtual ~KX_BlenderSystem() {};
51 virtual double GetTimeInSeconds();
53 #ifdef WITH_CXX_GUARDEDALLOC
55 void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:KX_BlenderSystem"); }
56 void operator delete( void *mem ) { MEM_freeN(mem); }
60 #endif //__KX_BLENDERSYSTEM