blender/source
Benoit Bolsee 445d077cf4 BGE: Add plot method to VideoTexture.ImageBuff class.
Synopsis: plot(brush,width,height,x,y,mode)
          plot(imgbuff,x,y,mode)

The first form uses a byte array containing the brush shape.
The second form uses another ImageBuff object as a brush.
The ImageBuff object must be initialized before you can call
these methods. Use load(rgb_buffer,sizex,sizey) method to create
an image buffer of given size (with alpha channel set to 255).
The brush is plotted directly in the image buffer. The texture
is updated only when the VideoTexture.Texture parent object is
refreshed: this will download the image buffer to the GPU.

brush:  Byte array containing RGBA data to be plotted in image buffer.
        The data must be continuous in memory, organized row by row
        starting from lower left corner of the image. Each pixel is
        4 bytes representing RGBA data in that order.
width:  Horizontal size in pixels of image in brush.
height: Vertical size in pixels of the image in brush.
imgbuff:Another ImageBuff object that is used as a brush. The object
        must have been initialized first with load().
x:      Horizontal position in pixel from left side of the image buffer
        where the brush will be plotted. The brush is plotted on pixels
        positions x->x+width-1. Clipping is performed if the brush falls
        partially outside the image buffer.
y:      Vertical position in pixel from bottom side of the image buffer
        where the brush will be plotted.
mode:   Mode of drawing. Use one of the following value:
        0 : MIX
        1 : ADD
	2 : SUB
        3 : MUL
        4 : LIGHTEN
        5 : DARKEN
        6 : ERASE ALPHA
        7 : ADD ALPHA
        1000 : COPY RGBA (default)
        1001 : COPY RGB
        1002 : COPY ALPHA

        Modes 0 to 7 are 'blend' modes: the brush pixels are combined
        with the image pixel in various ways. Refer to Blender documentation
        to learn more about these modes.
2009-12-08 10:02:22 +00:00
..
blender - pyrna support for (value in array), currently only 1 dimensional arrays. 2009-12-08 09:40:30 +00:00
blenderplayer Support for the C Macro system in Python. 2009-12-05 19:27:26 +00:00
creator -noaudio option to force the sound system to None. 2009-12-07 20:39:57 +00:00
darwin
gameengine BGE: Add plot method to VideoTexture.ImageBuff class. 2009-12-08 10:02:22 +00:00
icons
kernel
CMakeLists.txt
Makefile Add FFTW3 support to Makefiles, make OpenJpeg use OS lib for Linux. 2009-11-09 20:08:19 +00:00
nan_compile.mk - remove CPPFLAG XP_UNIX from CMake, Scons and Irix make, checked our own code and /usr/include, its only used in our netscape plugin. 2009-11-19 11:49:42 +00:00
nan_definitions.mk Add FFTW3 support to Makefiles, make OpenJpeg use OS lib for Linux. 2009-11-09 20:08:19 +00:00
nan_link.mk Add FFTW3 support to Makefiles, make OpenJpeg use OS lib for Linux. 2009-11-09 20:08:19 +00:00
nan_subdirs.mk
nan_warn.mk
SConscript