KudanAR - Android  1.6.0
ARAlphaVideoTextureShader Class Reference

Inherits ARShaderProgram.

Public Member Functions

 ARAlphaVideoTextureShader ()
 
void setUVTransform (float[]uvTransform)
 
- Public Member Functions inherited from ARShaderProgram
void setShaderStrings (String vertexShaderString, String fragmentShaderString)
 
void compileShaders ()
 
void useProgram ()
 
void prepareRenderer ()
 

Static Public Member Functions

static ARAlphaVideoTextureShader getShader ()
 
- Static Public Member Functions inherited from ARShaderProgram
static int createShader (String vertexShaderSrc, String fragmentShaderSrc)
 
static void checkError ()
 

Additional Inherited Members

- Protected Attributes inherited from ARShaderProgram
int mShaderID
 

Detailed Description

The shader program used to draw ARAlphaVideoNodes.

Constructor & Destructor Documentation

◆ ARAlphaVideoTextureShader()

ARAlphaVideoTextureShader.ARAlphaVideoTextureShader ( )

Initialises the ARAlphaVideoTextureShader and sets shader strings for compilation.

Member Function Documentation

◆ getShader()

static ARAlphaVideoTextureShader ARAlphaVideoTextureShader.getShader ( )
static

Static method for getting ARAlphaVideoTextureShader from the ARShaderManager. Creates a new instance if one doesn't already exist.

Returns
The singleton instance of ARAlphaVideoTextureShader.

◆ setUVTransform()

void ARAlphaVideoTextureShader.setUVTransform ( float[]  uvTransform)

Updates uvTransform in ARAlphaVideoNode shader.

Parameters
uvTransformArray of floats containing the UV transform matrix.

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