[#17600] char* -> const char*
Thanks to Sean Bartell (wtachi), was causing many many warnings which distracted from the real problems.
This commit is contained in:
@@ -1048,7 +1048,7 @@ static float nla_time(float cfra, float unit)
|
||||
static float stridechannel_frame(Object *ob, float sizecorr, bActionStrip *strip, Path *path, float pathdist, float *stride_offset)
|
||||
{
|
||||
bAction *act= strip->act;
|
||||
char *name= strip->stridechannel;
|
||||
const char *name= strip->stridechannel;
|
||||
bActionChannel *achan= get_action_channel(act, name);
|
||||
int stride_axis= strip->stride_axis;
|
||||
|
||||
|
||||
@@ -224,7 +224,7 @@ int BLI_strcaseeq(char *a, char *b);
|
||||
|
||||
/* in util.c */
|
||||
#ifdef WITH_ICONV
|
||||
void BLI_string_to_utf8(char *original, char *utf_8, char *code);
|
||||
void BLI_string_to_utf8(char *original, char *utf_8, const char *code);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@@ -1955,7 +1955,7 @@ int BLI_strncasecmp(const char *s1, const char *s2, int n) {
|
||||
#include "iconv.h"
|
||||
#include "localcharset.h"
|
||||
|
||||
void BLI_string_to_utf8(char *original, char *utf_8, char *code)
|
||||
void BLI_string_to_utf8(char *original, char *utf_8, const char *code)
|
||||
{
|
||||
size_t inbytesleft=strlen(original);
|
||||
size_t outbytesleft=512;
|
||||
|
||||
@@ -96,7 +96,7 @@ static void addDrive(string &path)
|
||||
|
||||
static string unixYafrayPath()
|
||||
{
|
||||
static char *alternative[]=
|
||||
static const char *alternative[]=
|
||||
{
|
||||
"/usr/local/bin/",
|
||||
"/usr/bin/",
|
||||
|
||||
@@ -98,7 +98,7 @@ static string YafrayPath()
|
||||
string path=find_path();
|
||||
return path;
|
||||
#else
|
||||
static char *alternative[]=
|
||||
static const char *alternative[]=
|
||||
{
|
||||
"/usr/local/lib/",
|
||||
#ifdef __x86_64__
|
||||
@@ -124,7 +124,7 @@ static string YafrayPluginPath()
|
||||
#ifdef WIN32
|
||||
return find_path()+"\\plugins";
|
||||
#else
|
||||
static char *alternative[]=
|
||||
static const char *alternative[]=
|
||||
{
|
||||
"/usr/local/lib/yafray",
|
||||
#ifdef __x86_64__
|
||||
|
||||
@@ -480,7 +480,7 @@ PyObject* BL_ActionActuator::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* setStart */
|
||||
char BL_ActionActuator::GetAction_doc[] =
|
||||
const char BL_ActionActuator::GetAction_doc[] =
|
||||
"getAction()\n"
|
||||
"\tReturns a string containing the name of the current action.\n";
|
||||
|
||||
@@ -494,7 +494,7 @@ PyObject* BL_ActionActuator::PyGetAction(PyObject* self,
|
||||
}
|
||||
|
||||
/* getProperty */
|
||||
char BL_ActionActuator::GetProperty_doc[] =
|
||||
const char BL_ActionActuator::GetProperty_doc[] =
|
||||
"getProperty()\n"
|
||||
"\tReturns the name of the property to be used in FromProp mode.\n";
|
||||
|
||||
@@ -509,7 +509,7 @@ PyObject* BL_ActionActuator::PyGetProperty(PyObject* self,
|
||||
}
|
||||
|
||||
/* getProperty */
|
||||
char BL_ActionActuator::GetFrameProperty_doc[] =
|
||||
const char BL_ActionActuator::GetFrameProperty_doc[] =
|
||||
"getFrameProperty()\n"
|
||||
"\tReturns the name of the property, that is set to the current frame number.\n";
|
||||
|
||||
@@ -524,7 +524,7 @@ PyObject* BL_ActionActuator::PyGetFrameProperty(PyObject* self,
|
||||
}
|
||||
|
||||
/* getFrame */
|
||||
char BL_ActionActuator::GetFrame_doc[] =
|
||||
const char BL_ActionActuator::GetFrame_doc[] =
|
||||
"getFrame()\n"
|
||||
"\tReturns the current frame number.\n";
|
||||
|
||||
@@ -539,7 +539,7 @@ PyObject* BL_ActionActuator::PyGetFrame(PyObject* self,
|
||||
}
|
||||
|
||||
/* getEnd */
|
||||
char BL_ActionActuator::GetEnd_doc[] =
|
||||
const char BL_ActionActuator::GetEnd_doc[] =
|
||||
"getEnd()\n"
|
||||
"\tReturns the last frame of the action.\n";
|
||||
|
||||
@@ -554,7 +554,7 @@ PyObject* BL_ActionActuator::PyGetEnd(PyObject* self,
|
||||
}
|
||||
|
||||
/* getStart */
|
||||
char BL_ActionActuator::GetStart_doc[] =
|
||||
const char BL_ActionActuator::GetStart_doc[] =
|
||||
"getStart()\n"
|
||||
"\tReturns the starting frame of the action.\n";
|
||||
|
||||
@@ -569,7 +569,7 @@ PyObject* BL_ActionActuator::PyGetStart(PyObject* self,
|
||||
}
|
||||
|
||||
/* getBlendin */
|
||||
char BL_ActionActuator::GetBlendin_doc[] =
|
||||
const char BL_ActionActuator::GetBlendin_doc[] =
|
||||
"getBlendin()\n"
|
||||
"\tReturns the number of interpolation animation frames to be\n"
|
||||
"\tgenerated when this actuator is triggered.\n";
|
||||
@@ -585,7 +585,7 @@ PyObject* BL_ActionActuator::PyGetBlendin(PyObject* self,
|
||||
}
|
||||
|
||||
/* getPriority */
|
||||
char BL_ActionActuator::GetPriority_doc[] =
|
||||
const char BL_ActionActuator::GetPriority_doc[] =
|
||||
"getPriority()\n"
|
||||
"\tReturns the priority for this actuator. Actuators with lower\n"
|
||||
"\tPriority numbers will override actuators with higher numbers.\n";
|
||||
@@ -601,7 +601,7 @@ PyObject* BL_ActionActuator::PyGetPriority(PyObject* self,
|
||||
}
|
||||
|
||||
/* setAction */
|
||||
char BL_ActionActuator::SetAction_doc[] =
|
||||
const char BL_ActionActuator::SetAction_doc[] =
|
||||
"setAction(action, (reset))\n"
|
||||
"\t - action : The name of the action to set as the current action.\n"
|
||||
"\t - reset : Optional parameter indicating whether to reset the\n"
|
||||
@@ -640,7 +640,7 @@ PyObject* BL_ActionActuator::PySetAction(PyObject* self,
|
||||
}
|
||||
|
||||
/* setStart */
|
||||
char BL_ActionActuator::SetStart_doc[] =
|
||||
const char BL_ActionActuator::SetStart_doc[] =
|
||||
"setStart(start)\n"
|
||||
"\t - start : Specifies the starting frame of the animation.\n";
|
||||
|
||||
@@ -661,7 +661,7 @@ PyObject* BL_ActionActuator::PySetStart(PyObject* self,
|
||||
}
|
||||
|
||||
/* setEnd */
|
||||
char BL_ActionActuator::SetEnd_doc[] =
|
||||
const char BL_ActionActuator::SetEnd_doc[] =
|
||||
"setEnd(end)\n"
|
||||
"\t - end : Specifies the ending frame of the animation.\n";
|
||||
|
||||
@@ -682,7 +682,7 @@ PyObject* BL_ActionActuator::PySetEnd(PyObject* self,
|
||||
}
|
||||
|
||||
/* setBlendin */
|
||||
char BL_ActionActuator::SetBlendin_doc[] =
|
||||
const char BL_ActionActuator::SetBlendin_doc[] =
|
||||
"setBlendin(blendin)\n"
|
||||
"\t - blendin : Specifies the number of frames of animation to generate\n"
|
||||
"\t when making transitions between actions.\n";
|
||||
@@ -704,7 +704,7 @@ PyObject* BL_ActionActuator::PySetBlendin(PyObject* self,
|
||||
}
|
||||
|
||||
/* setBlendtime */
|
||||
char BL_ActionActuator::SetBlendtime_doc[] =
|
||||
const char BL_ActionActuator::SetBlendtime_doc[] =
|
||||
"setBlendtime(blendtime)\n"
|
||||
"\t - blendtime : Allows the script to directly modify the internal timer\n"
|
||||
"\t used when generating transitions between actions. This\n"
|
||||
@@ -731,7 +731,7 @@ PyObject* BL_ActionActuator::PySetBlendtime(PyObject* self,
|
||||
}
|
||||
|
||||
/* setPriority */
|
||||
char BL_ActionActuator::SetPriority_doc[] =
|
||||
const char BL_ActionActuator::SetPriority_doc[] =
|
||||
"setPriority(priority)\n"
|
||||
"\t - priority : Specifies the new priority. Actuators will lower\n"
|
||||
"\t priority numbers will override actuators with higher\n"
|
||||
@@ -754,7 +754,7 @@ PyObject* BL_ActionActuator::PySetPriority(PyObject* self,
|
||||
}
|
||||
|
||||
/* setFrame */
|
||||
char BL_ActionActuator::SetFrame_doc[] =
|
||||
const char BL_ActionActuator::SetFrame_doc[] =
|
||||
"setFrame(frame)\n"
|
||||
"\t - frame : Specifies the new current frame for the animation\n";
|
||||
|
||||
@@ -779,7 +779,7 @@ PyObject* BL_ActionActuator::PySetFrame(PyObject* self,
|
||||
}
|
||||
|
||||
/* setProperty */
|
||||
char BL_ActionActuator::SetProperty_doc[] =
|
||||
const char BL_ActionActuator::SetProperty_doc[] =
|
||||
"setProperty(prop)\n"
|
||||
"\t - prop : A string specifying the property name to be used in\n"
|
||||
"\t FromProp playback mode.\n";
|
||||
@@ -801,7 +801,7 @@ PyObject* BL_ActionActuator::PySetProperty(PyObject* self,
|
||||
}
|
||||
|
||||
/* setFrameProperty */
|
||||
char BL_ActionActuator::SetFrameProperty_doc[] =
|
||||
const char BL_ActionActuator::SetFrameProperty_doc[] =
|
||||
"setFrameProperty(prop)\n"
|
||||
"\t - prop : A string specifying the property of the frame set up update.\n";
|
||||
|
||||
@@ -840,7 +840,7 @@ PyObject* BL_ActionActuator::PyGetChannel(PyObject* self,
|
||||
*/
|
||||
|
||||
/* setChannel */
|
||||
char BL_ActionActuator::SetChannel_doc[] =
|
||||
const char BL_ActionActuator::SetChannel_doc[] =
|
||||
"setChannel(channel, matrix)\n"
|
||||
"\t - channel : A string specifying the name of the bone channel.\n"
|
||||
"\t - matrix : A 4x4 matrix specifying the overriding transformation\n"
|
||||
@@ -924,7 +924,7 @@ PyObject* BL_ActionActuator::PySetChannel(PyObject* self,
|
||||
}
|
||||
|
||||
/* getType */
|
||||
char BL_ActionActuator::GetType_doc[] =
|
||||
const char BL_ActionActuator::GetType_doc[] =
|
||||
"getType()\n"
|
||||
"\tReturns the operation mode of the actuator.\n";
|
||||
PyObject* BL_ActionActuator::PyGetType(PyObject* self,
|
||||
@@ -934,7 +934,7 @@ PyObject* BL_ActionActuator::PyGetType(PyObject* self,
|
||||
}
|
||||
|
||||
/* setType */
|
||||
char BL_ActionActuator::SetType_doc[] =
|
||||
const char BL_ActionActuator::SetType_doc[] =
|
||||
"setType(mode)\n"
|
||||
"\t - mode: Play (0), Flipper (2), LoopStop (3), LoopEnd (4) or Property (6)\n"
|
||||
"\tSet the operation mode of the actuator.\n";
|
||||
|
||||
@@ -308,7 +308,7 @@ static void GetRGB(short type,
|
||||
typedef struct MTF_localLayer
|
||||
{
|
||||
MTFace *face;
|
||||
char *name;
|
||||
const char *name;
|
||||
}MTF_localLayer;
|
||||
|
||||
// ------------------------------------
|
||||
|
||||
@@ -461,7 +461,7 @@ PyObject* BL_ShapeActionActuator::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* setStart */
|
||||
char BL_ShapeActionActuator::GetAction_doc[] =
|
||||
const char BL_ShapeActionActuator::GetAction_doc[] =
|
||||
"getAction()\n"
|
||||
"\tReturns a string containing the name of the current action.\n";
|
||||
|
||||
@@ -473,7 +473,7 @@ PyObject* BL_ShapeActionActuator::PyGetAction(PyObject* self) {
|
||||
}
|
||||
|
||||
/* getProperty */
|
||||
char BL_ShapeActionActuator::GetProperty_doc[] =
|
||||
const char BL_ShapeActionActuator::GetProperty_doc[] =
|
||||
"getProperty()\n"
|
||||
"\tReturns the name of the property to be used in FromProp mode.\n";
|
||||
|
||||
@@ -486,7 +486,7 @@ PyObject* BL_ShapeActionActuator::PyGetProperty(PyObject* self) {
|
||||
}
|
||||
|
||||
/* getFrame */
|
||||
char BL_ShapeActionActuator::GetFrame_doc[] =
|
||||
const char BL_ShapeActionActuator::GetFrame_doc[] =
|
||||
"getFrame()\n"
|
||||
"\tReturns the current frame number.\n";
|
||||
|
||||
@@ -499,7 +499,7 @@ PyObject* BL_ShapeActionActuator::PyGetFrame(PyObject* self) {
|
||||
}
|
||||
|
||||
/* getEnd */
|
||||
char BL_ShapeActionActuator::GetEnd_doc[] =
|
||||
const char BL_ShapeActionActuator::GetEnd_doc[] =
|
||||
"getEnd()\n"
|
||||
"\tReturns the last frame of the action.\n";
|
||||
|
||||
@@ -512,7 +512,7 @@ PyObject* BL_ShapeActionActuator::PyGetEnd(PyObject* self) {
|
||||
}
|
||||
|
||||
/* getStart */
|
||||
char BL_ShapeActionActuator::GetStart_doc[] =
|
||||
const char BL_ShapeActionActuator::GetStart_doc[] =
|
||||
"getStart()\n"
|
||||
"\tReturns the starting frame of the action.\n";
|
||||
|
||||
@@ -525,7 +525,7 @@ PyObject* BL_ShapeActionActuator::PyGetStart(PyObject* self) {
|
||||
}
|
||||
|
||||
/* getBlendin */
|
||||
char BL_ShapeActionActuator::GetBlendin_doc[] =
|
||||
const char BL_ShapeActionActuator::GetBlendin_doc[] =
|
||||
"getBlendin()\n"
|
||||
"\tReturns the number of interpolation animation frames to be\n"
|
||||
"\tgenerated when this actuator is triggered.\n";
|
||||
@@ -539,7 +539,7 @@ PyObject* BL_ShapeActionActuator::PyGetBlendin(PyObject* self) {
|
||||
}
|
||||
|
||||
/* getPriority */
|
||||
char BL_ShapeActionActuator::GetPriority_doc[] =
|
||||
const char BL_ShapeActionActuator::GetPriority_doc[] =
|
||||
"getPriority()\n"
|
||||
"\tReturns the priority for this actuator. Actuators with lower\n"
|
||||
"\tPriority numbers will override actuators with higher numbers.\n";
|
||||
@@ -553,7 +553,7 @@ PyObject* BL_ShapeActionActuator::PyGetPriority(PyObject* self) {
|
||||
}
|
||||
|
||||
/* setAction */
|
||||
char BL_ShapeActionActuator::SetAction_doc[] =
|
||||
const char BL_ShapeActionActuator::SetAction_doc[] =
|
||||
"setAction(action, (reset))\n"
|
||||
"\t - action : The name of the action to set as the current action.\n"
|
||||
"\t Should be an action with Shape channels.\n"
|
||||
@@ -593,7 +593,7 @@ PyObject* BL_ShapeActionActuator::PySetAction(PyObject* self,
|
||||
}
|
||||
|
||||
/* setStart */
|
||||
char BL_ShapeActionActuator::SetStart_doc[] =
|
||||
const char BL_ShapeActionActuator::SetStart_doc[] =
|
||||
"setStart(start)\n"
|
||||
"\t - start : Specifies the starting frame of the animation.\n";
|
||||
|
||||
@@ -614,7 +614,7 @@ PyObject* BL_ShapeActionActuator::PySetStart(PyObject* self,
|
||||
}
|
||||
|
||||
/* setEnd */
|
||||
char BL_ShapeActionActuator::SetEnd_doc[] =
|
||||
const char BL_ShapeActionActuator::SetEnd_doc[] =
|
||||
"setEnd(end)\n"
|
||||
"\t - end : Specifies the ending frame of the animation.\n";
|
||||
|
||||
@@ -635,7 +635,7 @@ PyObject* BL_ShapeActionActuator::PySetEnd(PyObject* self,
|
||||
}
|
||||
|
||||
/* setBlendin */
|
||||
char BL_ShapeActionActuator::SetBlendin_doc[] =
|
||||
const char BL_ShapeActionActuator::SetBlendin_doc[] =
|
||||
"setBlendin(blendin)\n"
|
||||
"\t - blendin : Specifies the number of frames of animation to generate\n"
|
||||
"\t when making transitions between actions.\n";
|
||||
@@ -657,7 +657,7 @@ PyObject* BL_ShapeActionActuator::PySetBlendin(PyObject* self,
|
||||
}
|
||||
|
||||
/* setBlendtime */
|
||||
char BL_ShapeActionActuator::SetBlendtime_doc[] =
|
||||
const char BL_ShapeActionActuator::SetBlendtime_doc[] =
|
||||
"setBlendtime(blendtime)\n"
|
||||
"\t - blendtime : Allows the script to directly modify the internal timer\n"
|
||||
"\t used when generating transitions between actions. This\n"
|
||||
@@ -684,7 +684,7 @@ PyObject* BL_ShapeActionActuator::PySetBlendtime(PyObject* self,
|
||||
}
|
||||
|
||||
/* setPriority */
|
||||
char BL_ShapeActionActuator::SetPriority_doc[] =
|
||||
const char BL_ShapeActionActuator::SetPriority_doc[] =
|
||||
"setPriority(priority)\n"
|
||||
"\t - priority : Specifies the new priority. Actuators will lower\n"
|
||||
"\t priority numbers will override actuators with higher\n"
|
||||
@@ -707,7 +707,7 @@ PyObject* BL_ShapeActionActuator::PySetPriority(PyObject* self,
|
||||
}
|
||||
|
||||
/* setFrame */
|
||||
char BL_ShapeActionActuator::SetFrame_doc[] =
|
||||
const char BL_ShapeActionActuator::SetFrame_doc[] =
|
||||
"setFrame(frame)\n"
|
||||
"\t - frame : Specifies the new current frame for the animation\n";
|
||||
|
||||
@@ -732,7 +732,7 @@ PyObject* BL_ShapeActionActuator::PySetFrame(PyObject* self,
|
||||
}
|
||||
|
||||
/* setProperty */
|
||||
char BL_ShapeActionActuator::SetProperty_doc[] =
|
||||
const char BL_ShapeActionActuator::SetProperty_doc[] =
|
||||
"setProperty(prop)\n"
|
||||
"\t - prop : A string specifying the property name to be used in\n"
|
||||
"\t FromProp playback mode.\n";
|
||||
@@ -754,7 +754,7 @@ PyObject* BL_ShapeActionActuator::PySetProperty(PyObject* self,
|
||||
}
|
||||
|
||||
/* getType */
|
||||
char BL_ShapeActionActuator::GetType_doc[] =
|
||||
const char BL_ShapeActionActuator::GetType_doc[] =
|
||||
"getType()\n"
|
||||
"\tReturns the operation mode of the actuator.\n";
|
||||
PyObject* BL_ShapeActionActuator::PyGetType(PyObject* self) {
|
||||
@@ -762,7 +762,7 @@ PyObject* BL_ShapeActionActuator::PyGetType(PyObject* self) {
|
||||
}
|
||||
|
||||
/* setType */
|
||||
char BL_ShapeActionActuator::SetType_doc[] =
|
||||
const char BL_ShapeActionActuator::SetType_doc[] =
|
||||
"setType(mode)\n"
|
||||
"\t - mode: Play (0), Flipper (2), LoopStop (3), LoopEnd (4) or Property (6)\n"
|
||||
"\tSet the operation mode of the actuator.\n";
|
||||
|
||||
@@ -73,7 +73,7 @@ typedef int Py_ssize_t;
|
||||
// some basic python macros
|
||||
#define Py_Return { Py_INCREF(Py_None); return Py_None;}
|
||||
|
||||
static inline void Py_Fatal(char *M) {
|
||||
static inline void Py_Fatal(const char *M) {
|
||||
//cout << M << endl;
|
||||
exit(-1);
|
||||
};
|
||||
@@ -152,28 +152,28 @@ static inline void Py_Fatal(char *M) {
|
||||
static PyObject* sPy##method_name( PyObject* self, PyObject* args, PyObject* kwds) { \
|
||||
return ((class_name*) self)->Py##method_name(self, args, kwds); \
|
||||
}; \
|
||||
static char method_name##_doc[]; \
|
||||
static const char method_name##_doc[]; \
|
||||
|
||||
#define KX_PYMETHOD_DOC_VARARGS(class_name, method_name) \
|
||||
PyObject* Py##method_name(PyObject* self, PyObject* args); \
|
||||
static PyObject* sPy##method_name( PyObject* self, PyObject* args) { \
|
||||
return ((class_name*) self)->Py##method_name(self, args); \
|
||||
}; \
|
||||
static char method_name##_doc[]; \
|
||||
static const char method_name##_doc[]; \
|
||||
|
||||
#define KX_PYMETHOD_DOC_O(class_name, method_name) \
|
||||
PyObject* Py##method_name(PyObject* self, PyObject* value); \
|
||||
static PyObject* sPy##method_name( PyObject* self, PyObject* value) { \
|
||||
return ((class_name*) self)->Py##method_name(self, value); \
|
||||
}; \
|
||||
static char method_name##_doc[]; \
|
||||
static const char method_name##_doc[]; \
|
||||
|
||||
#define KX_PYMETHOD_DOC_NOARGS(class_name, method_name) \
|
||||
PyObject* Py##method_name(PyObject* self); \
|
||||
static PyObject* sPy##method_name( PyObject* self) { \
|
||||
return ((class_name*) self)->Py##method_name(self); \
|
||||
}; \
|
||||
static char method_name##_doc[]; \
|
||||
static const char method_name##_doc[]; \
|
||||
|
||||
|
||||
/* The line above should remain empty */
|
||||
@@ -190,11 +190,11 @@ static inline void Py_Fatal(char *M) {
|
||||
* Function implementation macro
|
||||
*/
|
||||
#define KX_PYMETHODDEF_DOC(class_name, method_name, doc_string) \
|
||||
char class_name::method_name##_doc[] = doc_string; \
|
||||
const char class_name::method_name##_doc[] = doc_string; \
|
||||
PyObject* class_name::Py##method_name(PyObject*, PyObject* args, PyObject*)
|
||||
|
||||
#define KX_PYMETHODDEF_DOC_NOARG(class_name, method_name, doc_string) \
|
||||
char class_name::method_name##_doc[] = doc_string; \
|
||||
const char class_name::method_name##_doc[] = doc_string; \
|
||||
PyObject* class_name::Py##method_name(PyObject*)
|
||||
|
||||
/*------------------------------
|
||||
|
||||
@@ -159,7 +159,7 @@ PyObject* SCA_ActuatorSensor::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* 3. getActuator */
|
||||
char SCA_ActuatorSensor::GetActuator_doc[] =
|
||||
const char SCA_ActuatorSensor::GetActuator_doc[] =
|
||||
"getActuator()\n"
|
||||
"\tReturn the Actuator with which the sensor operates.\n";
|
||||
PyObject* SCA_ActuatorSensor::PyGetActuator(PyObject* self)
|
||||
@@ -168,7 +168,7 @@ PyObject* SCA_ActuatorSensor::PyGetActuator(PyObject* self)
|
||||
}
|
||||
|
||||
/* 4. setActuator */
|
||||
char SCA_ActuatorSensor::SetActuator_doc[] =
|
||||
const char SCA_ActuatorSensor::SetActuator_doc[] =
|
||||
"setActuator(name)\n"
|
||||
"\t- name: string\n"
|
||||
"\tSets the Actuator with which to operate. If there is no Actuator\n"
|
||||
|
||||
@@ -173,7 +173,7 @@ PyObject* SCA_DelaySensor::_getattr(const STR_String& attr) {
|
||||
_getattr_up(SCA_ISensor);
|
||||
}
|
||||
|
||||
char SCA_DelaySensor::SetDelay_doc[] =
|
||||
const char SCA_DelaySensor::SetDelay_doc[] =
|
||||
"setDelay(delay)\n"
|
||||
"\t- delay: length of the initial OFF period as number of frame\n"
|
||||
"\t 0 for immediate trigger\n"
|
||||
@@ -193,7 +193,7 @@ PyObject* SCA_DelaySensor::PySetDelay(PyObject* self, PyObject* args, PyObject*
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
char SCA_DelaySensor::SetDuration_doc[] =
|
||||
const char SCA_DelaySensor::SetDuration_doc[] =
|
||||
"setDuration(duration)\n"
|
||||
"\t- duration: length of the ON period in number of frame after the initial off period\n"
|
||||
"\t 0 for no ON period\n"
|
||||
@@ -214,7 +214,7 @@ PyObject* SCA_DelaySensor::PySetDuration(PyObject* self, PyObject* args, PyObjec
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
char SCA_DelaySensor::SetRepeat_doc[] =
|
||||
const char SCA_DelaySensor::SetRepeat_doc[] =
|
||||
"setRepeat(repeat)\n"
|
||||
"\t- repeat: 1 if the initial OFF-ON cycle should be repeated indefinately\n"
|
||||
"\t 0 if the initial OFF-ON cycle should run only once\n"
|
||||
@@ -230,7 +230,7 @@ PyObject* SCA_DelaySensor::PySetRepeat(PyObject* self, PyObject* args, PyObject*
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
char SCA_DelaySensor::GetDelay_doc[] =
|
||||
const char SCA_DelaySensor::GetDelay_doc[] =
|
||||
"getDelay()\n"
|
||||
"\tReturn the delay parameter value\n";
|
||||
PyObject* SCA_DelaySensor::PyGetDelay(PyObject* self)
|
||||
@@ -238,7 +238,7 @@ PyObject* SCA_DelaySensor::PyGetDelay(PyObject* self)
|
||||
return PyInt_FromLong(m_delay);
|
||||
}
|
||||
|
||||
char SCA_DelaySensor::GetDuration_doc[] =
|
||||
const char SCA_DelaySensor::GetDuration_doc[] =
|
||||
"getDuration()\n"
|
||||
"\tReturn the duration parameter value\n";
|
||||
PyObject* SCA_DelaySensor::PyGetDuration(PyObject* self)
|
||||
@@ -246,7 +246,7 @@ PyObject* SCA_DelaySensor::PyGetDuration(PyObject* self)
|
||||
return PyInt_FromLong(m_duration);
|
||||
}
|
||||
|
||||
char SCA_DelaySensor::GetRepeat_doc[] =
|
||||
const char SCA_DelaySensor::GetRepeat_doc[] =
|
||||
"getRepeat()\n"
|
||||
"\tReturn the repeat parameter value\n";
|
||||
PyObject* SCA_DelaySensor::PyGetRepeat(PyObject* self)
|
||||
|
||||
@@ -277,7 +277,7 @@ void SCA_ISensor::Activate(class SCA_LogicManager* logicmgr, CValue* event)
|
||||
}
|
||||
|
||||
/* Python functions: */
|
||||
char SCA_ISensor::IsPositive_doc[] =
|
||||
const char SCA_ISensor::IsPositive_doc[] =
|
||||
"isPositive()\n"
|
||||
"\tReturns whether the sensor is in an active state.\n";
|
||||
PyObject* SCA_ISensor::PyIsPositive(PyObject* self)
|
||||
@@ -286,7 +286,7 @@ PyObject* SCA_ISensor::PyIsPositive(PyObject* self)
|
||||
return PyInt_FromLong(retval);
|
||||
}
|
||||
|
||||
char SCA_ISensor::IsTriggered_doc[] =
|
||||
const char SCA_ISensor::IsTriggered_doc[] =
|
||||
"isTriggered()\n"
|
||||
"\tReturns whether the sensor has triggered the current controller.\n";
|
||||
PyObject* SCA_ISensor::PyIsTriggered(PyObject* self)
|
||||
@@ -301,7 +301,7 @@ PyObject* SCA_ISensor::PyIsTriggered(PyObject* self)
|
||||
/**
|
||||
* getUsePulseMode: getter for the pulse mode (KX_TRUE = on)
|
||||
*/
|
||||
char SCA_ISensor::GetUsePosPulseMode_doc[] =
|
||||
const char SCA_ISensor::GetUsePosPulseMode_doc[] =
|
||||
"getUsePosPulseMode()\n"
|
||||
"\tReturns whether positive pulse mode is active.\n";
|
||||
PyObject* SCA_ISensor::PyGetUsePosPulseMode(PyObject* self)
|
||||
@@ -312,7 +312,7 @@ PyObject* SCA_ISensor::PyGetUsePosPulseMode(PyObject* self)
|
||||
/**
|
||||
* setUsePulseMode: setter for the pulse mode (KX_TRUE = on)
|
||||
*/
|
||||
char SCA_ISensor::SetUsePosPulseMode_doc[] =
|
||||
const char SCA_ISensor::SetUsePosPulseMode_doc[] =
|
||||
"setUsePosPulseMode(pulse?)\n"
|
||||
"\t - pulse? : Pulse when a positive event occurs?\n"
|
||||
"\t (KX_TRUE, KX_FALSE)\n"
|
||||
@@ -328,7 +328,7 @@ PyObject* SCA_ISensor::PySetUsePosPulseMode(PyObject* self, PyObject* args, PyOb
|
||||
/**
|
||||
* getFrequency: getter for the pulse mode interval
|
||||
*/
|
||||
char SCA_ISensor::GetFrequency_doc[] =
|
||||
const char SCA_ISensor::GetFrequency_doc[] =
|
||||
"getFrequency()\n"
|
||||
"\tReturns the frequency of the updates in pulse mode.\n" ;
|
||||
PyObject* SCA_ISensor::PyGetFrequency(PyObject* self)
|
||||
@@ -339,7 +339,7 @@ PyObject* SCA_ISensor::PyGetFrequency(PyObject* self)
|
||||
/**
|
||||
* setFrequency: setter for the pulse mode (KX_TRUE = on)
|
||||
*/
|
||||
char SCA_ISensor::SetFrequency_doc[] =
|
||||
const char SCA_ISensor::SetFrequency_doc[] =
|
||||
"setFrequency(pulse_frequency)\n"
|
||||
"\t- pulse_frequency: The frequency of the updates in pulse mode (integer)"
|
||||
"\tSet the frequency of the updates in pulse mode.\n"
|
||||
@@ -363,7 +363,7 @@ PyObject* SCA_ISensor::PySetFrequency(PyObject* self, PyObject* args, PyObject*
|
||||
}
|
||||
|
||||
|
||||
char SCA_ISensor::GetInvert_doc[] =
|
||||
const char SCA_ISensor::GetInvert_doc[] =
|
||||
"getInvert()\n"
|
||||
"\tReturns whether or not pulses from this sensor are inverted.\n" ;
|
||||
PyObject* SCA_ISensor::PyGetInvert(PyObject* self)
|
||||
@@ -371,7 +371,7 @@ PyObject* SCA_ISensor::PyGetInvert(PyObject* self)
|
||||
return BoolToPyArg(m_invert);
|
||||
}
|
||||
|
||||
char SCA_ISensor::SetInvert_doc[] =
|
||||
const char SCA_ISensor::SetInvert_doc[] =
|
||||
"setInvert(invert?)\n"
|
||||
"\t- invert?: Invert the event-values? (KX_TRUE, KX_FALSE)\n"
|
||||
"\tSet whether to invert pulses.\n";
|
||||
@@ -383,7 +383,7 @@ PyObject* SCA_ISensor::PySetInvert(PyObject* self, PyObject* args, PyObject* kwd
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
char SCA_ISensor::GetLevel_doc[] =
|
||||
const char SCA_ISensor::GetLevel_doc[] =
|
||||
"getLevel()\n"
|
||||
"\tReturns whether this sensor is a level detector or a edge detector.\n"
|
||||
"\tIt makes a difference only in case of logic state transition (state actuator).\n"
|
||||
@@ -395,7 +395,7 @@ PyObject* SCA_ISensor::PyGetLevel(PyObject* self)
|
||||
return BoolToPyArg(m_level);
|
||||
}
|
||||
|
||||
char SCA_ISensor::SetLevel_doc[] =
|
||||
const char SCA_ISensor::SetLevel_doc[] =
|
||||
"setLevel(level?)\n"
|
||||
"\t- level?: Detect level instead of edge? (KX_TRUE, KX_FALSE)\n"
|
||||
"\tSet whether to detect level or edge transition when entering a state.\n";
|
||||
@@ -407,7 +407,7 @@ PyObject* SCA_ISensor::PySetLevel(PyObject* self, PyObject* args, PyObject* kwds
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
char SCA_ISensor::GetUseNegPulseMode_doc[] =
|
||||
const char SCA_ISensor::GetUseNegPulseMode_doc[] =
|
||||
"getUseNegPulseMode()\n"
|
||||
"\tReturns whether negative pulse mode is active.\n";
|
||||
PyObject* SCA_ISensor::PyGetUseNegPulseMode(PyObject* self)
|
||||
@@ -415,7 +415,7 @@ PyObject* SCA_ISensor::PyGetUseNegPulseMode(PyObject* self)
|
||||
return BoolToPyArg(m_neg_pulsemode);
|
||||
}
|
||||
|
||||
char SCA_ISensor::SetUseNegPulseMode_doc[] =
|
||||
const char SCA_ISensor::SetUseNegPulseMode_doc[] =
|
||||
"setUseNegPulseMode(pulse?)\n"
|
||||
"\t - pulse? : Pulse when a negative event occurs?\n"
|
||||
"\t (KX_TRUE, KX_FALSE)\n"
|
||||
@@ -428,7 +428,7 @@ PyObject* SCA_ISensor::PySetUseNegPulseMode(PyObject* self, PyObject* args, PyOb
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
char SCA_ISensor::Reset_doc[] =
|
||||
const char SCA_ISensor::Reset_doc[] =
|
||||
"reset()\n"
|
||||
"\tReset sensor internal state, effect depends on the type of sensor and settings.\n"
|
||||
"\tThe sensor is put in its initial state as if it was just activated.\n";
|
||||
|
||||
@@ -346,7 +346,7 @@ PyObject* SCA_JoystickSensor::_getattr(const STR_String& attr) {
|
||||
|
||||
|
||||
/* get index ---------------------------------------------------------- */
|
||||
char SCA_JoystickSensor::GetIndex_doc[] =
|
||||
const char SCA_JoystickSensor::GetIndex_doc[] =
|
||||
"getIndex\n"
|
||||
"\tReturns the joystick index to use.\n";
|
||||
PyObject* SCA_JoystickSensor::PyGetIndex( PyObject* self ) {
|
||||
@@ -355,7 +355,7 @@ PyObject* SCA_JoystickSensor::PyGetIndex( PyObject* self ) {
|
||||
|
||||
|
||||
/* set index ---------------------------------------------------------- */
|
||||
char SCA_JoystickSensor::SetIndex_doc[] =
|
||||
const char SCA_JoystickSensor::SetIndex_doc[] =
|
||||
"setIndex\n"
|
||||
"\tSets the joystick index to use.\n";
|
||||
PyObject* SCA_JoystickSensor::PySetIndex( PyObject* self, PyObject* value ) {
|
||||
@@ -370,7 +370,7 @@ PyObject* SCA_JoystickSensor::PySetIndex( PyObject* self, PyObject* value ) {
|
||||
}
|
||||
|
||||
/* get axis ---------------------------------------------------------- */
|
||||
char SCA_JoystickSensor::GetAxis_doc[] =
|
||||
const char SCA_JoystickSensor::GetAxis_doc[] =
|
||||
"getAxis\n"
|
||||
"\tReturns the current state of the axis.\n";
|
||||
PyObject* SCA_JoystickSensor::PyGetAxis( PyObject* self) {
|
||||
@@ -379,7 +379,7 @@ PyObject* SCA_JoystickSensor::PyGetAxis( PyObject* self) {
|
||||
|
||||
|
||||
/* set axis ---------------------------------------------------------- */
|
||||
char SCA_JoystickSensor::SetAxis_doc[] =
|
||||
const char SCA_JoystickSensor::SetAxis_doc[] =
|
||||
"setAxis\n"
|
||||
"\tSets the current state of the axis.\n";
|
||||
PyObject* SCA_JoystickSensor::PySetAxis( PyObject* self, PyObject* args ) {
|
||||
@@ -395,7 +395,7 @@ PyObject* SCA_JoystickSensor::PySetAxis( PyObject* self, PyObject* args ) {
|
||||
|
||||
|
||||
/* get axis value ----------------------------------------------------- */
|
||||
char SCA_JoystickSensor::GetRealAxis_doc[] =
|
||||
const char SCA_JoystickSensor::GetRealAxis_doc[] =
|
||||
"getAxisValue\n"
|
||||
"\tReturns a list of the values for each axis .\n";
|
||||
PyObject* SCA_JoystickSensor::PyGetRealAxis( PyObject* self) {
|
||||
@@ -408,7 +408,7 @@ PyObject* SCA_JoystickSensor::PyGetRealAxis( PyObject* self) {
|
||||
|
||||
|
||||
/* get threshold ----------------------------------------------------- */
|
||||
char SCA_JoystickSensor::GetThreshold_doc[] =
|
||||
const char SCA_JoystickSensor::GetThreshold_doc[] =
|
||||
"getThreshold\n"
|
||||
"\tReturns the threshold of the axis.\n";
|
||||
PyObject* SCA_JoystickSensor::PyGetThreshold( PyObject* self) {
|
||||
@@ -417,7 +417,7 @@ PyObject* SCA_JoystickSensor::PyGetThreshold( PyObject* self) {
|
||||
|
||||
|
||||
/* set threshold ----------------------------------------------------- */
|
||||
char SCA_JoystickSensor::SetThreshold_doc[] =
|
||||
const char SCA_JoystickSensor::SetThreshold_doc[] =
|
||||
"setThreshold\n"
|
||||
"\tSets the threshold of the axis.\n";
|
||||
PyObject* SCA_JoystickSensor::PySetThreshold( PyObject* self, PyObject* args ) {
|
||||
@@ -431,7 +431,7 @@ PyObject* SCA_JoystickSensor::PySetThreshold( PyObject* self, PyObject* args ) {
|
||||
|
||||
|
||||
/* get button -------------------------------------------------------- */
|
||||
char SCA_JoystickSensor::GetButton_doc[] =
|
||||
const char SCA_JoystickSensor::GetButton_doc[] =
|
||||
"getButton\n"
|
||||
"\tReturns the currently pressed button.\n";
|
||||
PyObject* SCA_JoystickSensor::PyGetButton( PyObject* self) {
|
||||
@@ -440,7 +440,7 @@ PyObject* SCA_JoystickSensor::PyGetButton( PyObject* self) {
|
||||
|
||||
|
||||
/* set button -------------------------------------------------------- */
|
||||
char SCA_JoystickSensor::SetButton_doc[] =
|
||||
const char SCA_JoystickSensor::SetButton_doc[] =
|
||||
"setButton\n"
|
||||
"\tSets the button the sensor reacts to.\n";
|
||||
PyObject* SCA_JoystickSensor::PySetButton( PyObject* self, PyObject* args ) {
|
||||
@@ -455,7 +455,7 @@ PyObject* SCA_JoystickSensor::PySetButton( PyObject* self, PyObject* args ) {
|
||||
|
||||
|
||||
/* get hat ----------------------------------------------------------- */
|
||||
char SCA_JoystickSensor::GetHat_doc[] =
|
||||
const char SCA_JoystickSensor::GetHat_doc[] =
|
||||
"getHat\n"
|
||||
"\tReturns the current direction of the hat.\n";
|
||||
PyObject* SCA_JoystickSensor::PyGetHat( PyObject* self ) {
|
||||
@@ -464,7 +464,7 @@ PyObject* SCA_JoystickSensor::PyGetHat( PyObject* self ) {
|
||||
|
||||
|
||||
/* set hat ----------------------------------------------------------- */
|
||||
char SCA_JoystickSensor::SetHat_doc[] =
|
||||
const char SCA_JoystickSensor::SetHat_doc[] =
|
||||
"setHat\n"
|
||||
"\tSets the hat the sensor reacts to.\n";
|
||||
PyObject* SCA_JoystickSensor::PySetHat( PyObject* self, PyObject* args ) {
|
||||
@@ -479,7 +479,7 @@ PyObject* SCA_JoystickSensor::PySetHat( PyObject* self, PyObject* args ) {
|
||||
|
||||
|
||||
/* get # of ----------------------------------------------------- */
|
||||
char SCA_JoystickSensor::NumberOfAxes_doc[] =
|
||||
const char SCA_JoystickSensor::NumberOfAxes_doc[] =
|
||||
"getNumAxes\n"
|
||||
"\tReturns the number of axes .\n";
|
||||
PyObject* SCA_JoystickSensor::PyNumberOfAxes( PyObject* self ) {
|
||||
@@ -489,7 +489,7 @@ PyObject* SCA_JoystickSensor::PyNumberOfAxes( PyObject* self ) {
|
||||
}
|
||||
|
||||
|
||||
char SCA_JoystickSensor::NumberOfButtons_doc[] =
|
||||
const char SCA_JoystickSensor::NumberOfButtons_doc[] =
|
||||
"getNumButtons\n"
|
||||
"\tReturns the number of buttons .\n";
|
||||
PyObject* SCA_JoystickSensor::PyNumberOfButtons( PyObject* self ) {
|
||||
@@ -498,7 +498,7 @@ PyObject* SCA_JoystickSensor::PyNumberOfButtons( PyObject* self ) {
|
||||
}
|
||||
|
||||
|
||||
char SCA_JoystickSensor::NumberOfHats_doc[] =
|
||||
const char SCA_JoystickSensor::NumberOfHats_doc[] =
|
||||
"getNumHats\n"
|
||||
"\tReturns the number of hats .\n";
|
||||
PyObject* SCA_JoystickSensor::PyNumberOfHats( PyObject* self ) {
|
||||
@@ -506,7 +506,7 @@ PyObject* SCA_JoystickSensor::PyNumberOfHats( PyObject* self ) {
|
||||
return PyInt_FromLong( joy ? joy->GetNumberOfHats() : 0 );
|
||||
}
|
||||
|
||||
char SCA_JoystickSensor::Connected_doc[] =
|
||||
const char SCA_JoystickSensor::Connected_doc[] =
|
||||
"getConnected\n"
|
||||
"\tReturns True if a joystick is connected at this joysticks index.\n";
|
||||
PyObject* SCA_JoystickSensor::PyConnected( PyObject* self ) {
|
||||
|
||||
@@ -510,7 +510,7 @@ PyObject* SCA_KeyboardSensor::sPySetAllMode(PyObject* self,
|
||||
|
||||
|
||||
/** 1. GetKey : check which key this sensor looks at */
|
||||
char SCA_KeyboardSensor::GetKey_doc[] =
|
||||
const char SCA_KeyboardSensor::GetKey_doc[] =
|
||||
"getKey()\n"
|
||||
"\tReturn the code of the key this sensor is listening to.\n" ;
|
||||
PyObject* SCA_KeyboardSensor::PyGetKey(PyObject* self, PyObject* args, PyObject* kwds)
|
||||
@@ -519,7 +519,7 @@ PyObject* SCA_KeyboardSensor::PyGetKey(PyObject* self, PyObject* args, PyObject*
|
||||
}
|
||||
|
||||
/** 2. SetKey: change the key to look at */
|
||||
char SCA_KeyboardSensor::SetKey_doc[] =
|
||||
const char SCA_KeyboardSensor::SetKey_doc[] =
|
||||
"setKey(keycode)\n"
|
||||
"\t- keycode: any code from GameKeys\n"
|
||||
"\tSet the key this sensor should listen to.\n" ;
|
||||
@@ -539,7 +539,7 @@ PyObject* SCA_KeyboardSensor::PySetKey(PyObject* self, PyObject* args, PyObject*
|
||||
}
|
||||
|
||||
/** 3. GetHold1 : set the first bucky bit */
|
||||
char SCA_KeyboardSensor::GetHold1_doc[] =
|
||||
const char SCA_KeyboardSensor::GetHold1_doc[] =
|
||||
"getHold1()\n"
|
||||
"\tReturn the code of the first key modifier to the key this \n"
|
||||
"\tsensor is listening to.\n" ;
|
||||
@@ -549,7 +549,7 @@ PyObject* SCA_KeyboardSensor::PyGetHold1(PyObject* self, PyObject* args, PyObjec
|
||||
}
|
||||
|
||||
/** 4. SetHold1: change the first bucky bit */
|
||||
char SCA_KeyboardSensor::SetHold1_doc[] =
|
||||
const char SCA_KeyboardSensor::SetHold1_doc[] =
|
||||
"setHold1(keycode)\n"
|
||||
"\t- keycode: any code from GameKeys\n"
|
||||
"\tSet the first modifier to the key this sensor should listen to.\n" ;
|
||||
@@ -569,7 +569,7 @@ PyObject* SCA_KeyboardSensor::PySetHold1(PyObject* self, PyObject* args, PyObjec
|
||||
}
|
||||
|
||||
/** 5. GetHold2 : get the second bucky bit */
|
||||
char SCA_KeyboardSensor::GetHold2_doc[] =
|
||||
const char SCA_KeyboardSensor::GetHold2_doc[] =
|
||||
"getHold2()\n"
|
||||
"\tReturn the code of the second key modifier to the key this \n"
|
||||
"\tsensor is listening to.\n" ;
|
||||
@@ -579,7 +579,7 @@ PyObject* SCA_KeyboardSensor::PyGetHold2(PyObject* self, PyObject* args, PyObjec
|
||||
}
|
||||
|
||||
/** 6. SetHold2: change the second bucky bit */
|
||||
char SCA_KeyboardSensor::SetHold2_doc[] =
|
||||
const char SCA_KeyboardSensor::SetHold2_doc[] =
|
||||
"setHold2(keycode)\n"
|
||||
"\t- keycode: any code from GameKeys\n"
|
||||
"\tSet the first modifier to the key this sensor should listen to.\n" ;
|
||||
@@ -599,7 +599,7 @@ PyObject* SCA_KeyboardSensor::PySetHold2(PyObject* self, PyObject* args, PyObjec
|
||||
}
|
||||
|
||||
|
||||
char SCA_KeyboardSensor::GetPressedKeys_doc[] =
|
||||
const char SCA_KeyboardSensor::GetPressedKeys_doc[] =
|
||||
"getPressedKeys()\n"
|
||||
"\tGet a list of pressed keys that have either been pressed, or just released this frame.\n" ;
|
||||
|
||||
@@ -639,7 +639,7 @@ PyObject* SCA_KeyboardSensor::PyGetPressedKeys(PyObject* self, PyObject* args, P
|
||||
|
||||
|
||||
|
||||
char SCA_KeyboardSensor::GetCurrentlyPressedKeys_doc[] =
|
||||
const char SCA_KeyboardSensor::GetCurrentlyPressedKeys_doc[] =
|
||||
"getCurrentlyPressedKeys()\n"
|
||||
"\tGet a list of keys that are currently pressed.\n" ;
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ PyObject* SCA_MouseSensor::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* get x position ---------------------------------------------------------- */
|
||||
char SCA_MouseSensor::GetXPosition_doc[] =
|
||||
const char SCA_MouseSensor::GetXPosition_doc[] =
|
||||
"getXPosition\n"
|
||||
"\tReturns the x-coordinate of the mouse sensor, in frame coordinates.\n"
|
||||
"\tThe lower-left corner is the origin. The coordinate is given in\n"
|
||||
@@ -305,7 +305,7 @@ PyObject* SCA_MouseSensor::PyGetXPosition(PyObject* self,
|
||||
}
|
||||
|
||||
/* get y position ---------------------------------------------------------- */
|
||||
char SCA_MouseSensor::GetYPosition_doc[] =
|
||||
const char SCA_MouseSensor::GetYPosition_doc[] =
|
||||
"getYPosition\n"
|
||||
"\tReturns the y-coordinate of the mouse sensor, in frame coordinates.\n"
|
||||
"\tThe lower-left corner is the origin. The coordinate is given in\n"
|
||||
|
||||
@@ -257,7 +257,7 @@ PyObject* SCA_PropertyActuator::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* 1. setProperty */
|
||||
char SCA_PropertyActuator::SetProperty_doc[] =
|
||||
const char SCA_PropertyActuator::SetProperty_doc[] =
|
||||
"setProperty(name)\n"
|
||||
"\t- name: string\n"
|
||||
"\tSet the property on which to operate. If there is no property\n"
|
||||
@@ -283,7 +283,7 @@ PyObject* SCA_PropertyActuator::PySetProperty(PyObject* self, PyObject* args, Py
|
||||
}
|
||||
|
||||
/* 2. getProperty */
|
||||
char SCA_PropertyActuator::GetProperty_doc[] =
|
||||
const char SCA_PropertyActuator::GetProperty_doc[] =
|
||||
"getProperty(name)\n"
|
||||
"\tReturn the property on which the actuator operates.\n";
|
||||
PyObject* SCA_PropertyActuator::PyGetProperty(PyObject* self, PyObject* args, PyObject* kwds)
|
||||
@@ -292,7 +292,7 @@ PyObject* SCA_PropertyActuator::PyGetProperty(PyObject* self, PyObject* args, Py
|
||||
}
|
||||
|
||||
/* 3. setValue */
|
||||
char SCA_PropertyActuator::SetValue_doc[] =
|
||||
const char SCA_PropertyActuator::SetValue_doc[] =
|
||||
"setValue(value)\n"
|
||||
"\t- value: string\n"
|
||||
"\tSet the value with which the actuator operates. If the value\n"
|
||||
@@ -311,7 +311,7 @@ PyObject* SCA_PropertyActuator::PySetValue(PyObject* self, PyObject* args, PyObj
|
||||
}
|
||||
|
||||
/* 4. getValue */
|
||||
char SCA_PropertyActuator::GetValue_doc[] =
|
||||
const char SCA_PropertyActuator::GetValue_doc[] =
|
||||
"getValue()\n"
|
||||
"\tReturns the value with which the actuator operates.\n";
|
||||
PyObject* SCA_PropertyActuator::PyGetValue(PyObject* self, PyObject* args, PyObject* kwds)
|
||||
|
||||
@@ -347,7 +347,7 @@ PyObject* SCA_PropertySensor::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* 1. getType */
|
||||
char SCA_PropertySensor::GetType_doc[] =
|
||||
const char SCA_PropertySensor::GetType_doc[] =
|
||||
"getType()\n"
|
||||
"\tReturns the type of check this sensor performs.\n";
|
||||
PyObject* SCA_PropertySensor::PyGetType(PyObject* self, PyObject* args, PyObject* kwds)
|
||||
@@ -356,7 +356,7 @@ PyObject* SCA_PropertySensor::PyGetType(PyObject* self, PyObject* args, PyObject
|
||||
}
|
||||
|
||||
/* 2. setType */
|
||||
char SCA_PropertySensor::SetType_doc[] =
|
||||
const char SCA_PropertySensor::SetType_doc[] =
|
||||
"setType(type)\n"
|
||||
"\t- type: KX_PROPSENSOR_EQUAL, KX_PROPSENSOR_NOTEQUAL,\n"
|
||||
"\t KX_PROPSENSOR_INTERVAL, KX_PROPSENSOR_CHANGED,\n"
|
||||
@@ -379,7 +379,7 @@ PyObject* SCA_PropertySensor::PySetType(PyObject* self, PyObject* args, PyObject
|
||||
}
|
||||
|
||||
/* 3. getProperty */
|
||||
char SCA_PropertySensor::GetProperty_doc[] =
|
||||
const char SCA_PropertySensor::GetProperty_doc[] =
|
||||
"getProperty()\n"
|
||||
"\tReturn the property with which the sensor operates.\n";
|
||||
PyObject* SCA_PropertySensor::PyGetProperty(PyObject* self, PyObject* args, PyObject* kwds)
|
||||
@@ -388,7 +388,7 @@ PyObject* SCA_PropertySensor::PyGetProperty(PyObject* self, PyObject* args, PyOb
|
||||
}
|
||||
|
||||
/* 4. setProperty */
|
||||
char SCA_PropertySensor::SetProperty_doc[] =
|
||||
const char SCA_PropertySensor::SetProperty_doc[] =
|
||||
"setProperty(name)\n"
|
||||
"\t- name: string\n"
|
||||
"\tSets the property with which to operate. If there is no property\n"
|
||||
@@ -414,7 +414,7 @@ PyObject* SCA_PropertySensor::PySetProperty(PyObject* self, PyObject* args, PyOb
|
||||
}
|
||||
|
||||
/* 5. getValue */
|
||||
char SCA_PropertySensor::GetValue_doc[] =
|
||||
const char SCA_PropertySensor::GetValue_doc[] =
|
||||
"getValue()\n"
|
||||
"\tReturns the value with which the sensor operates.\n";
|
||||
PyObject* SCA_PropertySensor::PyGetValue(PyObject* self, PyObject* args, PyObject* kwds)
|
||||
@@ -423,7 +423,7 @@ PyObject* SCA_PropertySensor::PyGetValue(PyObject* self, PyObject* args, PyObjec
|
||||
}
|
||||
|
||||
/* 6. setValue */
|
||||
char SCA_PropertySensor::SetValue_doc[] =
|
||||
const char SCA_PropertySensor::SetValue_doc[] =
|
||||
"setValue(value)\n"
|
||||
"\t- value: string\n"
|
||||
"\tSet the value with which the sensor operates. If the value\n"
|
||||
|
||||
@@ -151,7 +151,7 @@ int SCA_PythonController::IsTriggered(class SCA_ISensor* sensor)
|
||||
}
|
||||
|
||||
#if 0
|
||||
static char* sPyGetCurrentController__doc__;
|
||||
static const char* sPyGetCurrentController__doc__;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ PyObject* SCA_PythonController::sPyGetCurrentController(PyObject* self)
|
||||
}
|
||||
|
||||
#if 0
|
||||
static char* sPyAddActiveActuator__doc__;
|
||||
static const char* sPyAddActiveActuator__doc__;
|
||||
#endif
|
||||
|
||||
PyObject* SCA_PythonController::sPyAddActiveActuator(
|
||||
@@ -199,9 +199,9 @@ PyObject* SCA_PythonController::sPyAddActiveActuator(
|
||||
}
|
||||
|
||||
|
||||
char* SCA_PythonController::sPyGetCurrentController__doc__ = "getCurrentController()";
|
||||
char* SCA_PythonController::sPyAddActiveActuator__doc__= "addActiveActuator(actuator,bool)";
|
||||
char SCA_PythonController::GetActuators_doc[] = "getActuator";
|
||||
const char* SCA_PythonController::sPyGetCurrentController__doc__ = "getCurrentController()";
|
||||
const char* SCA_PythonController::sPyAddActiveActuator__doc__= "addActiveActuator(actuator,bool)";
|
||||
const char SCA_PythonController::GetActuators_doc[] = "getActuator";
|
||||
|
||||
PyTypeObject SCA_PythonController::Type = {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
@@ -329,7 +329,7 @@ PyObject* SCA_PythonController::PyGetActuators(PyObject* self)
|
||||
return resultlist;
|
||||
}
|
||||
|
||||
char SCA_PythonController::GetSensor_doc[] =
|
||||
const char SCA_PythonController::GetSensor_doc[] =
|
||||
"GetSensor (char sensorname) return linked sensor that is named [sensorname]\n";
|
||||
PyObject*
|
||||
SCA_PythonController::PyGetSensor(PyObject* self, PyObject* value)
|
||||
@@ -359,7 +359,7 @@ SCA_PythonController::PyGetSensor(PyObject* self, PyObject* value)
|
||||
|
||||
|
||||
|
||||
char SCA_PythonController::GetActuator_doc[] =
|
||||
const char SCA_PythonController::GetActuator_doc[] =
|
||||
"GetActuator (char sensorname) return linked actuator that is named [actuatorname]\n";
|
||||
PyObject*
|
||||
SCA_PythonController::PyGetActuator(PyObject* self, PyObject* value)
|
||||
@@ -388,7 +388,7 @@ SCA_PythonController::PyGetActuator(PyObject* self, PyObject* value)
|
||||
}
|
||||
|
||||
|
||||
char SCA_PythonController::GetSensors_doc[] = "getSensors returns a list of all attached sensors";
|
||||
const char SCA_PythonController::GetSensors_doc[] = "getSensors returns a list of all attached sensors";
|
||||
PyObject*
|
||||
SCA_PythonController::PyGetSensors(PyObject* self)
|
||||
{
|
||||
|
||||
@@ -71,9 +71,9 @@ class SCA_PythonController : public SCA_IController
|
||||
{ m_triggeredSensors.push_back(sensor); }
|
||||
int IsTriggered(class SCA_ISensor* sensor);
|
||||
|
||||
static char* sPyGetCurrentController__doc__;
|
||||
static const char* sPyGetCurrentController__doc__;
|
||||
static PyObject* sPyGetCurrentController(PyObject* self);
|
||||
static char* sPyAddActiveActuator__doc__;
|
||||
static const char* sPyAddActiveActuator__doc__;
|
||||
static PyObject* sPyAddActiveActuator(PyObject* self,
|
||||
PyObject* args);
|
||||
virtual PyObject* _getattr(const STR_String& attr);
|
||||
|
||||
@@ -364,7 +364,7 @@ PyObject* SCA_RandomActuator::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* 1. setSeed */
|
||||
char SCA_RandomActuator::SetSeed_doc[] =
|
||||
const char SCA_RandomActuator::SetSeed_doc[] =
|
||||
"setSeed(seed)\n"
|
||||
"\t- seed: integer\n"
|
||||
"\tSet the initial seed of the generator. Equal seeds produce\n"
|
||||
@@ -381,7 +381,7 @@ PyObject* SCA_RandomActuator::PySetSeed(PyObject* self, PyObject* args, PyObject
|
||||
Py_Return;
|
||||
}
|
||||
/* 2. getSeed */
|
||||
char SCA_RandomActuator::GetSeed_doc[] =
|
||||
const char SCA_RandomActuator::GetSeed_doc[] =
|
||||
"getSeed()\n"
|
||||
"\tReturns the initial seed of the generator. Equal seeds produce\n"
|
||||
"\tequal series.\n";
|
||||
@@ -390,7 +390,7 @@ PyObject* SCA_RandomActuator::PyGetSeed(PyObject* self, PyObject* args, PyObject
|
||||
}
|
||||
|
||||
/* 4. getPara1 */
|
||||
char SCA_RandomActuator::GetPara1_doc[] =
|
||||
const char SCA_RandomActuator::GetPara1_doc[] =
|
||||
"getPara1()\n"
|
||||
"\tReturns the first parameter of the active distribution. Refer\n"
|
||||
"\tto the documentation of the generator types for the meaning\n"
|
||||
@@ -400,7 +400,7 @@ PyObject* SCA_RandomActuator::PyGetPara1(PyObject* self, PyObject* args, PyObjec
|
||||
}
|
||||
|
||||
/* 6. getPara2 */
|
||||
char SCA_RandomActuator::GetPara2_doc[] =
|
||||
const char SCA_RandomActuator::GetPara2_doc[] =
|
||||
"getPara2()\n"
|
||||
"\tReturns the first parameter of the active distribution. Refer\n"
|
||||
"\tto the documentation of the generator types for the meaning\n"
|
||||
@@ -410,7 +410,7 @@ PyObject* SCA_RandomActuator::PyGetPara2(PyObject* self, PyObject* args, PyObjec
|
||||
}
|
||||
|
||||
/* 8. getDistribution */
|
||||
char SCA_RandomActuator::GetDistribution_doc[] =
|
||||
const char SCA_RandomActuator::GetDistribution_doc[] =
|
||||
"getDistribution()\n"
|
||||
"\tReturns the type of the active distribution.\n";
|
||||
PyObject* SCA_RandomActuator::PyGetDistribution(PyObject* self, PyObject* args, PyObject* kwds) {
|
||||
@@ -418,7 +418,7 @@ PyObject* SCA_RandomActuator::PyGetDistribution(PyObject* self, PyObject* args,
|
||||
}
|
||||
|
||||
/* 9. setProperty */
|
||||
char SCA_RandomActuator::SetProperty_doc[] =
|
||||
const char SCA_RandomActuator::SetProperty_doc[] =
|
||||
"setProperty(name)\n"
|
||||
"\t- name: string\n"
|
||||
"\tSet the property to which the random value is assigned. If the \n"
|
||||
@@ -441,7 +441,7 @@ PyObject* SCA_RandomActuator::PySetProperty(PyObject* self, PyObject* args, PyOb
|
||||
Py_Return;
|
||||
}
|
||||
/* 10. getProperty */
|
||||
char SCA_RandomActuator::GetProperty_doc[] =
|
||||
const char SCA_RandomActuator::GetProperty_doc[] =
|
||||
"getProperty(name)\n"
|
||||
"\tReturn the property to which the random value is assigned. If the \n"
|
||||
"\tgenerator and property types do not match, the assignment is ignored.\n";
|
||||
@@ -450,7 +450,7 @@ PyObject* SCA_RandomActuator::PyGetProperty(PyObject* self, PyObject* args, PyOb
|
||||
}
|
||||
|
||||
/* 11. setBoolConst */
|
||||
char SCA_RandomActuator::SetBoolConst_doc[] =
|
||||
const char SCA_RandomActuator::SetBoolConst_doc[] =
|
||||
"setBoolConst(value)\n"
|
||||
"\t- value: 0 or 1\n"
|
||||
"\tSet this generator to produce a constant boolean value.\n";
|
||||
@@ -470,7 +470,7 @@ PyObject* SCA_RandomActuator::PySetBoolConst(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 12. setBoolUniform, */
|
||||
char SCA_RandomActuator::SetBoolUniform_doc[] =
|
||||
const char SCA_RandomActuator::SetBoolUniform_doc[] =
|
||||
"setBoolUniform()\n"
|
||||
"\tSet this generator to produce true and false, each with 50%% chance of occuring\n";
|
||||
PyObject* SCA_RandomActuator::PySetBoolUniform(PyObject* self,
|
||||
@@ -482,7 +482,7 @@ PyObject* SCA_RandomActuator::PySetBoolUniform(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 13. setBoolBernouilli, */
|
||||
char SCA_RandomActuator::SetBoolBernouilli_doc[] =
|
||||
const char SCA_RandomActuator::SetBoolBernouilli_doc[] =
|
||||
"setBoolBernouilli(value)\n"
|
||||
"\t- value: a float between 0 and 1\n"
|
||||
"\tReturn false value * 100%% of the time.\n";
|
||||
@@ -500,7 +500,7 @@ PyObject* SCA_RandomActuator::PySetBoolBernouilli(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 14. setIntConst,*/
|
||||
char SCA_RandomActuator::SetIntConst_doc[] =
|
||||
const char SCA_RandomActuator::SetIntConst_doc[] =
|
||||
"setIntConst(value)\n"
|
||||
"\t- value: integer\n"
|
||||
"\tAlways return value\n";
|
||||
@@ -518,7 +518,7 @@ PyObject* SCA_RandomActuator::PySetIntConst(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 15. setIntUniform,*/
|
||||
char SCA_RandomActuator::SetIntUniform_doc[] =
|
||||
const char SCA_RandomActuator::SetIntUniform_doc[] =
|
||||
"setIntUniform(lower_bound, upper_bound)\n"
|
||||
"\t- lower_bound: integer\n"
|
||||
"\t- upper_bound: integer\n"
|
||||
@@ -539,7 +539,7 @@ PyObject* SCA_RandomActuator::PySetIntUniform(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 16. setIntPoisson, */
|
||||
char SCA_RandomActuator::SetIntPoisson_doc[] =
|
||||
const char SCA_RandomActuator::SetIntPoisson_doc[] =
|
||||
"setIntPoisson(value)\n"
|
||||
"\t- value: float\n"
|
||||
"\tReturn a Poisson-distributed number. This performs a series\n"
|
||||
@@ -559,7 +559,7 @@ PyObject* SCA_RandomActuator::PySetIntPoisson(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 17. setFloatConst,*/
|
||||
char SCA_RandomActuator::SetFloatConst_doc[] =
|
||||
const char SCA_RandomActuator::SetFloatConst_doc[] =
|
||||
"setFloatConst(value)\n"
|
||||
"\t- value: float\n"
|
||||
"\tAlways return value\n";
|
||||
@@ -577,7 +577,7 @@ PyObject* SCA_RandomActuator::PySetFloatConst(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 18. setFloatUniform, */
|
||||
char SCA_RandomActuator::SetFloatUniform_doc[] =
|
||||
const char SCA_RandomActuator::SetFloatUniform_doc[] =
|
||||
"setFloatUniform(lower_bound, upper_bound)\n"
|
||||
"\t- lower_bound: float\n"
|
||||
"\t- upper_bound: float\n"
|
||||
@@ -598,7 +598,7 @@ PyObject* SCA_RandomActuator::PySetFloatUniform(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 19. setFloatNormal, */
|
||||
char SCA_RandomActuator::SetFloatNormal_doc[] =
|
||||
const char SCA_RandomActuator::SetFloatNormal_doc[] =
|
||||
"setFloatNormal(mean, standard_deviation)\n"
|
||||
"\t- mean: float\n"
|
||||
"\t- standard_deviation: float\n"
|
||||
@@ -619,7 +619,7 @@ PyObject* SCA_RandomActuator::PySetFloatNormal(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 20. setFloatNegativeExponential, */
|
||||
char SCA_RandomActuator::SetFloatNegativeExponential_doc[] =
|
||||
const char SCA_RandomActuator::SetFloatNegativeExponential_doc[] =
|
||||
"setFloatNegativeExponential(half_life)\n"
|
||||
"\t- half_life: float\n"
|
||||
"\tReturn negative-exponentially distributed numbers. The half-life 'time'\n"
|
||||
|
||||
@@ -165,7 +165,7 @@ PyObject* SCA_RandomSensor::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* 1. setSeed */
|
||||
char SCA_RandomSensor::SetSeed_doc[] =
|
||||
const char SCA_RandomSensor::SetSeed_doc[] =
|
||||
"setSeed(seed)\n"
|
||||
"\t- seed: integer\n"
|
||||
"\tSet the initial seed of the generator. Equal seeds produce\n"
|
||||
@@ -183,7 +183,7 @@ PyObject* SCA_RandomSensor::PySetSeed(PyObject* self, PyObject* args, PyObject*
|
||||
}
|
||||
|
||||
/* 2. getSeed */
|
||||
char SCA_RandomSensor::GetSeed_doc[] =
|
||||
const char SCA_RandomSensor::GetSeed_doc[] =
|
||||
"getSeed()\n"
|
||||
"\tReturns the initial seed of the generator. Equal seeds produce\n"
|
||||
"\tequal series.\n";
|
||||
@@ -192,7 +192,7 @@ PyObject* SCA_RandomSensor::PyGetSeed(PyObject* self, PyObject* args, PyObject*
|
||||
}
|
||||
|
||||
/* 3. getLastDraw */
|
||||
char SCA_RandomSensor::GetLastDraw_doc[] =
|
||||
const char SCA_RandomSensor::GetLastDraw_doc[] =
|
||||
"getLastDraw()\n"
|
||||
"\tReturn the last value that was drawn.\n";
|
||||
PyObject* SCA_RandomSensor::PyGetLastDraw(PyObject* self, PyObject* args, PyObject* kwds) {
|
||||
|
||||
@@ -45,7 +45,7 @@ GPC_RawImage::GPC_RawImage()
|
||||
|
||||
|
||||
bool GPC_RawImage::Load(
|
||||
char *srcName,
|
||||
const char *srcName,
|
||||
int destWidth, int destHeight,
|
||||
TImageAlignment alignment, int offsetX, int offsetY)
|
||||
{
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
* @param offsetX Amount of horzontal offset applied to the resource image.
|
||||
* @param offsetY Amount of vertical offset applied to the resource image.
|
||||
*/
|
||||
virtual bool Load(char *srcName,
|
||||
virtual bool Load(const char *srcName,
|
||||
int destWidth, int destHeight,
|
||||
TImageAlignment alignment = alignTopLeft,
|
||||
int offsetX = 0, int offsetY = 0);
|
||||
|
||||
@@ -150,9 +150,9 @@ static BOOL scr_saver_init(int argc, char **argv)
|
||||
|
||||
#endif /* WIN32 */
|
||||
|
||||
void usage(char* program)
|
||||
void usage(const char* program)
|
||||
{
|
||||
char * consoleoption;
|
||||
const char * consoleoption;
|
||||
#ifdef _WIN32
|
||||
consoleoption = "-c ";
|
||||
#else
|
||||
|
||||
@@ -881,7 +881,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setSampler, "setSampler(name, index)" )
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
int index=-1;
|
||||
if(PyArg_ParseTuple(args, "si", &uniform, &index))
|
||||
{
|
||||
@@ -922,7 +922,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform1f, "setUniform1f(name, fx)" )
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
float value=0;
|
||||
if(PyArg_ParseTuple(args, "sf", &uniform, &value ))
|
||||
{
|
||||
@@ -946,7 +946,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform2f , "setUniform2f(name, fx, fy)")
|
||||
if(mError) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
float array[2]={ 0,0 };
|
||||
if(PyArg_ParseTuple(args, "sff", &uniform, &array[0],&array[1] ))
|
||||
{
|
||||
@@ -970,7 +970,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform3f, "setUniform3f(name, fx,fy,fz) ")
|
||||
if(mError) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
float array[3]={0,0,0};
|
||||
if(PyArg_ParseTuple(args, "sfff", &uniform, &array[0],&array[1],&array[2]))
|
||||
{
|
||||
@@ -995,7 +995,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform4f, "setUniform4f(name, fx,fy,fz, fw) "
|
||||
if(mError) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
float array[4]={0,0,0,0};
|
||||
if(PyArg_ParseTuple(args, "sffff", &uniform, &array[0],&array[1],&array[2], &array[3]))
|
||||
{
|
||||
@@ -1019,7 +1019,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform1i, "setUniform1i(name, ix)" )
|
||||
if(mError) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
int value=0;
|
||||
if(PyArg_ParseTuple(args, "si", &uniform, &value ))
|
||||
{
|
||||
@@ -1043,7 +1043,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform2i , "setUniform2i(name, ix, iy)")
|
||||
if(mError) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
int array[2]={ 0,0 };
|
||||
if(PyArg_ParseTuple(args, "sii", &uniform, &array[0],&array[1] ))
|
||||
{
|
||||
@@ -1068,7 +1068,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform3i, "setUniform3i(name, ix,iy,iz) ")
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
int array[3]={0,0,0};
|
||||
if(PyArg_ParseTuple(args, "siii", &uniform, &array[0],&array[1],&array[2]))
|
||||
{
|
||||
@@ -1091,7 +1091,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform4i, "setUniform4i(name, ix,iy,iz, iw) "
|
||||
if(mError) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
int array[4]={0,0,0, 0};
|
||||
if(PyArg_ParseTuple(args, "siiii", &uniform, &array[0],&array[1],&array[2], &array[3] ))
|
||||
{
|
||||
@@ -1114,7 +1114,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniformfv , "setUniformfv( float (list2 or lis
|
||||
if(mError) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
char*uniform = "";
|
||||
const char *uniform = "";
|
||||
PyObject *listPtr =0;
|
||||
float array_data[4] = {0.f,0.f,0.f,0.f};
|
||||
|
||||
@@ -1183,7 +1183,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniformiv, "setUniformiv( int (list2 or list3
|
||||
if(mError) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
char*uniform = "";
|
||||
const char *uniform = "";
|
||||
PyObject *listPtr =0;
|
||||
int array_data[4] = {0,0,0,0};
|
||||
|
||||
@@ -1263,7 +1263,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniformMatrix4,
|
||||
0,0,0,1
|
||||
};
|
||||
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
PyObject *matrix=0;
|
||||
int transp=1; // MT_ is row major so transpose by default....
|
||||
if(PyArg_ParseTuple(args, "sO|i",&uniform, &matrix,&transp))
|
||||
@@ -1304,7 +1304,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniformMatrix3,
|
||||
0,0,1,
|
||||
};
|
||||
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
PyObject *matrix=0;
|
||||
int transp=1; // MT_ is row major so transpose by default....
|
||||
if(PyArg_ParseTuple(args, "sO|i",&uniform, &matrix,&transp))
|
||||
@@ -1358,7 +1358,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniformDef, "setUniformDef(name, enum)" )
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
char *uniform="";
|
||||
const char *uniform="";
|
||||
int nloc=0;
|
||||
if(PyArg_ParseTuple(args, "si",&uniform, &nloc))
|
||||
{
|
||||
|
||||
@@ -102,8 +102,8 @@ private:
|
||||
bool mUse; // ...
|
||||
//BL_Sampler mSampler[MAXTEX]; // Number of samplers
|
||||
int mAttr; // Tangent attribute
|
||||
char* vertProg; // Vertex program string
|
||||
char* fragProg; // Fragment program string
|
||||
const char* vertProg; // Vertex program string
|
||||
const char* fragProg; // Fragment program string
|
||||
bool mError; // ...
|
||||
bool mDirty; //
|
||||
|
||||
|
||||
@@ -218,7 +218,7 @@ PyObject* KX_NetworkMessageSensor::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
// 1. Set the message subject that this sensor listens for
|
||||
char KX_NetworkMessageSensor::SetSubjectFilterText_doc[] =
|
||||
const char KX_NetworkMessageSensor::SetSubjectFilterText_doc[] =
|
||||
"\tsetSubjectFilterText(value)\n"
|
||||
"\tChange the message subject text that this sensor is listening to.\n";
|
||||
|
||||
@@ -235,7 +235,7 @@ PyObject* KX_NetworkMessageSensor::PySetSubjectFilterText( PyObject* self, PyObj
|
||||
}
|
||||
|
||||
// 2. Get the number of messages received since the last frame
|
||||
char KX_NetworkMessageSensor::GetFrameMessageCount_doc[] =
|
||||
const char KX_NetworkMessageSensor::GetFrameMessageCount_doc[] =
|
||||
"\tgetFrameMessageCount()\n"
|
||||
"\tGet the number of messages received since the last frame.\n";
|
||||
|
||||
@@ -245,7 +245,7 @@ PyObject* KX_NetworkMessageSensor::PyGetFrameMessageCount( PyObject* )
|
||||
}
|
||||
|
||||
// 3. Get the message bodies
|
||||
char KX_NetworkMessageSensor::GetBodies_doc[] =
|
||||
const char KX_NetworkMessageSensor::GetBodies_doc[] =
|
||||
"\tgetBodies()\n"
|
||||
"\tGet the list of message bodies.\n";
|
||||
|
||||
@@ -259,7 +259,7 @@ PyObject* KX_NetworkMessageSensor::PyGetBodies( PyObject* )
|
||||
}
|
||||
|
||||
// 4. Get the message subject: field of the message sensor
|
||||
char KX_NetworkMessageSensor::GetSubject_doc[] =
|
||||
const char KX_NetworkMessageSensor::GetSubject_doc[] =
|
||||
"\tgetSubject()\n"
|
||||
"\tGet the subject: field of the message sensor.\n";
|
||||
|
||||
@@ -269,7 +269,7 @@ PyObject* KX_NetworkMessageSensor::PyGetSubject( PyObject* )
|
||||
}
|
||||
|
||||
// 5. Get the message subjects
|
||||
char KX_NetworkMessageSensor::GetSubjects_doc[] =
|
||||
const char KX_NetworkMessageSensor::GetSubjects_doc[] =
|
||||
"\tgetSubjects()\n"
|
||||
"\tGet list of message subjects.\n";
|
||||
|
||||
|
||||
@@ -414,7 +414,7 @@ PyObject* KX_CameraActuator::_getattr(const STR_String& attr) {
|
||||
_getattr_up(SCA_IActuator);
|
||||
}
|
||||
/* get obj ---------------------------------------------------------- */
|
||||
char KX_CameraActuator::GetObject_doc[] =
|
||||
const char KX_CameraActuator::GetObject_doc[] =
|
||||
"getObject(name_only = 1)\n"
|
||||
"name_only - optional arg, when true will return the KX_GameObject rather then its name\n"
|
||||
"\tReturns the object this sensor reacts to.\n";
|
||||
@@ -433,7 +433,7 @@ PyObject* KX_CameraActuator::PyGetObject(PyObject* self, PyObject* args)
|
||||
return m_ob->AddRef();
|
||||
}
|
||||
/* set obj ---------------------------------------------------------- */
|
||||
char KX_CameraActuator::SetObject_doc[] =
|
||||
const char KX_CameraActuator::SetObject_doc[] =
|
||||
"setObject(object)\n"
|
||||
"\t- object: KX_GameObject, string or None\n"
|
||||
"\tSets the object this sensor reacts to.\n";
|
||||
@@ -455,7 +455,7 @@ PyObject* KX_CameraActuator::PySetObject(PyObject* self, PyObject* value)
|
||||
}
|
||||
|
||||
/* get min ---------------------------------------------------------- */
|
||||
char KX_CameraActuator::GetMin_doc[] =
|
||||
const char KX_CameraActuator::GetMin_doc[] =
|
||||
"getMin\n"
|
||||
"\tReturns the minimum value set in the Min: field.\n";
|
||||
PyObject* KX_CameraActuator::PyGetMin(PyObject* self,
|
||||
@@ -465,7 +465,7 @@ PyObject* KX_CameraActuator::PyGetMin(PyObject* self,
|
||||
return PyFloat_FromDouble(m_minHeight);
|
||||
}
|
||||
/* set min ---------------------------------------------------------- */
|
||||
char KX_CameraActuator::SetMin_doc[] =
|
||||
const char KX_CameraActuator::SetMin_doc[] =
|
||||
"setMin\n"
|
||||
"\tSets the minimum value.\n";
|
||||
PyObject* KX_CameraActuator::PySetMin(PyObject* self,
|
||||
@@ -481,7 +481,7 @@ PyObject* KX_CameraActuator::PySetMin(PyObject* self,
|
||||
return NULL;
|
||||
}
|
||||
/* get min ---------------------------------------------------------- */
|
||||
char KX_CameraActuator::GetMax_doc[] =
|
||||
const char KX_CameraActuator::GetMax_doc[] =
|
||||
"getMax\n"
|
||||
"\tReturns the maximum value set in the Max: field.\n";
|
||||
PyObject* KX_CameraActuator::PyGetMax(PyObject* self,
|
||||
@@ -491,7 +491,7 @@ PyObject* KX_CameraActuator::PyGetMax(PyObject* self,
|
||||
return PyFloat_FromDouble(m_maxHeight);
|
||||
}
|
||||
/* set min ---------------------------------------------------------- */
|
||||
char KX_CameraActuator::SetMax_doc[] =
|
||||
const char KX_CameraActuator::SetMax_doc[] =
|
||||
"setMax\n"
|
||||
"\tSets the maximum value.\n";
|
||||
PyObject* KX_CameraActuator::PySetMax(PyObject* self,
|
||||
@@ -507,7 +507,7 @@ PyObject* KX_CameraActuator::PySetMax(PyObject* self,
|
||||
return NULL;
|
||||
}
|
||||
/* get height ---------------------------------------------------------- */
|
||||
char KX_CameraActuator::GetHeight_doc[] =
|
||||
const char KX_CameraActuator::GetHeight_doc[] =
|
||||
"getHeight\n"
|
||||
"\tReturns the height value set in the height: field.\n";
|
||||
PyObject* KX_CameraActuator::PyGetHeight(PyObject* self,
|
||||
@@ -517,7 +517,7 @@ PyObject* KX_CameraActuator::PyGetHeight(PyObject* self,
|
||||
return PyFloat_FromDouble(m_height);
|
||||
}
|
||||
/* set height ---------------------------------------------------------- */
|
||||
char KX_CameraActuator::SetHeight_doc[] =
|
||||
const char KX_CameraActuator::SetHeight_doc[] =
|
||||
"setHeight\n"
|
||||
"\tSets the height value.\n";
|
||||
PyObject* KX_CameraActuator::PySetHeight(PyObject* self,
|
||||
@@ -533,7 +533,7 @@ PyObject* KX_CameraActuator::PySetHeight(PyObject* self,
|
||||
return NULL;
|
||||
}
|
||||
/* set XY ---------------------------------------------------------- */
|
||||
char KX_CameraActuator::SetXY_doc[] =
|
||||
const char KX_CameraActuator::SetXY_doc[] =
|
||||
"setXY\n"
|
||||
"\tSets axis the camera tries to get behind.\n"
|
||||
"\t1=x, 0=y\n";
|
||||
@@ -551,7 +551,7 @@ PyObject* KX_CameraActuator::PySetXY(PyObject* self,
|
||||
}
|
||||
|
||||
/* get XY -------------------------------------------------------------*/
|
||||
char KX_CameraActuator::GetXY_doc[] =
|
||||
const char KX_CameraActuator::GetXY_doc[] =
|
||||
"getXY\n"
|
||||
"\tGets the axis the camera tries to get behind.\n"
|
||||
"\tTrue = X, False = Y\n";
|
||||
|
||||
@@ -479,7 +479,7 @@ PyObject* KX_ConstraintActuator::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* 2. setDamp */
|
||||
char KX_ConstraintActuator::SetDamp_doc[] =
|
||||
const char KX_ConstraintActuator::SetDamp_doc[] =
|
||||
"setDamp(duration)\n"
|
||||
"\t- duration: integer\n"
|
||||
"\tSets the time constant of the orientation and distance constraint.\n"
|
||||
@@ -498,7 +498,7 @@ PyObject* KX_ConstraintActuator::PySetDamp(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 3. getDamp */
|
||||
char KX_ConstraintActuator::GetDamp_doc[] =
|
||||
const char KX_ConstraintActuator::GetDamp_doc[] =
|
||||
"getDamp()\n"
|
||||
"\tReturns the damping parameter.\n";
|
||||
PyObject* KX_ConstraintActuator::PyGetDamp(PyObject* self){
|
||||
@@ -506,7 +506,7 @@ PyObject* KX_ConstraintActuator::PyGetDamp(PyObject* self){
|
||||
}
|
||||
|
||||
/* 2. setRotDamp */
|
||||
char KX_ConstraintActuator::SetRotDamp_doc[] =
|
||||
const char KX_ConstraintActuator::SetRotDamp_doc[] =
|
||||
"setRotDamp(duration)\n"
|
||||
"\t- duration: integer\n"
|
||||
"\tSets the time constant of the orientation constraint.\n"
|
||||
@@ -525,7 +525,7 @@ PyObject* KX_ConstraintActuator::PySetRotDamp(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 3. getRotDamp */
|
||||
char KX_ConstraintActuator::GetRotDamp_doc[] =
|
||||
const char KX_ConstraintActuator::GetRotDamp_doc[] =
|
||||
"getRotDamp()\n"
|
||||
"\tReturns the damping time for application of the constraint.\n";
|
||||
PyObject* KX_ConstraintActuator::PyGetRotDamp(PyObject* self){
|
||||
@@ -533,7 +533,7 @@ PyObject* KX_ConstraintActuator::PyGetRotDamp(PyObject* self){
|
||||
}
|
||||
|
||||
/* 2. setDirection */
|
||||
char KX_ConstraintActuator::SetDirection_doc[] =
|
||||
const char KX_ConstraintActuator::SetDirection_doc[] =
|
||||
"setDirection(vector)\n"
|
||||
"\t- vector: 3-tuple\n"
|
||||
"\tSets the reference direction in world coordinate for the orientation constraint.\n";
|
||||
@@ -560,7 +560,7 @@ PyObject* KX_ConstraintActuator::PySetDirection(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 3. getDirection */
|
||||
char KX_ConstraintActuator::GetDirection_doc[] =
|
||||
const char KX_ConstraintActuator::GetDirection_doc[] =
|
||||
"getDirection()\n"
|
||||
"\tReturns the reference direction of the orientation constraint as a 3-tuple.\n";
|
||||
PyObject* KX_ConstraintActuator::PyGetDirection(PyObject* self){
|
||||
@@ -573,7 +573,7 @@ PyObject* KX_ConstraintActuator::PyGetDirection(PyObject* self){
|
||||
}
|
||||
|
||||
/* 2. setOption */
|
||||
char KX_ConstraintActuator::SetOption_doc[] =
|
||||
const char KX_ConstraintActuator::SetOption_doc[] =
|
||||
"setOption(option)\n"
|
||||
"\t- option: integer\n"
|
||||
"\tSets several options of the distance constraint.\n"
|
||||
@@ -595,7 +595,7 @@ PyObject* KX_ConstraintActuator::PySetOption(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 3. getOption */
|
||||
char KX_ConstraintActuator::GetOption_doc[] =
|
||||
const char KX_ConstraintActuator::GetOption_doc[] =
|
||||
"getOption()\n"
|
||||
"\tReturns the option parameter.\n";
|
||||
PyObject* KX_ConstraintActuator::PyGetOption(PyObject* self){
|
||||
@@ -603,7 +603,7 @@ PyObject* KX_ConstraintActuator::PyGetOption(PyObject* self){
|
||||
}
|
||||
|
||||
/* 2. setTime */
|
||||
char KX_ConstraintActuator::SetTime_doc[] =
|
||||
const char KX_ConstraintActuator::SetTime_doc[] =
|
||||
"setTime(duration)\n"
|
||||
"\t- duration: integer\n"
|
||||
"\tSets the activation time of the actuator.\n"
|
||||
@@ -624,7 +624,7 @@ PyObject* KX_ConstraintActuator::PySetTime(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 3. getTime */
|
||||
char KX_ConstraintActuator::GetTime_doc[] =
|
||||
const char KX_ConstraintActuator::GetTime_doc[] =
|
||||
"getTime()\n"
|
||||
"\tReturns the time parameter.\n";
|
||||
PyObject* KX_ConstraintActuator::PyGetTime(PyObject* self){
|
||||
@@ -632,7 +632,7 @@ PyObject* KX_ConstraintActuator::PyGetTime(PyObject* self){
|
||||
}
|
||||
|
||||
/* 2. setProperty */
|
||||
char KX_ConstraintActuator::SetProperty_doc[] =
|
||||
const char KX_ConstraintActuator::SetProperty_doc[] =
|
||||
"setProperty(property)\n"
|
||||
"\t- property: string\n"
|
||||
"\tSets the name of the property or material for the ray detection of the distance constraint.\n"
|
||||
@@ -654,7 +654,7 @@ PyObject* KX_ConstraintActuator::PySetProperty(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 3. getProperty */
|
||||
char KX_ConstraintActuator::GetProperty_doc[] =
|
||||
const char KX_ConstraintActuator::GetProperty_doc[] =
|
||||
"getProperty()\n"
|
||||
"\tReturns the property parameter.\n";
|
||||
PyObject* KX_ConstraintActuator::PyGetProperty(PyObject* self){
|
||||
@@ -662,12 +662,12 @@ PyObject* KX_ConstraintActuator::PyGetProperty(PyObject* self){
|
||||
}
|
||||
|
||||
/* 4. setDistance */
|
||||
char KX_ConstraintActuator::SetDistance_doc[] =
|
||||
const char KX_ConstraintActuator::SetDistance_doc[] =
|
||||
"setDistance(distance)\n"
|
||||
"\t- distance: float\n"
|
||||
"\tSets the target distance in distance constraint\n";
|
||||
/* 4. setMin */
|
||||
char KX_ConstraintActuator::SetMin_doc[] =
|
||||
const char KX_ConstraintActuator::SetMin_doc[] =
|
||||
"setMin(lower_bound)\n"
|
||||
"\t- lower_bound: float\n"
|
||||
"\tSets the lower value of the interval to which the value\n"
|
||||
@@ -694,11 +694,11 @@ PyObject* KX_ConstraintActuator::PySetMin(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 5. getDistance */
|
||||
char KX_ConstraintActuator::GetDistance_doc[] =
|
||||
const char KX_ConstraintActuator::GetDistance_doc[] =
|
||||
"getDistance()\n"
|
||||
"\tReturns the distance parameter \n";
|
||||
/* 5. getMin */
|
||||
char KX_ConstraintActuator::GetMin_doc[] =
|
||||
const char KX_ConstraintActuator::GetMin_doc[] =
|
||||
"getMin()\n"
|
||||
"\tReturns the lower value of the interval to which the value\n"
|
||||
"\tis clipped.\n";
|
||||
@@ -707,12 +707,12 @@ PyObject* KX_ConstraintActuator::PyGetMin(PyObject* self) {
|
||||
}
|
||||
|
||||
/* 6. setRayLength */
|
||||
char KX_ConstraintActuator::SetRayLength_doc[] =
|
||||
const char KX_ConstraintActuator::SetRayLength_doc[] =
|
||||
"setRayLength(length)\n"
|
||||
"\t- length: float\n"
|
||||
"\tSets the maximum ray length of the distance constraint\n";
|
||||
/* 6. setMax */
|
||||
char KX_ConstraintActuator::SetMax_doc[] =
|
||||
const char KX_ConstraintActuator::SetMax_doc[] =
|
||||
"setMax(upper_bound)\n"
|
||||
"\t- upper_bound: float\n"
|
||||
"\tSets the upper value of the interval to which the value\n"
|
||||
@@ -739,11 +739,11 @@ PyObject* KX_ConstraintActuator::PySetMax(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 7. getRayLength */
|
||||
char KX_ConstraintActuator::GetRayLength_doc[] =
|
||||
const char KX_ConstraintActuator::GetRayLength_doc[] =
|
||||
"getRayLength()\n"
|
||||
"\tReturns the length of the ray\n";
|
||||
/* 7. getMax */
|
||||
char KX_ConstraintActuator::GetMax_doc[] =
|
||||
const char KX_ConstraintActuator::GetMax_doc[] =
|
||||
"getMax()\n"
|
||||
"\tReturns the upper value of the interval to which the value\n"
|
||||
"\tis clipped.\n";
|
||||
@@ -754,7 +754,7 @@ PyObject* KX_ConstraintActuator::PyGetMax(PyObject* self) {
|
||||
|
||||
/* This setter/getter probably for the constraint type */
|
||||
/* 8. setLimit */
|
||||
char KX_ConstraintActuator::SetLimit_doc[] =
|
||||
const char KX_ConstraintActuator::SetLimit_doc[] =
|
||||
"setLimit(type)\n"
|
||||
"\t- type: integer\n"
|
||||
"\t 1 : LocX\n"
|
||||
@@ -783,7 +783,7 @@ PyObject* KX_ConstraintActuator::PySetLimit(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 9. getLimit */
|
||||
char KX_ConstraintActuator::GetLimit_doc[] =
|
||||
const char KX_ConstraintActuator::GetLimit_doc[] =
|
||||
"getLimit()\n"
|
||||
"\tReturns the type of constraint.\n";
|
||||
PyObject* KX_ConstraintActuator::PyGetLimit(PyObject* self) {
|
||||
|
||||
@@ -147,12 +147,12 @@ protected:
|
||||
KX_PYMETHOD_DOC_NOARGS(KX_ConstraintActuator,GetProperty);
|
||||
KX_PYMETHOD_DOC(KX_ConstraintActuator,SetMin);
|
||||
KX_PYMETHOD_DOC_NOARGS(KX_ConstraintActuator,GetMin);
|
||||
static char SetDistance_doc[];
|
||||
static char GetDistance_doc[];
|
||||
static const char SetDistance_doc[];
|
||||
static const char GetDistance_doc[];
|
||||
KX_PYMETHOD_DOC(KX_ConstraintActuator,SetMax);
|
||||
KX_PYMETHOD_DOC_NOARGS(KX_ConstraintActuator,GetMax);
|
||||
static char SetRayLength_doc[];
|
||||
static char GetRayLength_doc[];
|
||||
static const char SetRayLength_doc[];
|
||||
static const char GetRayLength_doc[];
|
||||
KX_PYMETHOD_DOC(KX_ConstraintActuator,SetLimit);
|
||||
KX_PYMETHOD_DOC_NOARGS(KX_ConstraintActuator,GetLimit);
|
||||
};
|
||||
|
||||
@@ -247,7 +247,7 @@ PyMethodDef KX_GameActuator::Methods[] =
|
||||
};
|
||||
|
||||
/* getFile */
|
||||
char KX_GameActuator::GetFile_doc[] =
|
||||
const char KX_GameActuator::GetFile_doc[] =
|
||||
"getFile()\n"
|
||||
"get the name of the file to start.\n";
|
||||
PyObject* KX_GameActuator::PyGetFile(PyObject* self, PyObject* args, PyObject* kwds)
|
||||
@@ -256,7 +256,7 @@ PyObject* KX_GameActuator::PyGetFile(PyObject* self, PyObject* args, PyObject* k
|
||||
}
|
||||
|
||||
/* setFile */
|
||||
char KX_GameActuator::SetFile_doc[] =
|
||||
const char KX_GameActuator::SetFile_doc[] =
|
||||
"setFile(name)\n"
|
||||
"set the name of the file to start.\n";
|
||||
PyObject* KX_GameActuator::PySetFile(PyObject* self, PyObject* args, PyObject* kwds)
|
||||
|
||||
@@ -462,7 +462,7 @@ PyObject* KX_IpoActuator::_getattr(const STR_String& attr) {
|
||||
|
||||
|
||||
/* set --------------------------------------------------------------------- */
|
||||
char KX_IpoActuator::Set_doc[] =
|
||||
const char KX_IpoActuator::Set_doc[] =
|
||||
"set(type, startframe, endframe, mode?)\n"
|
||||
"\t - type: Play, PingPong, Flipper, LoopStop, LoopEnd or FromProp (string)\n"
|
||||
"\t - startframe: first frame to use (int)\n"
|
||||
@@ -505,7 +505,7 @@ PyObject* KX_IpoActuator::PySet(PyObject* self,
|
||||
}
|
||||
|
||||
/* set property ----------------------------------------------------------- */
|
||||
char KX_IpoActuator::SetProperty_doc[] =
|
||||
const char KX_IpoActuator::SetProperty_doc[] =
|
||||
"setProperty(propname)\n"
|
||||
"\t - propname: name of the property (string)\n"
|
||||
"\tSet the property to be used in FromProp mode.\n";
|
||||
@@ -525,7 +525,7 @@ PyObject* KX_IpoActuator::PySetProperty(PyObject* self,
|
||||
}
|
||||
|
||||
/* 4. setStart: */
|
||||
char KX_IpoActuator::SetStart_doc[] =
|
||||
const char KX_IpoActuator::SetStart_doc[] =
|
||||
"setStart(frame)\n"
|
||||
"\t - frame: first frame to use (int)\n"
|
||||
"\tSet the frame from which the ipo starts playing.\n";
|
||||
@@ -542,7 +542,7 @@ PyObject* KX_IpoActuator::PySetStart(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 5. getStart: */
|
||||
char KX_IpoActuator::GetStart_doc[] =
|
||||
const char KX_IpoActuator::GetStart_doc[] =
|
||||
"getStart()\n"
|
||||
"\tReturns the frame from which the ipo starts playing.\n";
|
||||
PyObject* KX_IpoActuator::PyGetStart(PyObject* self) {
|
||||
@@ -550,7 +550,7 @@ PyObject* KX_IpoActuator::PyGetStart(PyObject* self) {
|
||||
}
|
||||
|
||||
/* 6. setEnd: */
|
||||
char KX_IpoActuator::SetEnd_doc[] =
|
||||
const char KX_IpoActuator::SetEnd_doc[] =
|
||||
"setEnd(frame)\n"
|
||||
"\t - frame: last frame to use (int)\n"
|
||||
"\tSet the frame at which the ipo stops playing.\n";
|
||||
@@ -567,7 +567,7 @@ PyObject* KX_IpoActuator::PySetEnd(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 7. getEnd: */
|
||||
char KX_IpoActuator::GetEnd_doc[] =
|
||||
const char KX_IpoActuator::GetEnd_doc[] =
|
||||
"getEnd()\n"
|
||||
"\tReturns the frame at which the ipo stops playing.\n";
|
||||
PyObject* KX_IpoActuator::PyGetEnd(PyObject* self) {
|
||||
@@ -575,7 +575,7 @@ PyObject* KX_IpoActuator::PyGetEnd(PyObject* self) {
|
||||
}
|
||||
|
||||
/* 6. setIpoAsForce: */
|
||||
char KX_IpoActuator::SetIpoAsForce_doc[] =
|
||||
const char KX_IpoActuator::SetIpoAsForce_doc[] =
|
||||
"setIpoAsForce(force?)\n"
|
||||
"\t - force? : interpret this ipo as a force? (KX_TRUE, KX_FALSE)\n"
|
||||
"\tSet whether to interpret the ipo as a force rather than a displacement.\n";
|
||||
@@ -595,7 +595,7 @@ PyObject* KX_IpoActuator::PySetIpoAsForce(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 7. getIpoAsForce: */
|
||||
char KX_IpoActuator::GetIpoAsForce_doc[] =
|
||||
const char KX_IpoActuator::GetIpoAsForce_doc[] =
|
||||
"getIpoAsForce()\n"
|
||||
"\tReturns whether to interpret the ipo as a force rather than a displacement.\n";
|
||||
PyObject* KX_IpoActuator::PyGetIpoAsForce(PyObject* self) {
|
||||
@@ -603,7 +603,7 @@ PyObject* KX_IpoActuator::PyGetIpoAsForce(PyObject* self) {
|
||||
}
|
||||
|
||||
/* 6. setIpoAsForce: */
|
||||
char KX_IpoActuator::SetIpoAdd_doc[] =
|
||||
const char KX_IpoActuator::SetIpoAdd_doc[] =
|
||||
"setIpoAdd(add?)\n"
|
||||
"\t - add? : add flag (KX_TRUE, KX_FALSE)\n"
|
||||
"\tSet whether to interpret the ipo as additive rather than absolute.\n";
|
||||
@@ -623,7 +623,7 @@ PyObject* KX_IpoActuator::PySetIpoAdd(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 7. getIpoAsForce: */
|
||||
char KX_IpoActuator::GetIpoAdd_doc[] =
|
||||
const char KX_IpoActuator::GetIpoAdd_doc[] =
|
||||
"getIpoAsAdd()\n"
|
||||
"\tReturns whether to interpret the ipo as additive rather than absolute.\n";
|
||||
PyObject* KX_IpoActuator::PyGetIpoAdd(PyObject* self) {
|
||||
@@ -631,7 +631,7 @@ PyObject* KX_IpoActuator::PyGetIpoAdd(PyObject* self) {
|
||||
}
|
||||
|
||||
/* 8. setType: */
|
||||
char KX_IpoActuator::SetType_doc[] =
|
||||
const char KX_IpoActuator::SetType_doc[] =
|
||||
"setType(mode)\n"
|
||||
"\t - mode: Play, PingPong, Flipper, LoopStop, LoopEnd or FromProp (string)\n"
|
||||
"\tSet the operation mode of the actuator.\n";
|
||||
@@ -652,7 +652,7 @@ PyObject* KX_IpoActuator::PySetType(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 9. getType: */
|
||||
char KX_IpoActuator::GetType_doc[] =
|
||||
const char KX_IpoActuator::GetType_doc[] =
|
||||
"getType()\n"
|
||||
"\tReturns the operation mode of the actuator.\n";
|
||||
PyObject* KX_IpoActuator::PyGetType(PyObject* self) {
|
||||
@@ -660,7 +660,7 @@ PyObject* KX_IpoActuator::PyGetType(PyObject* self) {
|
||||
}
|
||||
|
||||
/* 10. setForceIpoActsLocal: */
|
||||
char KX_IpoActuator::SetForceIpoActsLocal_doc[] =
|
||||
const char KX_IpoActuator::SetForceIpoActsLocal_doc[] =
|
||||
"setForceIpoActsLocal(local?)\n"
|
||||
"\t - local? : Apply the ipo-as-force in the object's local\n"
|
||||
"\t coordinates? (KX_TRUE, KX_FALSE)\n"
|
||||
@@ -680,7 +680,7 @@ PyObject* KX_IpoActuator::PySetForceIpoActsLocal(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 11. getForceIpoActsLocal: */
|
||||
char KX_IpoActuator::GetForceIpoActsLocal_doc[] =
|
||||
const char KX_IpoActuator::GetForceIpoActsLocal_doc[] =
|
||||
"getForceIpoActsLocal()\n"
|
||||
"\tReturn whether to apply the force in the object's local\n"
|
||||
"\tcoordinates rather than the world global coordinates.\n";
|
||||
|
||||
@@ -338,7 +338,7 @@ PyObject* KX_MouseFocusSensor::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
|
||||
char KX_MouseFocusSensor::GetHitObject_doc[] =
|
||||
const char KX_MouseFocusSensor::GetHitObject_doc[] =
|
||||
"getHitObject()\n"
|
||||
"\tReturns the name of the object that was hit by this ray.\n";
|
||||
PyObject* KX_MouseFocusSensor::PyGetHitObject(PyObject* self,
|
||||
@@ -353,7 +353,7 @@ PyObject* KX_MouseFocusSensor::PyGetHitObject(PyObject* self,
|
||||
}
|
||||
|
||||
|
||||
char KX_MouseFocusSensor::GetHitPosition_doc[] =
|
||||
const char KX_MouseFocusSensor::GetHitPosition_doc[] =
|
||||
"getHitPosition()\n"
|
||||
"\tReturns the position (in worldcoordinates) where the object was hit by this ray.\n";
|
||||
PyObject* KX_MouseFocusSensor::PyGetHitPosition(PyObject* self,
|
||||
@@ -373,7 +373,7 @@ PyObject* KX_MouseFocusSensor::PyGetHitPosition(PyObject* self,
|
||||
|
||||
}
|
||||
|
||||
char KX_MouseFocusSensor::GetRayDirection_doc[] =
|
||||
const char KX_MouseFocusSensor::GetRayDirection_doc[] =
|
||||
"getRayDirection()\n"
|
||||
"\tReturns the direction from the ray (in worldcoordinates) .\n";
|
||||
PyObject* KX_MouseFocusSensor::PyGetRayDirection(PyObject* self,
|
||||
@@ -394,7 +394,7 @@ PyObject* KX_MouseFocusSensor::PyGetRayDirection(PyObject* self,
|
||||
|
||||
}
|
||||
|
||||
char KX_MouseFocusSensor::GetHitNormal_doc[] =
|
||||
const char KX_MouseFocusSensor::GetHitNormal_doc[] =
|
||||
"getHitNormal()\n"
|
||||
"\tReturns the normal (in worldcoordinates) of the object at the location where the object was hit by this ray.\n";
|
||||
PyObject* KX_MouseFocusSensor::PyGetHitNormal(PyObject* self,
|
||||
@@ -415,7 +415,7 @@ PyObject* KX_MouseFocusSensor::PyGetHitNormal(PyObject* self,
|
||||
|
||||
|
||||
/* getRayTarget */
|
||||
char KX_MouseFocusSensor::GetRayTarget_doc[] =
|
||||
const char KX_MouseFocusSensor::GetRayTarget_doc[] =
|
||||
"getRayTarget()\n"
|
||||
"\tReturns the target of the ray that seeks the focus object,\n"
|
||||
"\tin worldcoordinates.";
|
||||
@@ -432,7 +432,7 @@ PyObject* KX_MouseFocusSensor::PyGetRayTarget(PyObject* self,
|
||||
}
|
||||
|
||||
/* getRayTarget */
|
||||
char KX_MouseFocusSensor::GetRaySource_doc[] =
|
||||
const char KX_MouseFocusSensor::GetRaySource_doc[] =
|
||||
"getRaySource()\n"
|
||||
"\tReturns the source of the ray that seeks the focus object,\n"
|
||||
"\tin worldcoordinates.";
|
||||
|
||||
@@ -176,7 +176,7 @@ PyObject* KX_ParentActuator::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* 1. setObject */
|
||||
char KX_ParentActuator::SetObject_doc[] =
|
||||
const char KX_ParentActuator::SetObject_doc[] =
|
||||
"setObject(object)\n"
|
||||
"\t- object: KX_GameObject, string or None\n"
|
||||
"\tSet the object to set as parent.\n";
|
||||
@@ -199,7 +199,7 @@ PyObject* KX_ParentActuator::PySetObject(PyObject* self, PyObject* value) {
|
||||
/* 2. getObject */
|
||||
|
||||
/* get obj ---------------------------------------------------------- */
|
||||
char KX_ParentActuator::GetObject_doc[] =
|
||||
const char KX_ParentActuator::GetObject_doc[] =
|
||||
"getObject(name_only = 1)\n"
|
||||
"name_only - optional arg, when true will return the KX_GameObject rather then its name\n"
|
||||
"\tReturns the object that is set to.\n";
|
||||
|
||||
@@ -234,7 +234,7 @@ PyObject* KX_RadarSensor::_getattr(const STR_String& attr) {
|
||||
}
|
||||
|
||||
/* getConeOrigin */
|
||||
char KX_RadarSensor::GetConeOrigin_doc[] =
|
||||
const char KX_RadarSensor::GetConeOrigin_doc[] =
|
||||
"getConeOrigin()\n"
|
||||
"\tReturns the origin of the cone with which to test. The origin\n"
|
||||
"\tis in the middle of the cone.";
|
||||
@@ -251,7 +251,7 @@ PyObject* KX_RadarSensor::PyGetConeOrigin(PyObject* self,
|
||||
}
|
||||
|
||||
/* getConeOrigin */
|
||||
char KX_RadarSensor::GetConeTarget_doc[] =
|
||||
const char KX_RadarSensor::GetConeTarget_doc[] =
|
||||
"getConeTarget()\n"
|
||||
"\tReturns the center of the bottom face of the cone with which to test.\n";
|
||||
PyObject* KX_RadarSensor::PyGetConeTarget(PyObject* self,
|
||||
@@ -267,7 +267,7 @@ PyObject* KX_RadarSensor::PyGetConeTarget(PyObject* self,
|
||||
}
|
||||
|
||||
/* getConeOrigin */
|
||||
char KX_RadarSensor::GetConeHeight_doc[] =
|
||||
const char KX_RadarSensor::GetConeHeight_doc[] =
|
||||
"getConeHeight()\n"
|
||||
"\tReturns the height of the cone with which to test.\n";
|
||||
PyObject* KX_RadarSensor::PyGetConeHeight(PyObject* self,
|
||||
|
||||
@@ -342,7 +342,7 @@ PyMethodDef KX_RaySensor::Methods[] = {
|
||||
{NULL,NULL} //Sentinel
|
||||
};
|
||||
|
||||
char KX_RaySensor::GetHitObject_doc[] =
|
||||
const char KX_RaySensor::GetHitObject_doc[] =
|
||||
"getHitObject()\n"
|
||||
"\tReturns the name of the object that was hit by this ray.\n";
|
||||
PyObject* KX_RaySensor::PyGetHitObject(PyObject* self,
|
||||
@@ -357,7 +357,7 @@ PyObject* KX_RaySensor::PyGetHitObject(PyObject* self,
|
||||
}
|
||||
|
||||
|
||||
char KX_RaySensor::GetHitPosition_doc[] =
|
||||
const char KX_RaySensor::GetHitPosition_doc[] =
|
||||
"getHitPosition()\n"
|
||||
"\tReturns the position (in worldcoordinates) where the object was hit by this ray.\n";
|
||||
PyObject* KX_RaySensor::PyGetHitPosition(PyObject* self,
|
||||
@@ -377,7 +377,7 @@ PyObject* KX_RaySensor::PyGetHitPosition(PyObject* self,
|
||||
|
||||
}
|
||||
|
||||
char KX_RaySensor::GetRayDirection_doc[] =
|
||||
const char KX_RaySensor::GetRayDirection_doc[] =
|
||||
"getRayDirection()\n"
|
||||
"\tReturns the direction from the ray (in worldcoordinates) .\n";
|
||||
PyObject* KX_RaySensor::PyGetRayDirection(PyObject* self,
|
||||
@@ -397,7 +397,7 @@ PyObject* KX_RaySensor::PyGetRayDirection(PyObject* self,
|
||||
|
||||
}
|
||||
|
||||
char KX_RaySensor::GetHitNormal_doc[] =
|
||||
const char KX_RaySensor::GetHitNormal_doc[] =
|
||||
"getHitNormal()\n"
|
||||
"\tReturns the normal (in worldcoordinates) of the object at the location where the object was hit by this ray.\n";
|
||||
PyObject* KX_RaySensor::PyGetHitNormal(PyObject* self,
|
||||
|
||||
@@ -209,7 +209,7 @@ PyObject* KX_SCA_AddObjectActuator::_getattr(const STR_String& attr)
|
||||
}
|
||||
|
||||
/* 1. setObject */
|
||||
char KX_SCA_AddObjectActuator::SetObject_doc[] =
|
||||
const char KX_SCA_AddObjectActuator::SetObject_doc[] =
|
||||
"setObject(object)\n"
|
||||
"\t- object: KX_GameObject, string or None\n"
|
||||
"\tSets the object that will be added. There has to be an object\n"
|
||||
@@ -234,7 +234,7 @@ PyObject* KX_SCA_AddObjectActuator::PySetObject(PyObject* self, PyObject* value)
|
||||
|
||||
|
||||
/* 2. setTime */
|
||||
char KX_SCA_AddObjectActuator::SetTime_doc[] =
|
||||
const char KX_SCA_AddObjectActuator::SetTime_doc[] =
|
||||
"setTime(duration)\n"
|
||||
"\t- duration: integer\n"
|
||||
"\tSets the lifetime of the object that will be added, in frames. \n"
|
||||
@@ -258,7 +258,7 @@ PyObject* KX_SCA_AddObjectActuator::PySetTime(PyObject* self, PyObject* value)
|
||||
|
||||
|
||||
/* 3. getTime */
|
||||
char KX_SCA_AddObjectActuator::GetTime_doc[] =
|
||||
const char KX_SCA_AddObjectActuator::GetTime_doc[] =
|
||||
"GetTime()\n"
|
||||
"\tReturns the lifetime of the object that will be added.\n";
|
||||
|
||||
@@ -270,7 +270,7 @@ PyObject* KX_SCA_AddObjectActuator::PyGetTime(PyObject* self)
|
||||
|
||||
|
||||
/* 4. getObject */
|
||||
char KX_SCA_AddObjectActuator::GetObject_doc[] =
|
||||
const char KX_SCA_AddObjectActuator::GetObject_doc[] =
|
||||
"getObject(name_only = 1)\n"
|
||||
"name_only - optional arg, when true will return the KX_GameObject rather then its name\n"
|
||||
"\tReturns the name of the object that will be added.\n";
|
||||
@@ -292,7 +292,7 @@ PyObject* KX_SCA_AddObjectActuator::PyGetObject(PyObject* self, PyObject* args)
|
||||
|
||||
|
||||
/* 5. getLinearVelocity */
|
||||
char KX_SCA_AddObjectActuator::GetLinearVelocity_doc[] =
|
||||
const char KX_SCA_AddObjectActuator::GetLinearVelocity_doc[] =
|
||||
"GetLinearVelocity()\n"
|
||||
"\tReturns the linear velocity that will be assigned to \n"
|
||||
"\tthe created object.\n";
|
||||
@@ -311,7 +311,7 @@ PyObject* KX_SCA_AddObjectActuator::PyGetLinearVelocity(PyObject* self)
|
||||
|
||||
|
||||
/* 6. setLinearVelocity */
|
||||
char KX_SCA_AddObjectActuator::SetLinearVelocity_doc[] =
|
||||
const char KX_SCA_AddObjectActuator::SetLinearVelocity_doc[] =
|
||||
"setLinearVelocity(vx, vy, vz)\n"
|
||||
"\t- vx: float\n"
|
||||
"\t- vy: float\n"
|
||||
@@ -331,7 +331,7 @@ PyObject* KX_SCA_AddObjectActuator::PySetLinearVelocity(PyObject* self, PyObject
|
||||
}
|
||||
|
||||
/* 7. getAngularVelocity */
|
||||
char KX_SCA_AddObjectActuator::GetAngularVelocity_doc[] =
|
||||
const char KX_SCA_AddObjectActuator::GetAngularVelocity_doc[] =
|
||||
"GetAngularVelocity()\n"
|
||||
"\tReturns the angular velocity that will be assigned to \n"
|
||||
"\tthe created object.\n";
|
||||
@@ -350,7 +350,7 @@ PyObject* KX_SCA_AddObjectActuator::PyGetAngularVelocity(PyObject* self)
|
||||
|
||||
|
||||
/* 8. setAngularVelocity */
|
||||
char KX_SCA_AddObjectActuator::SetAngularVelocity_doc[] =
|
||||
const char KX_SCA_AddObjectActuator::SetAngularVelocity_doc[] =
|
||||
"setAngularVelocity(vx, vy, vz)\n"
|
||||
"\t- vx: float\n"
|
||||
"\t- vy: float\n"
|
||||
@@ -406,7 +406,7 @@ PyObject* KX_SCA_AddObjectActuator::PyInstantAddObject(PyObject* self)
|
||||
|
||||
|
||||
/* 7. GetLastCreatedObject */
|
||||
char KX_SCA_AddObjectActuator::GetLastCreatedObject_doc[] =
|
||||
const char KX_SCA_AddObjectActuator::GetLastCreatedObject_doc[] =
|
||||
"getLastCreatedObject()\n"
|
||||
"\tReturn the last created object. \n";
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ PyObject* KX_SCA_ReplaceMeshActuator::_getattr(const STR_String& attr)
|
||||
|
||||
|
||||
/* 1. setMesh */
|
||||
char KX_SCA_ReplaceMeshActuator::SetMesh_doc[] =
|
||||
const char KX_SCA_ReplaceMeshActuator::SetMesh_doc[] =
|
||||
"setMesh(name)\n"
|
||||
"\t- name: string or None\n"
|
||||
"\tSet the mesh that will be substituted for the current one.\n";
|
||||
|
||||
@@ -278,7 +278,7 @@ PyObject* KX_SceneActuator::_getattr(const STR_String& attr)
|
||||
|
||||
|
||||
/* 2. setUseRestart--------------------------------------------------------- */
|
||||
char KX_SceneActuator::SetUseRestart_doc[] =
|
||||
const char KX_SceneActuator::SetUseRestart_doc[] =
|
||||
"setUseRestart(flag)\n"
|
||||
"\t- flag: 0 or 1.\n"
|
||||
"\tSet flag to 1 to restart the scene.\n" ;
|
||||
@@ -301,7 +301,7 @@ PyObject* KX_SceneActuator::PySetUseRestart(PyObject* self,
|
||||
|
||||
|
||||
/* 3. getUseRestart: */
|
||||
char KX_SceneActuator::GetUseRestart_doc[] =
|
||||
const char KX_SceneActuator::GetUseRestart_doc[] =
|
||||
"getUseRestart()\n"
|
||||
"\tReturn whether the scene will be restarted.\n" ;
|
||||
PyObject* KX_SceneActuator::PyGetUseRestart(PyObject* self,
|
||||
@@ -314,7 +314,7 @@ PyObject* KX_SceneActuator::PyGetUseRestart(PyObject* self,
|
||||
|
||||
|
||||
/* 4. set scene------------------------------------------------------------- */
|
||||
char KX_SceneActuator::SetScene_doc[] =
|
||||
const char KX_SceneActuator::SetScene_doc[] =
|
||||
"setScene(scene)\n"
|
||||
"\t- scene: string\n"
|
||||
"\tSet the name of scene the actuator will switch to.\n" ;
|
||||
@@ -339,7 +339,7 @@ PyObject* KX_SceneActuator::PySetScene(PyObject* self,
|
||||
|
||||
|
||||
/* 5. getScene: */
|
||||
char KX_SceneActuator::GetScene_doc[] =
|
||||
const char KX_SceneActuator::GetScene_doc[] =
|
||||
"getScene()\n"
|
||||
"\tReturn the name of the scene the actuator wants to switch to.\n" ;
|
||||
PyObject* KX_SceneActuator::PyGetScene(PyObject* self,
|
||||
@@ -352,7 +352,7 @@ PyObject* KX_SceneActuator::PyGetScene(PyObject* self,
|
||||
|
||||
|
||||
/* 6. set camera------------------------------------------------------------ */
|
||||
char KX_SceneActuator::SetCamera_doc[] =
|
||||
const char KX_SceneActuator::SetCamera_doc[] =
|
||||
"setCamera(camera)\n"
|
||||
"\t- camera: string\n"
|
||||
"\tSet the camera to switch to.\n" ;
|
||||
@@ -394,7 +394,7 @@ PyObject* KX_SceneActuator::PySetCamera(PyObject* self,
|
||||
|
||||
|
||||
/* 7. getCamera: */
|
||||
char KX_SceneActuator::GetCamera_doc[] =
|
||||
const char KX_SceneActuator::GetCamera_doc[] =
|
||||
"getCamera()\n"
|
||||
"\tReturn the name of the camera to switch to.\n" ;
|
||||
PyObject* KX_SceneActuator::PyGetCamera(PyObject* self,
|
||||
|
||||
@@ -157,7 +157,7 @@ KX_StateActuator::_getattr(
|
||||
|
||||
|
||||
/* set operation ---------------------------------------------------------- */
|
||||
char
|
||||
const char
|
||||
KX_StateActuator::SetOperation_doc[] =
|
||||
"setOperation(op)\n"
|
||||
"\t - op : bit operation (0=Copy, 1=Set, 2=Clear, 3=Negate)"
|
||||
@@ -180,7 +180,7 @@ KX_StateActuator::PySetOperation(PyObject* self,
|
||||
}
|
||||
|
||||
/* set mask ---------------------------------------------------------- */
|
||||
char
|
||||
const char
|
||||
KX_StateActuator::SetMask_doc[] =
|
||||
"setMask(mask)\n"
|
||||
"\t - mask : bits that will be modified"
|
||||
|
||||
@@ -257,7 +257,7 @@ PyObject* KX_TouchSensor::_getattr(const STR_String& attr) {
|
||||
/* Python API */
|
||||
|
||||
/* 1. setProperty */
|
||||
char KX_TouchSensor::SetProperty_doc[] =
|
||||
const char KX_TouchSensor::SetProperty_doc[] =
|
||||
"setProperty(name)\n"
|
||||
"\t- name: string\n"
|
||||
"\tSet the property or material to collide with. Use\n"
|
||||
@@ -283,7 +283,7 @@ PyObject* KX_TouchSensor::PySetProperty(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
/* 2. getProperty */
|
||||
char KX_TouchSensor::GetProperty_doc[] =
|
||||
const char KX_TouchSensor::GetProperty_doc[] =
|
||||
"getProperty(name)\n"
|
||||
"\tReturns the property or material to collide with. Use\n"
|
||||
"\tgetTouchMaterial() to find out whether this sensor\n"
|
||||
@@ -294,7 +294,7 @@ PyObject* KX_TouchSensor::PyGetProperty(PyObject* self,
|
||||
return PyString_FromString(m_touchedpropname);
|
||||
}
|
||||
|
||||
char KX_TouchSensor::GetHitObject_doc[] =
|
||||
const char KX_TouchSensor::GetHitObject_doc[] =
|
||||
"getHitObject()\n"
|
||||
;
|
||||
PyObject* KX_TouchSensor::PyGetHitObject(PyObject* self,
|
||||
@@ -310,7 +310,7 @@ PyObject* KX_TouchSensor::PyGetHitObject(PyObject* self,
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
char KX_TouchSensor::GetHitObjectList_doc[] =
|
||||
const char KX_TouchSensor::GetHitObjectList_doc[] =
|
||||
"getHitObjectList()\n"
|
||||
"\tReturn a list of the objects this object collided with,\n"
|
||||
"\tbut only those matching the property/material condition.\n";
|
||||
@@ -364,7 +364,7 @@ PyObject* KX_TouchSensor::PyGetHitObjectList(PyObject* self,
|
||||
}
|
||||
|
||||
/* 5. getTouchMaterial */
|
||||
char KX_TouchSensor::GetTouchMaterial_doc[] =
|
||||
const char KX_TouchSensor::GetTouchMaterial_doc[] =
|
||||
"getTouchMaterial()\n"
|
||||
"\tReturns KX_TRUE if this sensor looks for a specific material,\n"
|
||||
"\tKX_FALSE if it looks for a specific property.\n" ;
|
||||
@@ -376,7 +376,7 @@ PyObject* KX_TouchSensor::PyGetTouchMaterial(PyObject* self,
|
||||
}
|
||||
|
||||
/* 6. setTouchMaterial */
|
||||
char KX_TouchSensor::SetTouchMaterial_doc[] =
|
||||
const char KX_TouchSensor::SetTouchMaterial_doc[] =
|
||||
"setTouchMaterial(flag)\n"
|
||||
"\t- flag: KX_TRUE or KX_FALSE.\n"
|
||||
"\tSet flag to KX_TRUE to switch on positive pulse mode,\n"
|
||||
|
||||
@@ -475,7 +475,7 @@ PyObject* KX_TrackToActuator::_getattr(const STR_String& attr)
|
||||
|
||||
|
||||
/* 1. setObject */
|
||||
char KX_TrackToActuator::SetObject_doc[] =
|
||||
const char KX_TrackToActuator::SetObject_doc[] =
|
||||
"setObject(object)\n"
|
||||
"\t- object: KX_GameObject, string or None\n"
|
||||
"\tSet the object to track with the parent of this actuator.\n";
|
||||
@@ -499,7 +499,7 @@ PyObject* KX_TrackToActuator::PySetObject(PyObject* self, PyObject* value)
|
||||
|
||||
|
||||
/* 2. getObject */
|
||||
char KX_TrackToActuator::GetObject_doc[] =
|
||||
const char KX_TrackToActuator::GetObject_doc[] =
|
||||
"getObject(name_only = 1)\n"
|
||||
"name_only - optional arg, when true will return the KX_GameObject rather then its name\n"
|
||||
"\tReturns the object to track with the parent of this actuator\n";
|
||||
@@ -521,7 +521,7 @@ PyObject* KX_TrackToActuator::PyGetObject(PyObject* self, PyObject* args)
|
||||
|
||||
|
||||
/* 3. setTime */
|
||||
char KX_TrackToActuator::SetTime_doc[] =
|
||||
const char KX_TrackToActuator::SetTime_doc[] =
|
||||
"setTime(time)\n"
|
||||
"\t- time: integer\n"
|
||||
"\tSet the time in frames with which to delay the tracking motion.\n";
|
||||
@@ -542,7 +542,7 @@ PyObject* KX_TrackToActuator::PySetTime(PyObject* self, PyObject* args, PyObject
|
||||
|
||||
|
||||
/* 4.getTime */
|
||||
char KX_TrackToActuator::GetTime_doc[] =
|
||||
const char KX_TrackToActuator::GetTime_doc[] =
|
||||
"getTime()\n"
|
||||
"\t- time: integer\n"
|
||||
"\tReturn the time in frames with which the tracking motion is delayed.\n";
|
||||
@@ -554,7 +554,7 @@ PyObject* KX_TrackToActuator::PyGetTime(PyObject* self, PyObject* args, PyObject
|
||||
|
||||
|
||||
/* 5. getUse3D */
|
||||
char KX_TrackToActuator::GetUse3D_doc[] =
|
||||
const char KX_TrackToActuator::GetUse3D_doc[] =
|
||||
"getUse3D()\n"
|
||||
"\tReturns 1 if the motion is allowed to extend in the z-direction.\n";
|
||||
PyObject* KX_TrackToActuator::PyGetUse3D(PyObject* self, PyObject* args, PyObject* kwds)
|
||||
@@ -565,7 +565,7 @@ PyObject* KX_TrackToActuator::PyGetUse3D(PyObject* self, PyObject* args, PyObjec
|
||||
|
||||
|
||||
/* 6. setUse3D */
|
||||
char KX_TrackToActuator::SetUse3D_doc[] =
|
||||
const char KX_TrackToActuator::SetUse3D_doc[] =
|
||||
"setUse3D(value)\n"
|
||||
"\t- value: 0 or 1\n"
|
||||
"\tSet to 1 to allow the tracking motion to extend in the z-direction,\n"
|
||||
|
||||
@@ -137,7 +137,7 @@ KX_VisibilityActuator::_getattr(
|
||||
|
||||
|
||||
/* set visibility ---------------------------------------------------------- */
|
||||
char
|
||||
const char
|
||||
KX_VisibilityActuator::SetVisible_doc[] =
|
||||
"setVisible(visible?)\n"
|
||||
"\t - visible? : Make the object visible? (KX_TRUE, KX_FALSE)"
|
||||
|
||||
@@ -85,7 +85,7 @@ RAS_2DFilterManager::~RAS_2DFilterManager()
|
||||
FreeTextures();
|
||||
}
|
||||
|
||||
unsigned int RAS_2DFilterManager::CreateShaderProgram(char* shadersource)
|
||||
unsigned int RAS_2DFilterManager::CreateShaderProgram(const char* shadersource)
|
||||
{
|
||||
GLuint program = 0;
|
||||
GLuint fShader = glCreateShaderObjectARB(GL_FRAGMENT_SHADER);
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
class RAS_2DFilterManager
|
||||
{
|
||||
private:
|
||||
unsigned int CreateShaderProgram(char* shadersource);
|
||||
unsigned int CreateShaderProgram(const char* shadersource);
|
||||
unsigned int CreateShaderProgram(int filtermode);
|
||||
void AnalyseShader(int passindex, vector<STR_String>& propNames);
|
||||
void StartShaderProgram(int passindex);
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef __RAS_BLUR2DFILTER
|
||||
#define __RAS_BLUR2DFILTER
|
||||
|
||||
char * BlurFragmentShader=STRINGIFY(
|
||||
const char * BlurFragmentShader=STRINGIFY(
|
||||
uniform sampler2D bgl_RenderedTexture;
|
||||
uniform vec2 bgl_TextureCoordinateOffset[9];
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef __RAS_DILATION2DFILTER
|
||||
#define __RAS_DILATION2DFILTER
|
||||
|
||||
char * DilationFragmentShader=STRINGIFY(
|
||||
const char * DilationFragmentShader=STRINGIFY(
|
||||
uniform sampler2D bgl_RenderedTexture;
|
||||
uniform vec2 bgl_TextureCoordinateOffset[9];
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef __RAS_EROSION2DFILTER
|
||||
#define __RAS_EROSION2DFILTER
|
||||
|
||||
char * ErosionFragmentShader=STRINGIFY(
|
||||
const char * ErosionFragmentShader=STRINGIFY(
|
||||
uniform sampler2D bgl_RenderedTexture;
|
||||
uniform vec2 bgl_TextureCoordinateOffset[9];
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef __RAS_GRAYSCALE2DFILTER
|
||||
#define __RAS_GRAYSCALE2DFILTER
|
||||
|
||||
char * GrayScaleFragmentShader=STRINGIFY(
|
||||
const char * GrayScaleFragmentShader=STRINGIFY(
|
||||
uniform sampler2D bgl_RenderedTexture;
|
||||
|
||||
void main(void)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef __RAS_INVERT2DFILTER
|
||||
#define __RAS_INVERT2DFILTER
|
||||
|
||||
char * InvertFragmentShader=STRINGIFY(
|
||||
const char * InvertFragmentShader=STRINGIFY(
|
||||
uniform sampler2D bgl_RenderedTexture;
|
||||
|
||||
void main(void)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef __RAS_LAPLACION2DFILTER
|
||||
#define __RAS_LAPLACION2DFILTER
|
||||
|
||||
char * LaplacionFragmentShader=STRINGIFY(
|
||||
const char * LaplacionFragmentShader=STRINGIFY(
|
||||
uniform sampler2D bgl_RenderedTexture;
|
||||
uniform vec2 bgl_TextureCoordinateOffset[9];
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef __RAS_PREWITT2DFILTER
|
||||
#define __RAS_PREWITT2DFILTER
|
||||
|
||||
char * PrewittFragmentShader=STRINGIFY(
|
||||
const char * PrewittFragmentShader=STRINGIFY(
|
||||
uniform sampler2D bgl_RenderedTexture;
|
||||
uniform vec2 bgl_TextureCoordinateOffset[9];
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef __RAS_SEPIA2DFILTER
|
||||
#define __RAS_SEPIA2DFILTER
|
||||
|
||||
char * SepiaFragmentShader=STRINGIFY(
|
||||
const char * SepiaFragmentShader=STRINGIFY(
|
||||
uniform sampler2D bgl_RenderedTexture;
|
||||
|
||||
void main(void)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef __RAS_SHARPEN2DFILTER
|
||||
#define __RAS_SHARPEN2DFILTER
|
||||
|
||||
char * SharpenFragmentShader=STRINGIFY(
|
||||
const char * SharpenFragmentShader=STRINGIFY(
|
||||
uniform sampler2D bgl_RenderedTexture;
|
||||
uniform vec2 bgl_TextureCoordinateOffset[9];
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef __RAS_SOBEL2DFILTER
|
||||
#define __RAS_SOBEL2DFILTER
|
||||
|
||||
char * SobelFragmentShader=STRINGIFY(
|
||||
const char * SobelFragmentShader=STRINGIFY(
|
||||
uniform sampler2D bgl_RenderedTexture;
|
||||
uniform vec2 bgl_TextureCoordinateOffset[9];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user