Package VisionEgg :: Module QuickTime :: Class MovieTexture |
[frames] | no frames]

# Class MovieTexture

source code

          object --+
                   |
    Textures.Texture --+
                       |
                      MovieTexture

Instance Methods
__init__(self, movie=None, texture_size=None) Creates instance of Texture object. | source code
make_half_size(self) | source code
unload(self) Unload texture data from video texture memory. | source code
get_texels_as_image(self) Return texel data as PIL image | source code
load(self, texture_object, build_mipmaps=False, rescale_original_to_fill_texture_object=False, internal_format=gl.GL_RGB) Load texture data to video texture memory. | source code
update(self) Update texture data This method does nothing, but may be overriden in classes that need to update their texture data whenever drawn. | source code
__del__(self) | source code
Inherited from `Textures.Texture`: `get_pixels_as_image`, `get_texture_object` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, movie=None, texture_size=None) (Constructor) | source code
    Creates instance of Texture object.

    texels -- Texture data. If not specified, a blank white
              texture is created.
    size -- If a tuple, force size of texture data if possible,
            raising an exception if not. If None, has no effect.
Overrides: Textures.Texture.__init__ (inherited documentation)

### make_half_size(self) | source code
Overrides: Textures.Texture.make_half_size

### unload(self) | source code
    Unload texture data from video texture memory.

    This only removes data from the video texture memory if there
    are no other references to the TextureObject instance.  To
    ensure this, all references to the texture_object argument
    passed to the load() method should be deleted.
Overrides: Textures.Texture.unload (inherited documentation)

### get_texels_as_image(self) | source code
    Return texel data as PIL image
Overrides: Textures.Texture.get_texels_as_image (inherited documentation)

### load(self, texture_object, build_mipmaps=False, rescale_original_to_fill_texture_object=False, internal_format=gl.GL_RGB) | source code
    Load texture data to video texture memory.

    This will cause the texture data to become resident in OpenGL
    video texture memory, enabling fast drawing.

    The texture_object argument is used to specify an instance of
    the TextureObject class, which is a wrapper for the OpenGL
    texture object holding the resident texture.

    To remove a texture from OpenGL's resident textures:       TextureObject passed as the texture_object argument and 2)
    call the unload() method
Overrides: Textures.Texture.load (inherited documentation)

### update(self) | source code
    Update texture data

    This method does nothing, but may be overriden in classes that
    need to update their texture data whenever drawn.

    It it called by the draw() method of any stimuli using
    textures when its texture object is active, so it can safely
    use put_sub_image() to manipulate its own texture data.
Overrides: Textures.Texture.update (inherited documentation)