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

Z.CameraTexture( ) Constructs a new Z.CameraTexture object.

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

mipmap( ) Gets the mipmapping mode of the texture.
mipmap(...) Sets the mipmapping mode of the texture.
position( ) Gets the position offset of the texture.
position(...) Sets the position offset of the texture.
rotation( ) Gets the rotation of the texture.
rotation(...) Sets the rotation of the texture.
scale( ) Gets the scale of the texture.
scale(...) Sets the scale of the texture.
size( ) Gets the size of the texture.
wrap( ) Gets the wrap mode of the texture.
wrap(...) Sets the wrap mode of the texture.

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.
zapcode branded_zapcode i