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/intern
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2015-10-20 01:23:23 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2015-10-20 01:23:23 +0300
commit7455298f8c6b21535f5b7cc2f158792b868b80b4 (patch)
tree2374d7f7a5d1ff101386d69fada422a61e4ab061 /intern
parent1be95bb0f43540e5189b9b1d2e60a6527027d504 (diff)
BGE: Image source refresh() accepts pixel format argument.
All image source objects now accept a pixel format argument in addition to the buffer argument in the refresh() method. This can be used to change the format of the image copied in the buffer. The only allowed values are "RGBA" and "BGRA". This is useful when transferring images to external application that do not support the RGBA format. Ex: im = bge.texture.ImageRender(...) im.refresh(buffer, "BGRA") Note: the transfer is optimal (i.e. no intermediate copy) for ImageRender and ImageViewport objects when no processing of the image is needed in VideoTexture. This is the case if no filter is set and the attributes are set as follow: flip=False, alpha=True, scale=False, depth=False, zbuff=False.
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions