All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.daxie.joglf.gl.wrapper.GLWrapper Maven / Gradle / Ivy

There is a newer version: 11.7.0
Show newest version
package com.daxie.joglf.gl.wrapper;

import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;

import com.daxie.joglf.gl.front.GLFront;
import com.daxie.log.LogFile;

/**
 * Provides wrapper functions for several GL versions.
 * @author Daba
 *
 */
public class GLWrapper{
	private static GLVersion gl_version=GLVersion.GL4bc;
	
	/**
	 * Sets the GL version.
* This method is disabled after the framework is setup. * @param version Version */ public static void SetGLVersion(GLVersion version) { if(GLFront.IsSetup()==true) { LogFile.WriteWarn("[GLWrapper-SetGLVersion] This method is disabled after GL is setup.", true); return; } gl_version=version; } public static GLVersion GetGLVersion() { return gl_version; } public static void glActiveTexture(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glActiveTexture(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glActiveTexture(arg0); } public static void glAttachShader(int arg0,int arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glAttachShader(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glAttachShader(arg0, arg1); } public static void glBindBuffer(int arg0,int arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glBindBuffer(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glBindBuffer(arg0, arg1); } public static void glBindFramebuffer(int arg0,int arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glBindFramebuffer(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glBindFramebuffer(arg0, arg1); } public static void glBindRenderbuffer(int arg0,int arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glBindRenderbuffer(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glBindRenderbuffer(arg0, arg1); } public static void glBindSampler(int arg0,int arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glBindSampler(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glBindSampler(arg0, arg1); } public static void glBindTexture(int arg0,int arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glBindTexture(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glBindTexture(arg0, arg1); } public static void glBindVertexArray(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glBindVertexArray(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glBindVertexArray(arg0); } public static void glBlendFunc(int arg0,int arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glBlendFunc(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glBlendFunc(arg0, arg1); } public static void glBufferData(int arg0,long arg1,Buffer arg2,int arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glBufferData(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glBufferData(arg0, arg1, arg2, arg3); } public static int glCheckFramebufferStatus(int arg0) { int ret=-1; if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)ret=GL3Wrapper.glCheckFramebufferStatus(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)ret=GL4Wrapper.glCheckFramebufferStatus(arg0); return ret; } public static void glClear(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glClear(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glClear(arg0); } public static void glClearColor(float arg0,float arg1,float arg2,float arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glClearColor(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glClearColor(arg0, arg1, arg2, arg3); } public static void glClearStencil(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glClearStencil(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glClearStencil(arg0); } public static void glColorMask(boolean arg0,boolean arg1,boolean arg2,boolean arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glColorMask(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glColorMask(arg0, arg1, arg2, arg3); } public static void glCompileShader(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glCompileShader(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glCompileShader(arg0); } public static void glCopyTexImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glCopyTexImage2D(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glCopyTexImage2D(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); } public static int glCreateProgram() { int ret=-1; if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)ret=GL3Wrapper.glCreateProgram(); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)ret=GL4Wrapper.glCreateProgram(); return ret; } public static int glCreateShader(int arg0) { int ret=-1; if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)ret=GL3Wrapper.glCreateShader(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)ret=GL4Wrapper.glCreateShader(arg0); return ret; } public static void glCullFace(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glCullFace(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glCullFace(arg0); } public static void glDeleteBuffers(int arg0,IntBuffer arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDeleteBuffers(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDeleteBuffers(arg0, arg1); } public static void glDeleteShader(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDeleteShader(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDeleteShader(arg0); } public static void glDeleteVertexArrays(int arg0,IntBuffer arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDeleteVertexArrays(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDeleteVertexArrays(arg0, arg1); } public static void glDepthFunc(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDepthFunc(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDepthFunc(arg0); } public static void glDepthMask(boolean arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDepthMask(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDepthMask(arg0); } public static void glDisable(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDisable(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDisable(arg0); } public static void glDisableVertexAttribArray(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDisableVertexAttribArray(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDisableVertexAttribArray(arg0); } public static void glDrawArrays(int arg0,int arg1,int arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDrawArrays(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDrawArrays(arg0, arg1, arg2); } public static void glDrawBuffer(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDrawBuffer(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDrawBuffer(arg0); } public static void glDrawBuffers(int arg0,IntBuffer arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDrawBuffers(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDrawBuffers(arg0, arg1); } public static void glDrawElements(int arg0,int arg1,int arg2,int arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glDrawElements(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glDrawElements(arg0, arg1, arg2, arg3); } public static void glEnable(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glEnable(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glEnable(arg0); } public static void glEnableVertexAttribArray(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glEnableVertexAttribArray(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glEnableVertexAttribArray(arg0); } public static void glFlush() { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glFlush(); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glFlush(); } public static void glFramebufferRenderbuffer(int arg0,int arg1,int arg2,int arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glFramebufferRenderbuffer(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glFramebufferRenderbuffer(arg0, arg1, arg2, arg3); } public static void glFramebufferTexture(int arg0,int arg1,int arg2,int arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glFramebufferTexture(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glFramebufferTexture(arg0, arg1, arg2, arg3); } public static void glFramebufferTexture2D(int arg0,int arg1,int arg2,int arg3,int arg4) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glFramebufferTexture2D(arg0, arg1, arg2, arg3, arg4); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glFramebufferTexture2D(arg0, arg1, arg2, arg3, arg4); } public static void glGenBuffers(int arg0,IntBuffer arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGenBuffers(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGenBuffers(arg0, arg1); } public static void glGenerateMipmap(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGenerateMipmap(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGenerateMipmap(arg0); } public static void glGenFramebuffers(int arg0,IntBuffer arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGenFramebuffers(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGenFramebuffers(arg0, arg1); } public static void glGenRenderbuffers(int arg0,IntBuffer arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGenRenderbuffers(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGenRenderbuffers(arg0, arg1); } public static void glGenSamplers(int arg0,IntBuffer arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGenSamplers(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGenSamplers(arg0, arg1); } public static void glGenTextures(int arg0,IntBuffer arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGenTextures(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGenTextures(arg0, arg1); } public static void glGenVertexArrays(int arg0,IntBuffer arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGenVertexArrays(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGenVertexArrays(arg0, arg1); } public static void glGetProgramInfoLog(int arg0,int arg1,IntBuffer arg2,ByteBuffer arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGetProgramInfoLog(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGetProgramInfoLog(arg0, arg1, arg2, arg3); } public static void glGetProgramiv(int arg0,int arg1,IntBuffer arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGetProgramiv(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGetProgramiv(arg0, arg1, arg2); } public static void glGetShaderInfoLog(int arg0,int arg1,IntBuffer arg2,ByteBuffer arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGetShaderInfoLog(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGetShaderInfoLog(arg0, arg1, arg2, arg3); } public static void glGetShaderiv(int arg0,int arg1,IntBuffer arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGetShaderiv(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGetShaderiv(arg0, arg1, arg2); } public static void glGetTexImage(int arg0,int arg1,int arg2,int arg3,Buffer arg4) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glGetTexImage(arg0, arg1, arg2, arg3, arg4); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glGetTexImage(arg0, arg1, arg2, arg3, arg4); } public static int glGetUniformLocation(int arg0,String arg1) { int ret=-1; if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)ret=GL3Wrapper.glGetUniformLocation(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)ret=GL4Wrapper.glGetUniformLocation(arg0, arg1); return ret; } public static void glLinkProgram(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glLinkProgram(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glLinkProgram(arg0); } public static ByteBuffer glMapBuffer(int arg0,int arg1) { ByteBuffer ret=null; if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)ret=GL3Wrapper.glMapBuffer(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)ret=GL4Wrapper.glMapBuffer(arg0, arg1); return ret; } public static void glReadBuffer(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glReadBuffer(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glReadBuffer(arg0); } public static void glReadPixels(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,Buffer arg6) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glReadPixels(arg0, arg1, arg2, arg3, arg4, arg5, arg6); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glReadPixels(arg0, arg1, arg2, arg3, arg4, arg5, arg6); } public static void glRenderbufferStorage(int arg0,int arg1,int arg2,int arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glRenderbufferStorage(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glRenderbufferStorage(arg0, arg1, arg2, arg3); } public static void glSamplerParameteri(int arg0,int arg1,int arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glSamplerParameteri(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glSamplerParameteri(arg0, arg1, arg2); } public static void glShaderSource(int arg0,int arg1,String[] arg2,IntBuffer arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glShaderSource(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glShaderSource(arg0, arg1, arg2, arg3); } public static void glStencilFunc(int arg0,int arg1,int arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glStencilFunc(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glStencilFunc(arg0, arg1, arg2); } public static void glStencilOp(int arg0,int arg1,int arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glStencilOp(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glStencilOp(arg0, arg1, arg2); } public static void glTexImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,Buffer arg8) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glTexImage2D(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glTexImage2D(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); } public static void glTexParameterf(int arg0,int arg1,float arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glTexParameterf(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glTexParameterf(arg0, arg1, arg2); } public static void glTexParameterfv(int arg0,int arg1,FloatBuffer arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glTexParameterfv(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glTexParameterfv(arg0, arg1, arg2); } public static void glTexParameteri(int arg0,int arg1,int arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glTexParameteri(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glTexParameteri(arg0, arg1, arg2); } public static void glUniform1f(int arg0,float arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glUniform1f(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glUniform1f(arg0, arg1); } public static void glUniform1i(int arg0,int arg1) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glUniform1i(arg0, arg1); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glUniform1i(arg0, arg1); } public static void glUniform3fv(int arg0,int arg1,FloatBuffer arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glUniform3fv(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glUniform3fv(arg0, arg1, arg2); } public static void glUniform4fv(int arg0,int arg1,FloatBuffer arg2) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glUniform4fv(arg0, arg1, arg2); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glUniform4fv(arg0, arg1, arg2); } public static void glUniformMatrix4fv(int arg0,int arg1,boolean arg2,FloatBuffer arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glUniformMatrix4fv(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glUniformMatrix4fv(arg0, arg1, arg2, arg3); } public static boolean glUnmapBuffer(int arg0) { boolean ret=false; if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glUnmapBuffer(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glUnmapBuffer(arg0); return ret; } public static void glUseProgram(int arg0) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glUseProgram(arg0); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glUseProgram(arg0); } public static void glVertexAttribPointer(int arg0,int arg1,int arg2,boolean arg3,int arg4,long arg5) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glVertexAttribPointer(arg0, arg1, arg2, arg3, arg4, arg5); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glVertexAttribPointer(arg0, arg1, arg2, arg3, arg4, arg5); } public static void glViewport(int arg0,int arg1,int arg2,int arg3) { if(gl_version==GLVersion.GL3bc||gl_version==GLVersion.GL3)GL3Wrapper.glViewport(arg0, arg1, arg2, arg3); else if(gl_version==GLVersion.GL4bc||gl_version==GLVersion.GL4)GL4Wrapper.glViewport(arg0, arg1, arg2, arg3); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy