forked from bartvdbraak/blender
ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing)
. No changes for py2.x.
This commit is contained in:
parent
d6c525d624
commit
81dfdf8374
@ -268,6 +268,7 @@ void KX_BlenderRenderTools::applyTransform(RAS_IRasterizer* rasty,double* oglmat
|
||||
// 'normal' object
|
||||
glMultMatrixd(oglmatrix);
|
||||
}
|
||||
glMultMatrixd(oglmatrix);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -942,8 +942,13 @@ KX_PYMETHODDEF_DOC(BL_ActionActuator, setChannel,
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
PyTypeObject BL_ActionActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"BL_ActionActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -418,8 +418,13 @@ bool BL_ShapeActionActuator::Update(double curtime, bool frame)
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
|
||||
PyTypeObject BL_ShapeActionActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"BL_ShapeActionActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -658,10 +658,29 @@ static PyMethodDef CParserMethods[] =
|
||||
{ NULL,NULL} // Sentinel
|
||||
};
|
||||
|
||||
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
static struct PyModuleDef Expression_module_def = {
|
||||
{}, /* m_base */
|
||||
"Expression", /* m_name */
|
||||
0, /* m_doc */
|
||||
0, /* m_size */
|
||||
CParserMethods, /* m_methods */
|
||||
0, /* m_reload */
|
||||
0, /* m_traverse */
|
||||
0, /* m_clear */
|
||||
0, /* m_free */
|
||||
};
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
void initExpressionModule(void)
|
||||
{
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
PyModule_Create(&Expression_module_def);
|
||||
#else
|
||||
Py_InitModule("Expression",CParserMethods);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -212,9 +212,15 @@ static PySequenceMethods listvalue_as_sequence = {
|
||||
listvalue_buffer_concat, /*sq_concat*/
|
||||
NULL, /*sq_repeat*/
|
||||
listvalue_buffer_item, /*sq_item*/
|
||||
#if (PY_VERSION_HEX >= 0x03000000) // TODO, slicing in py3?
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
#else
|
||||
listvalue_buffer_slice, /*sq_slice*/
|
||||
NULL, /*sq_ass_item*/
|
||||
NULL /*sq_ass_slice*/
|
||||
(ssizeobjargproc)NULL, /*sq_ass_item*/
|
||||
NULL, /*sq_ass_slice*/
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@ -229,8 +235,13 @@ static PyMappingMethods instance_as_mapping = {
|
||||
|
||||
|
||||
PyTypeObject CListValue::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"CListValue", /*tp_name*/
|
||||
sizeof(PyObjectPlus_Proxy), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -56,8 +56,13 @@
|
||||
|
||||
|
||||
PyTypeObject PyObjectPlus::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"PyObjectPlus", /*tp_name*/
|
||||
sizeof(PyObjectPlus_Proxy), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -36,8 +36,13 @@ double CValue::m_sZeroVec[3] = {0.0,0.0,0.0};
|
||||
#ifndef NO_EXP_PYTHON_EMBEDDING
|
||||
|
||||
PyTypeObject CValue::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"CValue",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
@ -751,10 +756,28 @@ PyObject* CValue::PyMake(PyObject* ignored,PyObject* args)
|
||||
}
|
||||
*/
|
||||
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
static struct PyModuleDef CValue_module_def = {
|
||||
{}, /* m_base */
|
||||
"CValue", /* m_name */
|
||||
0, /* m_doc */
|
||||
0, /* m_size */
|
||||
CValueMethods, /* m_methods */
|
||||
0, /* m_reload */
|
||||
0, /* m_traverse */
|
||||
0, /* m_clear */
|
||||
0, /* m_free */
|
||||
};
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
void initCValue(void)
|
||||
{
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
PyModule_Create(&CValue_module_def);
|
||||
#else
|
||||
Py_InitModule("CValue",CValueMethods);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -108,8 +108,13 @@ void SCA_2DFilterActuator::SetShaderText(STR_String text)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_2DFilterActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_2DFilterActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -107,8 +107,13 @@ CValue* SCA_ANDController::GetReplica()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_ANDController::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_ANDController",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -122,8 +122,13 @@ void SCA_ActuatorSensor::Update()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_ActuatorSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_ActuatorSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -105,8 +105,13 @@ bool SCA_AlwaysSensor::Evaluate(CValue* event)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_AlwaysSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_AlwaysSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -131,8 +131,13 @@ bool SCA_DelaySensor::Evaluate(CValue* event)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_DelaySensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_DelaySensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -209,8 +209,13 @@ CValue* SCA_ILogicBrick::GetEvent()
|
||||
/* python stuff */
|
||||
|
||||
PyTypeObject SCA_ILogicBrick::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_ILogicBrick",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -375,8 +375,13 @@ void SCA_IObject::SetState(unsigned int state)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_IObject::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_IObject",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -393,8 +393,13 @@ KX_PYMETHODDEF_DOC_NOARGS(SCA_ISensor, reset,
|
||||
/* ----------------------------------------------- */
|
||||
|
||||
PyTypeObject SCA_ISensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_ISensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -266,8 +266,13 @@ bool SCA_JoystickSensor::isValid(SCA_JoystickSensor::KX_JOYSENSORMODE m)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_JoystickSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_JoystickSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -612,8 +612,13 @@ KX_PYMETHODDEF_DOC_O(SCA_KeyboardSensor, getKeyStatus,
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
PyTypeObject SCA_KeyboardSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_KeyboardSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -296,8 +296,13 @@ KX_PYMETHODDEF_DOC_O(SCA_MouseSensor, getButtonStatus,
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
PyTypeObject SCA_MouseSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_MouseSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -107,8 +107,13 @@ CValue* SCA_NANDController::GetReplica()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_NANDController::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_NANDController",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -107,8 +107,13 @@ CValue* SCA_NORController::GetReplica()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_NORController::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_NORController",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -99,8 +99,13 @@ void SCA_ORController::Trigger(SCA_LogicManager* logicmgr)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_ORController::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_ORController",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -228,8 +228,13 @@ void SCA_PropertyActuator::Relink(GEN_Map<GEN_HashedPtr, void*> *obj_map)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_PropertyActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_PropertyActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -306,8 +306,13 @@ int SCA_PropertySensor::validValueForProperty(void *self, const PyAttributeDef*)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_PropertySensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_PropertySensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -223,8 +223,13 @@ const char* SCA_PythonController::sPyAddActiveActuator__doc__= "addActiveActuato
|
||||
const char SCA_PythonController::GetActuators_doc[] = "getActuator";
|
||||
|
||||
PyTypeObject SCA_PythonController::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_PythonController",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -310,8 +310,13 @@ void SCA_RandomActuator::enforceConstraints() {
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_RandomActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_RandomActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -127,8 +127,13 @@ bool SCA_RandomSensor::Evaluate(CValue* event)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_RandomSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_RandomSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -111,8 +111,13 @@ CValue* SCA_XNORController::GetReplica()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_XNORController::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_XNORController",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -111,8 +111,13 @@ CValue* SCA_XORController::GetReplica()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject SCA_XORController::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"SCA_XORController",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -776,8 +776,13 @@ PyAttributeDef BL_Shader::Attributes[] = {
|
||||
};
|
||||
|
||||
PyTypeObject BL_Shader::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"BL_Shader",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -102,8 +102,13 @@ CValue* KX_NetworkMessageActuator::GetReplica()
|
||||
|
||||
/* Integration hooks -------------------------------------------------- */
|
||||
PyTypeObject KX_NetworkMessageActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_NetworkMessageActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -166,8 +166,13 @@ bool KX_NetworkMessageSensor::IsPositiveTrigger()
|
||||
|
||||
/* Integration hooks --------------------------------------------------- */
|
||||
PyTypeObject KX_NetworkMessageSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_NetworkMessageSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -788,8 +788,13 @@ PyAttributeDef KX_BlenderMaterial::Attributes[] = {
|
||||
};
|
||||
|
||||
PyTypeObject KX_BlenderMaterial::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_BlenderMaterial",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -155,8 +155,13 @@ bool KX_CDActuator::Update()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_CDActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_SoundActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -512,8 +512,13 @@ PyAttributeDef KX_Camera::Attributes[] = {
|
||||
};
|
||||
|
||||
PyTypeObject KX_Camera::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_Camera",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -369,8 +369,13 @@ bool KX_CameraActuator::string2axischoice(const char *axisString)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_CameraActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_CameraActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -566,8 +566,13 @@ bool KX_ConstraintActuator::IsValidMode(KX_ConstraintActuator::KX_CONSTRAINTTYPE
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_ConstraintActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_ConstraintActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -56,8 +56,13 @@ PyObject* KX_ConstraintWrapper::PyGetConstraintId(PyObject* args, PyObject* kwds
|
||||
|
||||
//python specific stuff
|
||||
PyTypeObject KX_ConstraintWrapper::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_ConstraintWrapper",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -206,8 +206,13 @@ bool KX_GameActuator::Update()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_GameActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_GameActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -1322,8 +1322,13 @@ PyMappingMethods KX_GameObject::Mapping = {
|
||||
};
|
||||
|
||||
PyTypeObject KX_GameObject::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_GameObject",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -413,8 +413,13 @@ int KX_IpoActuator::string2mode(char* modename) {
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_IpoActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_IpoActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -179,8 +179,13 @@ PyObject* KX_LightObject::py_getattro_dict() {
|
||||
|
||||
|
||||
PyTypeObject KX_LightObject::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_LightObject",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -46,8 +46,13 @@
|
||||
#include "PyObjectPlus.h"
|
||||
|
||||
PyTypeObject KX_MeshProxy::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_MeshProxy",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -335,8 +335,13 @@ const MT_Vector3& KX_MouseFocusSensor::HitNormal() const
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_MouseFocusSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_MouseFocusSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -269,8 +269,13 @@ bool KX_NearSensor::NewHandleCollision(void* obj1,void* obj2,const PHY_CollData
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
PyTypeObject KX_NearSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_NearSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -274,8 +274,13 @@ bool KX_ObjectActuator::isValid(KX_ObjectActuator::KX_OBJECT_ACT_VEC_TYPE type)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_ObjectActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_ObjectActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -137,8 +137,13 @@ bool KX_ParentActuator::Update()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_ParentActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_ParentActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -113,8 +113,13 @@ PyAttributeDef KX_PhysicsObjectWrapper::Attributes[] = {
|
||||
|
||||
//python specific stuff
|
||||
PyTypeObject KX_PhysicsObjectWrapper::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_PhysicsObjectWrapper",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -39,8 +39,13 @@
|
||||
#include "KX_PyMath.h"
|
||||
|
||||
PyTypeObject KX_PolyProxy::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_PolyProxy",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -234,8 +234,13 @@ PyAttributeDef KX_PolygonMaterial::Attributes[] = {
|
||||
};
|
||||
|
||||
PyTypeObject KX_PolygonMaterial::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_PolygonMaterial",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -565,6 +565,19 @@ static struct PyMethodDef physicsconstraints_methods[] = {
|
||||
};
|
||||
|
||||
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
static struct PyModuleDef PhysicsConstraints_module_def = {
|
||||
{}, /* m_base */
|
||||
"PhysicsConstraints", /* m_name */
|
||||
PhysicsConstraints_module_documentation, /* m_doc */
|
||||
0, /* m_size */
|
||||
physicsconstraints_methods, /* m_methods */
|
||||
0, /* m_reload */
|
||||
0, /* m_traverse */
|
||||
0, /* m_clear */
|
||||
0, /* m_free */
|
||||
};
|
||||
#endif
|
||||
|
||||
PyObject* initPythonConstraintBinding()
|
||||
{
|
||||
@ -573,10 +586,13 @@ PyObject* initPythonConstraintBinding()
|
||||
PyObject* m;
|
||||
PyObject* d;
|
||||
|
||||
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
m = PyModule_Create(&PhysicsConstraints_module_def);
|
||||
#else
|
||||
m = Py_InitModule4("PhysicsConstraints", physicsconstraints_methods,
|
||||
PhysicsConstraints_module_documentation,
|
||||
(PyObject*)NULL,PYTHON_API_VERSION);
|
||||
#endif
|
||||
|
||||
// Add some symbolic constants to the module
|
||||
d = PyModule_GetDict(m);
|
||||
|
@ -1073,7 +1073,19 @@ static char Rasterizer_module_documentation[] =
|
||||
"This is the Python API for the game engine of Rasterizer"
|
||||
;
|
||||
|
||||
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
static struct PyModuleDef GameLogic_module_def = {
|
||||
{}, /* m_base */
|
||||
"GameLogic", /* m_name */
|
||||
GameLogic_module_documentation, /* m_doc */
|
||||
0, /* m_size */
|
||||
game_methods, /* m_methods */
|
||||
0, /* m_reload */
|
||||
0, /* m_traverse */
|
||||
0, /* m_clear */
|
||||
0, /* m_free */
|
||||
};
|
||||
#endif
|
||||
|
||||
PyObject* initGameLogic(KX_KetsjiEngine *engine, KX_Scene* scene) // quick hack to get gravity hook
|
||||
{
|
||||
@ -1087,9 +1099,14 @@ PyObject* initGameLogic(KX_KetsjiEngine *engine, KX_Scene* scene) // quick hack
|
||||
gUseVisibilityTemp=false;
|
||||
|
||||
// Create the module and add the functions
|
||||
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
m = PyModule_Create(&GameLogic_module_def);
|
||||
#else
|
||||
m = Py_InitModule4("GameLogic", game_methods,
|
||||
GameLogic_module_documentation,
|
||||
(PyObject*)NULL,PYTHON_API_VERSION);
|
||||
#endif
|
||||
|
||||
// Add some symbolic constants to the module
|
||||
d = PyModule_GetDict(m);
|
||||
@ -1498,15 +1515,18 @@ void setSandbox(TPythonSecurityLevel level)
|
||||
*/
|
||||
PyObject* initGamePlayerPythonScripting(const STR_String& progname, TPythonSecurityLevel level, Main *maggie, int argc, char** argv)
|
||||
{
|
||||
#if (PY_VERSION_HEX < 0x03000000)
|
||||
STR_String pname = progname;
|
||||
Py_SetProgramName(pname.Ptr());
|
||||
#endif
|
||||
Py_NoSiteFlag=1;
|
||||
Py_FrozenFlag=1;
|
||||
Py_Initialize();
|
||||
|
||||
#if (PY_VERSION_HEX < 0x03000000)
|
||||
if(argv) /* browser plugins dont currently set this */
|
||||
PySys_SetArgv(argc, argv);
|
||||
|
||||
#endif
|
||||
//importBlenderModules()
|
||||
|
||||
setSandbox(level);
|
||||
@ -1530,8 +1550,10 @@ void exitGamePlayerPythonScripting()
|
||||
*/
|
||||
PyObject* initGamePythonScripting(const STR_String& progname, TPythonSecurityLevel level, Main *maggie)
|
||||
{
|
||||
#if (PY_VERSION_HEX < 0x03000000)
|
||||
STR_String pname = progname;
|
||||
Py_SetProgramName(pname.Ptr());
|
||||
#endif
|
||||
Py_NoSiteFlag=1;
|
||||
Py_FrozenFlag=1;
|
||||
|
||||
@ -1587,6 +1609,19 @@ void exitGamePythonScripting()
|
||||
}
|
||||
|
||||
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
static struct PyModuleDef Rasterizer_module_def = {
|
||||
{}, /* m_base */
|
||||
"Rasterizer", /* m_name */
|
||||
Rasterizer_module_documentation, /* m_doc */
|
||||
0, /* m_size */
|
||||
rasterizer_methods, /* m_methods */
|
||||
0, /* m_reload */
|
||||
0, /* m_traverse */
|
||||
0, /* m_clear */
|
||||
0, /* m_free */
|
||||
};
|
||||
#endif
|
||||
|
||||
PyObject* initRasterizer(RAS_IRasterizer* rasty,RAS_ICanvas* canvas)
|
||||
{
|
||||
@ -1599,9 +1634,13 @@ PyObject* initRasterizer(RAS_IRasterizer* rasty,RAS_ICanvas* canvas)
|
||||
PyObject* item;
|
||||
|
||||
// Create the module and add the functions
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
m = PyModule_Create(&Rasterizer_module_def);
|
||||
#else
|
||||
m = Py_InitModule4("Rasterizer", rasterizer_methods,
|
||||
Rasterizer_module_documentation,
|
||||
(PyObject*)NULL,PYTHON_API_VERSION);
|
||||
#endif
|
||||
|
||||
// Add some symbolic constants to the module
|
||||
d = PyModule_GetDict(m);
|
||||
@ -1651,7 +1690,12 @@ static PyObject* gPyEventToString(PyObject*, PyObject* value)
|
||||
dict = PyModule_GetDict(mod);
|
||||
|
||||
while (PyDict_Next(dict, &pos, &key, &val)) {
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
if (PyObject_RichCompareBool(value, val, Py_EQ)) {
|
||||
#else
|
||||
if (PyObject_Compare(value, val)==0) {
|
||||
#endif
|
||||
|
||||
ret = key;
|
||||
break;
|
||||
}
|
||||
@ -1693,6 +1737,19 @@ static struct PyMethodDef gamekeys_methods[] = {
|
||||
};
|
||||
|
||||
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
static struct PyModuleDef GameKeys_module_def = {
|
||||
{}, /* m_base */
|
||||
"GameKeys", /* m_name */
|
||||
GameKeys_module_documentation, /* m_doc */
|
||||
0, /* m_size */
|
||||
gamekeys_methods, /* m_methods */
|
||||
0, /* m_reload */
|
||||
0, /* m_traverse */
|
||||
0, /* m_clear */
|
||||
0, /* m_free */
|
||||
};
|
||||
#endif
|
||||
|
||||
PyObject* initGameKeys()
|
||||
{
|
||||
@ -1701,9 +1758,13 @@ PyObject* initGameKeys()
|
||||
PyObject* item;
|
||||
|
||||
// Create the module and add the functions
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
m = PyModule_Create(&GameKeys_module_def);
|
||||
#else
|
||||
m = Py_InitModule4("GameKeys", gamekeys_methods,
|
||||
GameKeys_module_documentation,
|
||||
(PyObject*)NULL,PYTHON_API_VERSION);
|
||||
#endif
|
||||
|
||||
// Add some symbolic constants to the module
|
||||
d = PyModule_GetDict(m);
|
||||
|
@ -232,8 +232,13 @@ PyObject* KX_RadarSensor::PyGetConeHeight() {
|
||||
/* Python Integration Hooks */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
PyTypeObject KX_RadarSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_RadarSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -320,8 +320,13 @@ bool KX_RaySensor::Evaluate(CValue* event)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_RaySensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_RaySensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -166,8 +166,13 @@ void KX_SCA_AddObjectActuator::Relink(GEN_Map<GEN_HashedPtr, void*> *obj_map)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_SCA_AddObjectActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_SCA_AddObjectActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -51,8 +51,13 @@
|
||||
PyTypeObject
|
||||
|
||||
KX_SCA_DynamicActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_SCA_DynamicActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -92,8 +92,13 @@ CValue* KX_SCA_EndObjectActuator::GetReplica()
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
PyTypeObject KX_SCA_EndObjectActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_SCA_EndObjectActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -53,8 +53,13 @@
|
||||
PyTypeObject
|
||||
|
||||
KX_SCA_ReplaceMeshActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_SCA_ReplaceMeshActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -1595,8 +1595,13 @@ double KX_Scene::getSuspendedDelta()
|
||||
//Python
|
||||
|
||||
PyTypeObject KX_Scene::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_Scene",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -223,8 +223,13 @@ KX_Scene* KX_SceneActuator::FindScene(char * sceneName)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_SceneActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_SceneActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -232,8 +232,13 @@ void KX_SoundActuator::setSoundObject(class SND_SoundObject* soundobject)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_SoundActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_SoundActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -107,8 +107,13 @@ KX_StateActuator::Update()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_StateActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_StateActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -246,8 +246,13 @@ bool KX_TouchSensor::NewHandleCollision(void*object1,void*object2,const PHY_Coll
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_TouchSensor::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_TouchSensor",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -425,8 +425,13 @@ bool KX_TrackToActuator::Update(double curtime, bool frame)
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_TrackToActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_TrackToActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -273,8 +273,13 @@ PyObject* KX_VehicleWrapper::PyGetConstraintType(PyObject* args)
|
||||
|
||||
//python specific stuff
|
||||
PyTypeObject KX_VehicleWrapper::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_VehicleWrapper",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -37,8 +37,13 @@
|
||||
#include "KX_PyMath.h"
|
||||
|
||||
PyTypeObject KX_VertexProxy::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_VertexProxy",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -92,8 +92,13 @@ KX_VisibilityActuator::Update()
|
||||
|
||||
/* Integration hooks ------------------------------------------------------- */
|
||||
PyTypeObject KX_VisibilityActuator::Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0,
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /* ob_size */
|
||||
#endif
|
||||
"KX_VisibilityActuator",
|
||||
sizeof(PyObjectPlus_Proxy),
|
||||
0,
|
||||
|
@ -135,8 +135,13 @@ static PyGetSetDef filterBSGetSets[] =
|
||||
// define python type
|
||||
PyTypeObject FilterBlueScreenType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.FilterBlueScreen", /*tp_name*/
|
||||
sizeof(PyFilter), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -41,8 +41,13 @@ static PyGetSetDef filterGrayGetSets[] =
|
||||
// define python type
|
||||
PyTypeObject FilterGrayType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.FilterGray", /*tp_name*/
|
||||
sizeof(PyFilter), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
@ -173,8 +178,13 @@ static PyGetSetDef filterColorGetSets[] =
|
||||
// define python type
|
||||
PyTypeObject FilterColorType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.FilterColor", /*tp_name*/
|
||||
sizeof(PyFilter), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
@ -307,8 +317,13 @@ static PyGetSetDef filterLevelGetSets[] =
|
||||
// define python type
|
||||
PyTypeObject FilterLevelType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.FilterLevel", /*tp_name*/
|
||||
sizeof(PyFilter), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -124,8 +124,13 @@ static PyGetSetDef filterNormalGetSets[] =
|
||||
// define python type
|
||||
PyTypeObject FilterNormalType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.FilterNormal", /*tp_name*/
|
||||
sizeof(PyFilter), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -36,8 +36,13 @@ http://www.gnu.org/copyleft/lesser.txt.
|
||||
// define python type
|
||||
PyTypeObject FilterRGB24Type =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.FilterRGB24", /*tp_name*/
|
||||
sizeof(PyFilter), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
@ -82,8 +87,13 @@ PyTypeObject FilterRGB24Type =
|
||||
// define python type
|
||||
PyTypeObject FilterRGBA32Type =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.FilterRGBA32", /*tp_name*/
|
||||
sizeof(PyFilter), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
@ -128,8 +138,13 @@ PyTypeObject FilterRGBA32Type =
|
||||
// define python type
|
||||
PyTypeObject FilterBGR24Type =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.FilterBGR24", /*tp_name*/
|
||||
sizeof(PyFilter), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -123,8 +123,13 @@ static PyGetSetDef imageBuffGetSets[] =
|
||||
// define python type
|
||||
PyTypeObject ImageBuffType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.ImageBuff", /*tp_name*/
|
||||
sizeof(PyImage), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -162,8 +162,13 @@ static PyGetSetDef imageMixGetSets[] =
|
||||
// define python type
|
||||
PyTypeObject ImageMixType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.ImageMix", /*tp_name*/
|
||||
sizeof(PyImage), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -379,8 +379,13 @@ static PyGetSetDef imageRenderGetSets[] =
|
||||
// define python type
|
||||
PyTypeObject ImageRenderType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.ImageRender", /*tp_name*/
|
||||
sizeof(PyImage), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
@ -713,8 +718,13 @@ ImageRender::ImageRender (KX_Scene * scene, KX_GameObject * observer, KX_GameObj
|
||||
// define python type
|
||||
PyTypeObject ImageMirrorType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.ImageMirror", /*tp_name*/
|
||||
sizeof(PyImage), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -289,8 +289,13 @@ static PyGetSetDef imageViewportGetSets[] =
|
||||
// define python type
|
||||
PyTypeObject ImageViewportType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.ImageViewport", /*tp_name*/
|
||||
sizeof(PyImage), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -435,8 +435,13 @@ static PyGetSetDef textureGetSets[] =
|
||||
// class Texture declaration
|
||||
PyTypeObject TextureType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.Texture", /*tp_name*/
|
||||
sizeof(Texture), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -1123,8 +1123,13 @@ static PyGetSetDef videoGetSets[] =
|
||||
// python type declaration
|
||||
PyTypeObject VideoFFmpegType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.VideoFFmpeg", /*tp_name*/
|
||||
sizeof(PyImage), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
@ -1241,8 +1246,13 @@ static PyGetSetDef imageGetSets[] =
|
||||
// python type declaration
|
||||
PyTypeObject ImageFFmpegType =
|
||||
{
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
#if (PY_VERSION_HEX >= 0x02060000)
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
#else
|
||||
/* python 2.5 and below */
|
||||
PyObject_HEAD_INIT( NULL ) /* required py macro */
|
||||
0, /*ob_size*/
|
||||
#endif
|
||||
"VideoTexture.ImageFFmpeg", /*tp_name*/
|
||||
sizeof(PyImage), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
|
@ -159,8 +159,25 @@ static void registerAllTypes(void)
|
||||
pyFilterTypes.add(&FilterBGR24Type, "FilterBGR24");
|
||||
}
|
||||
|
||||
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
static struct PyModuleDef VideoTexture_module_def = {
|
||||
{}, /* m_base */
|
||||
"VideoTexture", /* m_name */
|
||||
"Module that allows to play video files on textures in GameBlender.", /* m_doc */
|
||||
0, /* m_size */
|
||||
moduleMethods, /* m_methods */
|
||||
0, /* m_reload */
|
||||
0, /* m_traverse */
|
||||
0, /* m_clear */
|
||||
0, /* m_free */
|
||||
};
|
||||
#endif
|
||||
|
||||
PyObject* initVideoTexture(void)
|
||||
{
|
||||
PyObject * m;
|
||||
|
||||
// initialize GL extensions
|
||||
//bgl::InitExtensions(0);
|
||||
|
||||
@ -175,9 +192,14 @@ PyObject* initVideoTexture(void)
|
||||
if (PyType_Ready(&TextureType) < 0)
|
||||
return NULL;
|
||||
|
||||
PyObject * m = Py_InitModule4("VideoTexture", moduleMethods,
|
||||
#if (PY_VERSION_HEX >= 0x03000000)
|
||||
m = PyModule_Create(&VideoTexture_module_def);
|
||||
#else
|
||||
m = Py_InitModule4("VideoTexture", moduleMethods,
|
||||
"Module that allows to play video files on textures in GameBlender.",
|
||||
(PyObject*)NULL,PYTHON_API_VERSION);
|
||||
#endif
|
||||
|
||||
if (m == NULL)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user