Z.CameraTexture
Inherits from Z.Texture
Description
The Z.CameraTexture node makes it possible to use the device's camera feed as a texture.
Due to the internal workings of this node, no use of wrap
and mipmap
should be made. Texture transforms position
, scale
, and rotation
may produce unexpected results.
Example
var mycameratexture = Z.CameraTexture();
var myplane = Z.Object("plane.aro");
myplane.skin(mycameratexture);
Provided by Z.CameraTexture
Constructor
Enumerations
CropMode |
The region of the camera frames that this texture displays. |
Functions
cropMode( ) |
Gets the region of the camera frames that this texture displays. |
cropMode(...) |
Sets which region of the camera frames that the texture will display. |
snapshot( ) |
Copies the current camera frame into the supplied Z.DataTexture. |
Inherited from Z.Texture
Enumerations
Channel |
A color channel of a texture. |
Mipmap |
The mipmapping mode for textures. |
Wrap |
The wrap mode for textures. |
Functions
Inherited from Z.Base
Functions
emit(...) |
Calls the handler functions attached to an event. |
hasTag(...) |
Returns true if this object has the specified tag. |
off(...) |
Removes a handler function from an event. |
on(...) |
Attaches a handler function to an event. |
one(...) |
Attaches a single-use handler function to an event. |
pushTag(...) |
Adds a tag to this object. |
removeTag(...) |
Removes a tag from this object. |
tags( ) |
Gets an array of the tags that this object belongs to. |
tags(...) |
Sets the array of the tags that this object belongs to. |