diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-24 11:49:50 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-24 11:49:50 +0400 |
commit | a96955efc2c8ecc4de7b42ea717c3e287dad05cb (patch) | |
tree | 4154dc0f6850d1e942dbae8647966fb49ff17cd5 /source/gameengine/PyDoc/KX_MeshProxy.py | |
parent | 86899e7a22a3143ff8ecf2f3a7d65104ac6fa0b8 (diff) |
Game Python Reference Manual.
This manual lists all the Python classes and modules for Game Objects, Sensor bricks, Controllers etc.
Missing: Actuator & Controller reference.
Diffstat (limited to 'source/gameengine/PyDoc/KX_MeshProxy.py')
-rw-r--r-- | source/gameengine/PyDoc/KX_MeshProxy.py | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/source/gameengine/PyDoc/KX_MeshProxy.py b/source/gameengine/PyDoc/KX_MeshProxy.py new file mode 100644 index 00000000000..a5cb8e7ace2 --- /dev/null +++ b/source/gameengine/PyDoc/KX_MeshProxy.py @@ -0,0 +1,57 @@ +# Documentation for KX_MeshProxy + +class KX_MeshProxy: + """ + A mesh object. + + You can only change the vertex properties of a mesh object, not the mesh topology. + """ + + def GetNumMaterials(): + """ + Gets the number of materials associated with this object. + + @rtype integer + """ + + def GetMaterialName(matid): + """ + Gets the name of the specified material. + + @type matid: integer + @param matid: the specified material. + @rtype: string + @return: the attached material name. + """ + def GetTextureName(matid): + """ + Gets the name of the specified material's texture. + + @type matid: integer + @param matid: the specified material + @rtype: string + @return: the attached material's texture name. + """ + def GetVertexArrayLength(matid): + """ + Gets the length of the vertex array associated with the specified material. + + There is one vertex array for each material. + + @type matid: integer + @param matid: the specified material + @rtype: integer + @return: the number of verticies in the vertex array. + """ + def GetVertex(matid, index): + """ + Gets the specified vertex from the mesh object. + + @type matid: integer + @param matid: the specified material + @type index: integer + @param index: the index into the vertex array. + @rtype KX_VertexProxy + @return a vertex object. + """ + |