public class GLSLUtils
extends java.lang.Object
Constructor and Description |
---|
GLSLUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkOpenGLError()
Prints a message describing any OpenGL errors which have occurred.
|
static void |
printProgramLog(int program)
Fetches and prints the Program Information Log for the GLSL shader program
specified by parameter "program", which must be a legal GLSL program object ID.
|
static void |
printShaderLog(int shader)
Fetches and prints the Shader Information Log for the GLSL shader
specified by parameter "shader", which must be a legal shader object ID.
|
static void |
printShaderSource(java.lang.String[] program)
Prints the set of lines contained in the specified array, which is
assumed to be a GLSL shader program with each line terminated with
an appropriate line terminator.
|
static java.lang.String[] |
readShaderSource(java.lang.String filename)
Reads the specified text file and returns an array of strings
where each string contains one line of text from the file.
|
public static java.lang.String[] readShaderSource(java.lang.String filename)
public static void printShaderSource(java.lang.String[] program)
public static boolean checkOpenGLError()
public static void printShaderLog(int shader)
public static void printProgramLog(int program)