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
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/doc/BGL.py2
-rw-r--r--source/blender/python/api2_2x/doc/Image.py11
2 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/doc/BGL.py b/source/blender/python/api2_2x/doc/BGL.py
index b9155b4cb7e..62087924baf 100644
--- a/source/blender/python/api2_2x/doc/BGL.py
+++ b/source/blender/python/api2_2x/doc/BGL.py
@@ -143,7 +143,7 @@ def glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap):
@param width, height: Specify the pixel width and height of the bitmap image.
@type xorig,yorig: float
@param xorig,yorig: Specify the location of the origin in the bitmap image. The origin is measured
- from the lower left cornere of the bitmap, with right and up beigng the positive axes.
+ from the lower left corner of the bitmap, with right and up beigng the positive axes.
@type xmove,ymove: float
@param xmove,ymove: Specify the x and y offsets to be added to the current raster position after
the bitmap is drawn.
diff --git a/source/blender/python/api2_2x/doc/Image.py b/source/blender/python/api2_2x/doc/Image.py
index bf4c25607b8..f09a5fbcc69 100644
--- a/source/blender/python/api2_2x/doc/Image.py
+++ b/source/blender/python/api2_2x/doc/Image.py
@@ -6,7 +6,7 @@ The Blender.Image submodule.
Image
=====
-B{New}: L{Image.reload}.
+B{New}: L{Image.reload}, L{Image.getBindCode}.
This module provides access to B{Image} objects in Blender.
@@ -67,6 +67,7 @@ class Image:
axis.
@cvar yrep: Texture tiling: the number of repetitions in the y (vertical)
axis.
+ @cvar bindcode: Texture's bind code (readonly).
"""
def getName():
@@ -106,6 +107,14 @@ class Image:
This is for texture tiling.
@rtype: int
"""
+
+ def getBindCode():
+ """
+ Get the Image's bindcode. This is for texture loading using BGL calls,
+ see for example L{BGL.glBindTexture}.
+ @rtype: int
+ """
+
def reload():
"""
Reloads this image from the filesystem. If used within a loop you need to