KudanAR - Android  1.6.0
ARColourShader Class Reference

Inherits ARShaderProgram.

Public Member Functions

 ARColourShader ()
 
void setColour (Vector3f colour)
 
- Public Member Functions inherited from ARShaderProgram
void setShaderStrings (String vertexShaderString, String fragmentShaderString)
 
void compileShaders ()
 
void useProgram ()
 
void prepareRenderer ()
 

Static Public Member Functions

static ARColourShader 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

Class representing the ARColourShader. Used to draw solid colours.

Constructor & Destructor Documentation

◆ ARColourShader()

ARColourShader.ARColourShader ( )

Initialises ARColourShader and sets the shader strings ready for compilation.

Member Function Documentation

◆ getShader()

static ARColourShader ARColourShader.getShader ( )
static

Static method that gets ARColourShader from the ARShaderManager. If the shader does not exist it is created.

Returns
ARColourShader

◆ setColour()

void ARColourShader.setColour ( Vector3f  colour)

Sets colour in shader.

Parameters
colourVector3f representing the R,G,B colour values.

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