public class OpenGlHelper
extends java.lang.Object
Constructor and Description |
---|
OpenGlHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areShadersSupported() |
static java.lang.String |
getCpu() |
static java.lang.String |
getLogText() |
static void |
glAttachShader(int program,
int shaderIn) |
static void |
glBindBuffer(int target,
int buffer) |
static void |
glBindFramebuffer(int target,
int framebufferIn) |
static void |
glBindRenderbuffer(int target,
int renderbuffer) |
static void |
glBlendFunc(int sFactorRGB,
int dFactorRGB,
int sfactorAlpha,
int dfactorAlpha) |
static void |
glBufferData(int target,
java.nio.ByteBuffer data,
int usage) |
static int |
glCheckFramebufferStatus(int target) |
static void |
glCompileShader(int shaderIn) |
static int |
glCreateProgram() |
static int |
glCreateShader(int type) |
static void |
glDeleteBuffers(int buffer) |
static void |
glDeleteFramebuffers(int framebufferIn) |
static void |
glDeleteProgram(int program) |
static void |
glDeleteRenderbuffers(int renderbuffer) |
static void |
glDeleteShader(int shaderIn) |
static void |
glFramebufferRenderbuffer(int target,
int attachment,
int renderBufferTarget,
int renderBuffer) |
static void |
glFramebufferTexture2D(int target,
int attachment,
int textarget,
int texture,
int level) |
static int |
glGenBuffers() |
static int |
glGenFramebuffers() |
static int |
glGenRenderbuffers() |
static int |
glGetAttribLocation(int program,
java.lang.CharSequence name) |
static int |
glGetProgrami(int program,
int pname) |
static java.lang.String |
glGetProgramInfoLog(int program,
int maxLength) |
static int |
glGetShaderi(int shaderIn,
int pname) |
static java.lang.String |
glGetShaderInfoLog(int shaderIn,
int maxLength) |
static int |
glGetUniformLocation(int programObj,
java.lang.CharSequence name) |
static void |
glLinkProgram(int program) |
static void |
glRenderbufferStorage(int target,
int internalFormat,
int width,
int height) |
static void |
glShaderSource(int shaderIn,
java.nio.ByteBuffer string) |
static void |
glUniform1(int location,
java.nio.FloatBuffer values) |
static void |
glUniform1(int location,
java.nio.IntBuffer values) |
static void |
glUniform1i(int location,
int v0) |
static void |
glUniform2(int location,
java.nio.FloatBuffer values) |
static void |
glUniform2(int location,
java.nio.IntBuffer values) |
static void |
glUniform3(int location,
java.nio.FloatBuffer values) |
static void |
glUniform3(int location,
java.nio.IntBuffer values) |
static void |
glUniform4(int location,
java.nio.FloatBuffer values) |
static void |
glUniform4(int location,
java.nio.IntBuffer values) |
static void |
glUniformMatrix2(int location,
boolean transpose,
java.nio.FloatBuffer matrices) |
static void |
glUniformMatrix3(int location,
boolean transpose,
java.nio.FloatBuffer matrices) |
static void |
glUniformMatrix4(int location,
boolean transpose,
java.nio.FloatBuffer matrices) |
static void |
glUseProgram(int program) |
static void |
initializeTextures() |
static boolean |
isFramebufferEnabled() |
static void |
openFile(java.io.File fileIn) |
static void |
renderDirections(int p_188785_0_) |
static void |
setActiveTexture(int texture) |
static void |
setClientActiveTexture(int texture) |
static void |
setLightmapTextureCoords(int target,
float p_77475_1_,
float t) |
static boolean |
useVbo() |
public static boolean nvidia
public static boolean ati
public static int GL_FRAMEBUFFER
public static int GL_RENDERBUFFER
public static int GL_COLOR_ATTACHMENT0
public static int GL_DEPTH_ATTACHMENT
public static int GL_FRAMEBUFFER_COMPLETE
public static int GL_FB_INCOMPLETE_ATTACHMENT
public static int GL_FB_INCOMPLETE_MISS_ATTACH
public static int GL_FB_INCOMPLETE_DRAW_BUFFER
public static int GL_FB_INCOMPLETE_READ_BUFFER
public static boolean framebufferSupported
public static int GL_LINK_STATUS
public static int GL_COMPILE_STATUS
public static int GL_VERTEX_SHADER
public static int GL_FRAGMENT_SHADER
public static int defaultTexUnit
public static int lightmapTexUnit
public static int GL_TEXTURE2
public static int GL_COMBINE
public static int GL_INTERPOLATE
public static int GL_PRIMARY_COLOR
public static int GL_CONSTANT
public static int GL_PREVIOUS
public static int GL_COMBINE_RGB
public static int GL_SOURCE0_RGB
public static int GL_SOURCE1_RGB
public static int GL_SOURCE2_RGB
public static int GL_OPERAND0_RGB
public static int GL_OPERAND1_RGB
public static int GL_OPERAND2_RGB
public static int GL_COMBINE_ALPHA
public static int GL_SOURCE0_ALPHA
public static int GL_SOURCE1_ALPHA
public static int GL_SOURCE2_ALPHA
public static int GL_OPERAND0_ALPHA
public static int GL_OPERAND1_ALPHA
public static int GL_OPERAND2_ALPHA
public static boolean extBlendFuncSeparate
public static boolean openGL21
public static boolean shadersSupported
public static boolean vboSupported
public static boolean vboSupportedAti
public static int GL_ARRAY_BUFFER
public static int GL_STATIC_DRAW
public static float lastBrightnessX
public static float lastBrightnessY
public static void initializeTextures()
public static boolean areShadersSupported()
public static java.lang.String getLogText()
public static int glGetProgrami(int program, int pname)
public static void glAttachShader(int program, int shaderIn)
public static void glDeleteShader(int shaderIn)
public static int glCreateShader(int type)
public static void glShaderSource(int shaderIn, java.nio.ByteBuffer string)
public static void glCompileShader(int shaderIn)
public static int glGetShaderi(int shaderIn, int pname)
public static java.lang.String glGetShaderInfoLog(int shaderIn, int maxLength)
public static java.lang.String glGetProgramInfoLog(int program, int maxLength)
public static void glUseProgram(int program)
public static int glCreateProgram()
public static void glDeleteProgram(int program)
public static void glLinkProgram(int program)
public static int glGetUniformLocation(int programObj, java.lang.CharSequence name)
public static void glUniform1(int location, java.nio.IntBuffer values)
public static void glUniform1i(int location, int v0)
public static void glUniform1(int location, java.nio.FloatBuffer values)
public static void glUniform2(int location, java.nio.IntBuffer values)
public static void glUniform2(int location, java.nio.FloatBuffer values)
public static void glUniform3(int location, java.nio.IntBuffer values)
public static void glUniform3(int location, java.nio.FloatBuffer values)
public static void glUniform4(int location, java.nio.IntBuffer values)
public static void glUniform4(int location, java.nio.FloatBuffer values)
public static void glUniformMatrix2(int location, boolean transpose, java.nio.FloatBuffer matrices)
public static void glUniformMatrix3(int location, boolean transpose, java.nio.FloatBuffer matrices)
public static void glUniformMatrix4(int location, boolean transpose, java.nio.FloatBuffer matrices)
public static int glGetAttribLocation(int program, java.lang.CharSequence name)
public static int glGenBuffers()
public static void glBindBuffer(int target, int buffer)
public static void glBufferData(int target, java.nio.ByteBuffer data, int usage)
public static void glDeleteBuffers(int buffer)
public static boolean useVbo()
public static void glBindFramebuffer(int target, int framebufferIn)
public static void glBindRenderbuffer(int target, int renderbuffer)
public static void glDeleteRenderbuffers(int renderbuffer)
public static void glDeleteFramebuffers(int framebufferIn)
public static int glGenFramebuffers()
public static int glGenRenderbuffers()
public static void glRenderbufferStorage(int target, int internalFormat, int width, int height)
public static void glFramebufferRenderbuffer(int target, int attachment, int renderBufferTarget, int renderBuffer)
public static int glCheckFramebufferStatus(int target)
public static void glFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level)
public static void setActiveTexture(int texture)
public static void setClientActiveTexture(int texture)
public static void setLightmapTextureCoords(int target, float p_77475_1_, float t)
public static void glBlendFunc(int sFactorRGB, int dFactorRGB, int sfactorAlpha, int dfactorAlpha)
public static boolean isFramebufferEnabled()
public static java.lang.String getCpu()
public static void renderDirections(int p_188785_0_)
public static void openFile(java.io.File fileIn)