KudanAR - Android  1.6.0
ARColourMaterial Class Reference

Inherits ARMaterial.

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 ()
 
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() [1/2]

ARColourMaterial.ARColourMaterial ( )

Initialise an empty ARColourMaterial with values to be set later.

◆ ARColourMaterial() [2/2]

ARColourMaterial.ARColourMaterial ( Vector3f  colour)

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

◆ prepareRendererWithNode()

boolean ARColourMaterial.prepareRendererWithNode ( ARNode  node)

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

Parameters
nodeNode material is attached to.
Returns
true

Reimplemented from ARMaterial.

◆ setColour()

void ARColourMaterial.setColour ( Vector3f  colour)

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: