Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-04-03 08:12:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-04-03 08:12:20 +0400
commitd573e9c5390a438b6e606a12d05dc2c6ad06a174 (patch)
treea921b33b0f399293cf65780d20c361184c13ab1c /source/gameengine/Ketsji/KX_Camera.cpp
parent0499d98311c6c9ce1a096ca2ee7bd0e361b5188c (diff)
BGE Python api
Added the method into the PyType so python knows about the methods (its supposed to work this way). This means in the future the api can use PyType_Ready() to store the methods in the types dictionary. Python3 removes Py_FindMethod and we should not be using it anyway since its not that efficient.
Diffstat (limited to 'source/gameengine/Ketsji/KX_Camera.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_Camera.cpp37
1 files changed, 3 insertions, 34 deletions
diff --git a/source/gameengine/Ketsji/KX_Camera.cpp b/source/gameengine/Ketsji/KX_Camera.cpp
index 5caac2fc670..cb138efba89 100644
--- a/source/gameengine/Ketsji/KX_Camera.cpp
+++ b/source/gameengine/Ketsji/KX_Camera.cpp
@@ -487,33 +487,6 @@ PyAttributeDef KX_Camera::Attributes[] = {
{ NULL } //Sentinel
};
-char KX_Camera::doc[] = "Module KX_Camera\n\n"
-"Constants:\n"
-"\tINSIDE\n"
-"\tINTERSECT\n"
-"\tOUTSIDE\n"
-"Attributes:\n"
-"\tlens -> float\n"
-"\t\tThe camera's lens value\n"
-"\tnear -> float\n"
-"\t\tThe camera's near clip distance\n"
-"\tfar -> float\n"
-"\t\tThe camera's far clip distance\n"
-"\tfrustum_culling -> bool\n"
-"\t\tNon zero if this camera is frustum culling.\n"
-"\tprojection_matrix -> [[float]]\n"
-"\t\tThis camera's projection matrix.\n"
-"\tmodelview_matrix -> [[float]] (read only)\n"
-"\t\tThis camera's model view matrix.\n"
-"\t\tRegenerated every frame from the camera's position and orientation.\n"
-"\tcamera_to_world -> [[float]] (read only)\n"
-"\t\tThis camera's camera to world transform.\n"
-"\t\tRegenerated every frame from the camera's position and orientation.\n"
-"\tworld_to_camera -> [[float]] (read only)\n"
-"\t\tThis camera's world to camera transform.\n"
-"\t\tRegenerated every frame from the camera's position and orientation.\n"
-"\t\tThis is camera_to_world inverted.\n";
-
PyTypeObject KX_Camera::Type = {
PyObject_HEAD_INIT(&PyType_Type)
0,
@@ -524,14 +497,10 @@ PyTypeObject KX_Camera::Type = {
0,
__getattr,
__setattr,
- 0, //&MyPyCompare,
- __repr,
- 0, //&cvalue_as_number,
- 0,
0,
- 0,
- 0, 0, 0, 0, 0, 0,
- doc
+ __repr,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ Methods
};
PyParentObject KX_Camera::Parents[] = {