Moai SDK SNAPSHOT (build 42)

MOAIImageTexture Class Reference

Binds an image (CPU memory) to a texture (GPU memory). Regions of the texture (or the entire texture) may be invalidated. Invalidated regions will be reloaded into GPU memory the next time the texture is bound.

Inheritance diagram for MOAIImageTexture:
Collaboration diagram for MOAIImageTexture:

List of all members.

Function List

 invalidate

Function Documentation

invalidate

Invalidate either a sub-region of the texture or the whole texture. Invalidated regions will be reloaded from the image the next time the texture is bound.


function invalidate ( MOAIImage self, number xMin, number yMin, number xMax, number yMax )

Parameters:
self( MOAIImage )
xMin( number )
yMin( number )
xMax( number )
yMax( number )
Returns:
nil