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

Public Member Functions

 ARColourMaterial ()
 
 ARColourMaterial (Vector3f colour)
 
void setColour (Vector3f colour)
 
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 ()
 
boolean prepareRendererWithNode (ARNode node)
 
void setName (String name)
 
String getName ()
 

Detailed Description

The ARColourMaterial is a material that renders a single colour. Alpha transparency is supported.

Constructor & Destructor Documentation

ARColourMaterial ( )
inline

Initialise an empty ARColourMaterial with values to be set later.

ARColourMaterial ( Vector3f  colour)
inline

Initialise an ARColourMaterial with with red, green and blue components stored in a vector. Each component is in the range 0..1.

Parameters
colourA Vector3f containing 3 values in the range 0..1.

Member Function Documentation

boolean prepareRendererWithNode ( ARNode  node)
inline

Prepares renderer to draw ARColourMaterial. Binds the ARColourTextureShader and sets the colour to draw.

Parameters
nodeNode material is attached to.
Returns
true
void setColour ( Vector3f  colour)
inline

Set the colour of the ARColourMaterial with red, green and blue components stored in a vector. Each component is in the range 0..1.

Parameters
colourA Vector3f containing 3 values in the range 0..1.

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