Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_2DFilter.h
- This file was moved from source/gameengine/BlenderRoutines/KX_BlenderSystem.cpp.
| Context not available. | |||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. | * Contributor(s): Ulysse Martin, Tristan Porteries. | ||||
| * All rights reserved. | |||||
| * | |||||
| * The Original Code is: all of this file. | |||||
| * | |||||
| * Contributor(s): none yet. | |||||
| * | * | ||||
| * ***** END GPL LICENSE BLOCK ***** | * ***** END GPL LICENSE BLOCK ***** | ||||
| */ | */ | ||||
| /** \file gameengine/BlenderRoutines/KX_BlenderSystem.cpp | /** \file KX_2DFilter.h | ||||
| * \ingroup blroutines | * \ingroup ketsji | ||||
| */ | */ | ||||
| #ifndef __KX_2DFILTER_H__ | |||||
| #define __KX_2DFILTER_H__ | |||||
| #include "KX_ISystem.h" | #include "RAS_2DFilter.h" | ||||
| #include "BL_Shader.h" | |||||
| #ifdef _MSC_VER | #ifdef _MSC_VER | ||||
| # pragma warning (disable:4786) | /* KX_2DFilter uses a diamond inheritance from a virtual pure base class. Only one branch of the diamond | ||||
| * define these virtual pure functions and come in the final class with dominance. This behaviour is wanted | |||||
| * but MSVC warn about it, we just disable the warning. | |||||
| */ | |||||
| # pragma warning(disable:4250) | |||||
| #endif | #endif | ||||
| #ifdef WIN32 | class KX_2DFilter : public RAS_2DFilter, public BL_Shader | ||||
| #include <windows.h> | { | ||||
| #endif | Py_Header | ||||
| public: | |||||
| KX_2DFilter(RAS_2DFilterData& data); | |||||
| virtual ~KX_2DFilter(); | |||||
| #include <iostream> | virtual bool LinkProgram(); | ||||
| #include <stdio.h> | |||||
| #include "KX_BlenderInputDevice.h" | |||||
| #include "KX_BlenderSystem.h" | |||||
| #include "PIL_time.h" | #ifdef WITH_PYTHON | ||||
| KX_BlenderSystem::KX_BlenderSystem() | KX_PYMETHOD_DOC(KX_2DFilter, setTexture); | ||||
| : KX_ISystem() | |||||
| { | |||||
| m_starttime = PIL_check_seconds_timer(); | |||||
| } | |||||
| double KX_BlenderSystem::GetTimeInSeconds() | #endif | ||||
| { | }; | ||||
| return PIL_check_seconds_timer() - m_starttime; | |||||
| } | #endif // __KX_2DFILTER_H__ | ||||
| Context not available. | |||||