Merged changes in the trunk up to revision 43748.
Conflicts resolved: source/blender/editors/include/UI_resources.h
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""
|
||||
Basic Physics Constraint
|
||||
++++++++++++++++++++++
|
||||
++++++++++++++++++++++++
|
||||
Example of how to create a hinge Physics Constraint between two objects.
|
||||
"""
|
||||
from bge import logic
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""
|
||||
Texture replacement
|
||||
++++++++++++++++++++++
|
||||
Texture Replacement
|
||||
+++++++++++++++++++
|
||||
Example of how to replace a texture in game with an external image.
|
||||
createTexture() and removeTexture() are to be called from a module Python
|
||||
Controller.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""
|
||||
Basic Video Playback
|
||||
++++++++++++++++++++++
|
||||
++++++++++++++++++++
|
||||
Example of how to replace a texture in game with a video. It needs to run everyframe
|
||||
"""
|
||||
import bge
|
||||
|
||||
@@ -5,6 +5,11 @@ Physics Constraints (bge.constraints)
|
||||
.. module:: bge.constraints
|
||||
|
||||
.. literalinclude:: ../examples/bge.constraints.py
|
||||
:language: rest
|
||||
:lines: 2-4
|
||||
|
||||
.. literalinclude:: ../examples/bge.constraints.py
|
||||
:lines: 6-
|
||||
|
||||
.. function:: createConstraint(physicsid, physicsid2, constrainttype, [pivotX, pivotY, pivotZ, [axisX, axisY, axisZ, [flag]]]])
|
||||
|
||||
|
||||
@@ -77,6 +77,14 @@ Functions
|
||||
|
||||
:rtype: integer
|
||||
|
||||
.. function:: setWindowSize(width, height)
|
||||
|
||||
Set the width and height of the window (in pixels). This also works for fullscreen applications.
|
||||
|
||||
:type width: integer
|
||||
:type height: integer
|
||||
|
||||
|
||||
.. function:: makeScreenshot(filename)
|
||||
|
||||
Writes a screenshot to the given filename.
|
||||
|
||||
@@ -37,8 +37,18 @@ When the texture object is deleted, the new texture is deleted and the old textu
|
||||
.. module:: bge.texture
|
||||
|
||||
.. literalinclude:: ../examples/bge.texture.py
|
||||
:language: rest
|
||||
:lines: 2-4
|
||||
|
||||
.. literalinclude:: ../examples/bge.texture.py
|
||||
:lines: 6-
|
||||
|
||||
.. literalinclude:: ../examples/bge.texture.1.py
|
||||
:language: rest
|
||||
:lines: 2-6
|
||||
|
||||
.. literalinclude:: ../examples/bge.texture.1.py
|
||||
:lines: 8-
|
||||
|
||||
.. class:: VideoFFmpeg(file [, capture=-1, rate=25.0, width=0, height=0])
|
||||
|
||||
|
||||
@@ -66,6 +66,12 @@ Game Types (bge.types)
|
||||
|
||||
:type: dictionary {:ref:`keycode<keyboard-keys>`::ref:`status<input-status>`, ...}
|
||||
|
||||
.. attribute:: active_events
|
||||
|
||||
A dictionary containing the status of only the active keyboard events or keys. (read-only).
|
||||
|
||||
:type: dictionary {:ref:`keycode<keyboard-keys>`::ref:`status<input-status>`, ...}
|
||||
|
||||
.. class:: SCA_PythonMouse(PyObjectPlus)
|
||||
|
||||
The current mouse.
|
||||
@@ -75,6 +81,12 @@ Game Types (bge.types)
|
||||
a dictionary containing the status of each mouse event. (read-only).
|
||||
|
||||
:type: dictionary {:ref:`keycode<mouse-keys>`::ref:`status<input-status>`, ...}
|
||||
|
||||
.. attribute:: active_events
|
||||
|
||||
a dictionary containing the status of only the active mouse events. (read-only).
|
||||
|
||||
:type: dictionary {:ref:`keycode<mouse-keys>`::ref:`status<input-status>`, ...}
|
||||
|
||||
.. attribute:: position
|
||||
|
||||
@@ -942,7 +954,7 @@ Game Types (bge.types)
|
||||
|
||||
.. deprecated:: use :data:`localPosition` and :data:`worldPosition`.
|
||||
|
||||
:type: :class:`mathurils.Vector`
|
||||
:type: :class:`mathutils.Vector`
|
||||
|
||||
.. attribute:: orientation
|
||||
|
||||
@@ -980,7 +992,7 @@ Game Types (bge.types)
|
||||
|
||||
.. attribute:: worldScale
|
||||
|
||||
The object's world scaling factor. Read-only. [sx, sy, sz]
|
||||
The object's world scaling factor. [sx, sy, sz]
|
||||
|
||||
:type: :class:`mathutils.Vector`
|
||||
|
||||
@@ -995,6 +1007,18 @@ Game Types (bge.types)
|
||||
The object's world position. [x, y, z]
|
||||
|
||||
:type: :class:`mathutils.Vector`
|
||||
|
||||
.. attribute:: localTransform
|
||||
|
||||
The object's local space transform matrix. 4x4 Matrix.
|
||||
|
||||
:type: :class:`mathutils.Matrix`
|
||||
|
||||
.. attribute:: worldTransform
|
||||
|
||||
The object's world space transform matrix. 4x4 Matrix.
|
||||
|
||||
:type: :class:`mathutils.Matrix`
|
||||
|
||||
.. attribute:: localLinearVelocity
|
||||
|
||||
|
||||
Reference in New Issue
Block a user