public class

PositionColorShaderProgram

extends ShaderProgram
java.lang.Object
   ↳ org.andengine.opengl.shader.ShaderProgram
     ↳ org.andengine.opengl.shader.PositionColorShaderProgram

Class Overview

(c) Zynga 2011

Summary

Constants
String FRAGMENTSHADER
String VERTEXSHADER
[Expand]
Inherited Constants
From interface org.andengine.opengl.shader.constants.ShaderProgramConstants
Fields
public static int sUniformModelViewPositionMatrixLocation
[Expand]
Inherited Fields
From class org.andengine.opengl.shader.ShaderProgram
Public Methods
void bind(GLState pGLState, VertexBufferObjectAttributes pVertexBufferObjectAttributes)
static PositionColorShaderProgram getInstance()
void unbind(GLState pGLState)
Protected Methods
void link(GLState pGLState)
[Expand]
Inherited Methods
From class org.andengine.opengl.shader.ShaderProgram
From class java.lang.Object

Constants

public static final String FRAGMENTSHADER

Constant Value: "precision lowp float; varying vec4 v_color; void main() { gl_FragColor = v_color; }"

public static final String VERTEXSHADER

Constant Value: "uniform mat4 u_modelViewProjectionMatrix; attribute vec4 a_position; attribute vec4 a_color; varying vec4 v_color; void main() { gl_Position = u_modelViewProjectionMatrix * a_position; v_color = a_color; }"

Fields

public static int sUniformModelViewPositionMatrixLocation

Public Methods

public void bind (GLState pGLState, VertexBufferObjectAttributes pVertexBufferObjectAttributes)

public static PositionColorShaderProgram getInstance ()

public void unbind (GLState pGLState)

Protected Methods

protected void link (GLState pGLState)