Java com.badlogic.gdx.graphics.glutils ShaderProgram fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.graphics.glutils ShaderProgram fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.graphics.glutils ShaderProgram.

The text is from its open source code.

Subclass

com.badlogic.gdx.graphics.glutils.ShaderProgram has subclasses.
Click this link to see all its subclasses.

Field

StringPOSITION_ATTRIBUTE
default name for position attributes
StringNORMAL_ATTRIBUTE
default name for normal attributes
StringCOLOR_ATTRIBUTE
default name for color attributes
StringTEXCOORD_ATTRIBUTE
default name for texcoords attributes, append texture unit number
booleanpedantic
flag indicating whether attributes & uniforms must be present at all times
booleanisCompiled
whether this program compiled successfully

Constructor

Method

voidbegin()
Makes OpenGL ES 2.0 use this vertex and fragment shader pair.
voiddispose()
Disposes all resources associated with this shader.
voidend()
Disables this shader.
StringgetLog()
booleanhasUniform(String name)
voidsetUniform1fv(String name, float[] values, int offset, int length)
voidsetUniform1fv(int location, float[] values, int offset, int length)
voidsetUniform3fv(String name, float[] values, int offset, int length)
voidsetUniform3fv(int location, float[] values, int offset, int length)
voidsetUniformf(String name, float value)
Sets the uniform with the given name.
voidsetUniformf(int location, float value)
voidsetUniformf(String name, Vector2 values)
Sets the uniform with the given name.
voidsetUniformf(int location, Vector2 values)
voidsetUniformf(String name, Vector3 values)
Sets the uniform with the given name.
voidsetUniformf(int location, Vector3 values)
voidsetUniformf(String name, Color values)
Sets the uniform with the given name.
voidsetUniformf(int location, Color values)
voidsetUniformf(String name, float value1, float value2, float value3, float value4)
Sets the uniform with the given name.
voidsetUniformf(int location, float value1, float value2, float value3, float value4)
voidsetUniformf(String name, float value1, float value2, float value3)
Sets the uniform with the given name.
voidsetUniformf(int location, float value1, float value2, float value3)
voidsetUniformf(String name, float value1, float value2)
Sets the uniform with the given name.
voidsetUniformf(int location, float value1, float value2)
voidsetUniformi(String name, int value)
Sets the uniform with the given name.
voidsetUniformi(int location, int value)
voidsetUniformMatrix(String name, Matrix4 matrix)
Sets the uniform matrix with the given name.
voidsetUniformMatrix(int location, Matrix4 matrix)
voidsetUniformMatrix(String name, Matrix3 matrix)
Sets the uniform matrix with the given name.
voidsetUniformMatrix(int location, Matrix3 matrix)