KudanAR - Android
ARVideoTextureMaterial Class Reference
+ Inheritance diagram for ARVideoTextureMaterial:
+ Collaboration diagram for ARVideoTextureMaterial:

Public Member Functions

 ARVideoTextureMaterial ()
 
 ARVideoTextureMaterial (ARTextureOES texture)
 
boolean prepareRendererWithNode (ARNode node)
 
void setUVTransform (float[]uvTransform)
 
- Public Member Functions inherited from ARMaterial
boolean getTransparent ()
 
void setTransparent (boolean transparent)
 
boolean getDepthOnly ()
 
void setDepthOnly (boolean depthOnly)
 
void setDepthWrite (boolean depthWrite)
 
boolean getDepthWrite ()
 
void setDepthTest (boolean depthTest)
 
boolean getDepthTest ()
 
boolean prepareRendererWithNode (ARNode node)
 
void setName (String name)
 
String getName ()
 

Detailed Description

An ARVideoTextureMaterial is a material designed specifically for use with an ARVideoTexture. It provides extra properties unique to ARVideoTextures, including alpha transparency and fade time.

Constructor & Destructor Documentation

Initialises an empty ARVideoTextureMaterial to be assigned values later.

ARVideoTextureMaterial ( ARTextureOES  texture)
inline

Initialises an ARVideoTextureMaterial with a texture.

Example of use:

ARVideoTextureMaterial videoTextureMaterial = new ARVideoTextureMaterial(texture);
Parameters
textureThe texture to initialise the video texture material with.

Member Function Documentation

boolean prepareRendererWithNode ( ARNode  node)
inline

Prepares renderer to render ARVideoTextureMaterial. Binds the ARVideoTextureShader for rendering and sets its UV transform and texture parameters.

Parameters
nodeARMeshNode to be rendered.
Returns
void setUVTransform ( float[]  uvTransform)
inline

Sets the ARVideoTextureMaterial UV transformation.

Parameters
uvTransform

The documentation for this class was generated from the following file: