KudanAR - Android  1.6.0
ARTextureMaterial Class Reference

Inherits ARMaterial.

Public Member Functions

float getAlpha ()
 
void setAlpha (float alpha)
 
 ARTextureMaterial ()
 
 ARTextureMaterial (ARTexture texture)
 
void setTexture (ARTexture newTexture)
 
ARTexture getTexture ()
 
boolean prepareRendererWithNode (ARNode node)
 
- 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 ARTextureMaterial is a material for shading a texture. This is commonly used ith 3D models that do not require dynamic lighting.

Constructor & Destructor Documentation

◆ ARTextureMaterial() [1/2]

ARTextureMaterial.ARTextureMaterial ( )

Initialises empty ARTextureMaterial.

◆ ARTextureMaterial() [2/2]

ARTextureMaterial.ARTextureMaterial ( ARTexture  texture)

Initialises ARTextureMaterial with ARTexture.

Parameters
texture

Member Function Documentation

◆ getAlpha()

float ARTextureMaterial.getAlpha ( )

Returns the alpha value of a this texture material.

Returns
mAlpha

◆ getTexture()

ARTexture ARTextureMaterial.getTexture ( )

Return ARTextureMaterials ARTexture.

Returns

◆ prepareRendererWithNode()

boolean ARTextureMaterial.prepareRendererWithNode ( ARNode  node)

Prepare renderer to draw ARTextureMaterial.

Parameters
node
Returns
true

Reimplemented from ARMaterial.

◆ setAlpha()

void ARTextureMaterial.setAlpha ( float  alpha)

Sets the alpha layer in a texture material.

Parameters
alpha

◆ setTexture()

void ARTextureMaterial.setTexture ( ARTexture  newTexture)

Sets ARTextureMaterials texture.

Parameters
newTexture

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