KudanAR - Android  1.6.0
ARCameraBackgroundMaterial Class Reference

Inherits ARMaterial.

Public Member Functions

void setMarkerModelViewProjection (Matrix4f matrix)
 
Matrix4f getMarkerModelViewProjection ()
 
void setTexture (ARTexture texture)
 
ARTexture getTexture ()
 
 ARCameraBackgroundMaterial ()
 
 ARCameraBackgroundMaterial (ARTexture 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

A class representing a material responsible for shading the camera background texture. Used in ARExtractedCameraTexture.

Constructor & Destructor Documentation

◆ ARCameraBackgroundMaterial() [1/2]

ARCameraBackgroundMaterial.ARCameraBackgroundMaterial ( )

◆ ARCameraBackgroundMaterial() [2/2]

ARCameraBackgroundMaterial.ARCameraBackgroundMaterial ( ARTexture  texture)

Initialises ARCameraBackgroundMaterial with an ARTexture.

Parameters
textureCamera Texture.

Member Function Documentation

◆ getMarkerModelViewProjection()

Matrix4f ARCameraBackgroundMaterial.getMarkerModelViewProjection ( )

Returns the model view projection matrix of the portion of the camera to be rendered.

Returns
Matrix4f The model view matrix.

◆ getTexture()

ARTexture ARCameraBackgroundMaterial.getTexture ( )

Returns the camera background texture associated with this material.

Returns
The material's texture.

◆ prepareRendererWithNode()

boolean ARCameraBackgroundMaterial.prepareRendererWithNode ( ARNode  node)

Prepares the ARCameraBackgroundMaterial for rendering. Binds the ARCameraBackgroundShader for rendering and updates the UV transform, model view projection matrix and sets the texture parameters.

Parameters
node
Returns
true

Reimplemented from ARMaterial.

◆ setMarkerModelViewProjection()

void ARCameraBackgroundMaterial.setMarkerModelViewProjection ( Matrix4f  matrix)

Sets ARCameraBackgroundMaterials model view projection matrix.

Parameters
matrixThe model view projection matrix of the portion of the camera to be rendered.

◆ setTexture()

void ARCameraBackgroundMaterial.setTexture ( ARTexture  texture)

Sets the texture to be applied to he ARCameraBackgroundMaterial.

Parameters
texture

◆ setUVTransform()

void ARCameraBackgroundMaterial.setUVTransform ( float[]  uvTransform)

Sets the ARCameraBackgroundMaterial UV transform.

Parameters
uvTransformfloat[] containing the UV transform matrix.

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