- added image.getBindCode() docstring to Image's epydoc file (thanks Satish Goda).
Scripts:
- Adding Apply_def.py to "Mesh" scripts menu (thanks author: Theeth);
- Updating JMS's disp_paint.py (also changed its name to remove version info);
- minor updates in docs and scripts.
This commit is contained in:
2004-07-18 15:54:17 +00:00
parent 4a244f274d
commit 6dca057ac5
7 changed files with 555 additions and 335 deletions

View File

@@ -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.

View File

@@ -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