KudanAR - Android
ARMaterial Class Reference
+ Inheritance diagram for ARMaterial:

Public Member Functions

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

A material represents how an object is shaded. This serves as a base class and shouldn't be used directly.

Member Function Documentation

boolean getDepthOnly ( )
inline

Whether the renderer draws the material to the depth buffer only.

Returns
boolean
boolean getDepthTest ( )
inline

Returns whether pixels rendered with this material should be depth tested against existing pixels in the framebuffer. Default is true.

Returns
Whether pixels rendered with this material should be depth tested.
boolean getDepthWrite ( )
inline

Whether the renderer draws the material to the depth buffer only.

Returns
boolean
String getName ( )
inline

Returns the name of the ARMaterial.

Returns
The ARMaterial's name.
boolean getTransparent ( )
inline

Returns whether or not this material uses alpha transparency. Default is false.

Returns
Whether this material uses transparency.
boolean prepareRendererWithNode ( ARNode  node)
inline

Prepares renderer to draw ARMaterial. Sets whether the material has a transparency layer or should draw to the depth buffer only. This is handled automatically by the renderer and shouldn't be called directly.

Parameters
node
Returns
void setDepthOnly ( boolean  depthOnly)
inline

Sets whether the renderer draws the material to the depth buffer only.

Parameters
depthOnly
void setDepthTest ( boolean  depthTest)
inline

Sets whether pixels rendered with this material should be depth tested against existing pixels in the framebuffer. Default: YES.

Parameters
depthTest
void setDepthWrite ( boolean  depthWrite)
inline

Sets whether the renderer writes the material to the depth buffer only.

Parameters
depthWrite
void setName ( String  name)
inline

Sets the name of the ARMaterial.

Example of use: material.setName("example");

Parameters
nameThe name to assign to the material.
void setTransparent ( boolean  transparent)
inline

Sets whether the material is transparent.

Parameters
transparent

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