KudanAR - Android  1.6.0
ARVideoTextureMaterial Class Reference

Inherits ARMaterial.

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 ()
 
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

◆ ARVideoTextureMaterial() [1/2]

ARVideoTextureMaterial.ARVideoTextureMaterial ( )

Initialises an empty ARVideoTextureMaterial to be assigned values later.

◆ ARVideoTextureMaterial() [2/2]

ARVideoTextureMaterial.ARVideoTextureMaterial ( ARTextureOES  texture)

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

◆ prepareRendererWithNode()

boolean ARVideoTextureMaterial.prepareRendererWithNode ( ARNode  node)

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

Parameters
nodeARMeshNode to be rendered.
Returns

Reimplemented from ARMaterial.

◆ setUVTransform()

void ARVideoTextureMaterial.setUVTransform ( float[]  uvTransform)

Sets the ARVideoTextureMaterial UV transformation.

Parameters
uvTransform

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