/**
  * Single return value version of: {@link #glGetActiveSubroutineUniformi(int, int, int, int,
  * java.nio.ByteBuffer) GetActiveSubroutineUniformi}
  */
 public static int glGetActiveSubroutineUniformi(
     int program, int shadertype, int index, int pname) {
   APIBuffer __buffer = apiBuffer();
   int values = __buffer.intParam();
   nglGetActiveSubroutineUniformiv(program, shadertype, index, pname, __buffer.address() + values);
   return __buffer.intValue(values);
 }
 /** Array version of: {@link #glGetUniformIndices GetUniformIndices} */
 public static void glGetUniformIndices(
     int program, CharSequence[] uniformNames, IntBuffer uniformIndices) {
   if (LWJGLUtil.CHECKS) checkBuffer(uniformIndices, uniformNames.length);
   APIBuffer __buffer = apiBuffer();
   int uniformNamesAddress = __buffer.bufferParam(uniformNames.length << POINTER_SHIFT);
   ByteBuffer[] uniformNamesBuffers = new ByteBuffer[uniformNames.length];
   for (int i = 0; i < uniformNames.length; i++)
     __buffer.pointerParam(
         uniformNamesAddress,
         i,
         memAddress(uniformNamesBuffers[i] = memEncodeASCII(uniformNames[i], true)));
   nglGetUniformIndices(
       program,
       uniformNames.length,
       __buffer.address(uniformNamesAddress),
       memAddress(uniformIndices));
 }
 /** String return version of: {@link #glGetActiveUniformName GetActiveUniformName} */
 public static String glGetActiveUniformName(int program, int uniformIndex, int bufSize) {
   APIBuffer __buffer = apiBuffer();
   int length = __buffer.intParam();
   int uniformName = __buffer.bufferParam(bufSize);
   nglGetActiveUniformName(
       program, uniformIndex, bufSize, __buffer.address(length), __buffer.address(uniformName));
   return memDecodeASCII(memByteBuffer(__buffer.address(uniformName), __buffer.intValue(length)));
 }
 /** Single value version of: {@link #glGetActiveUniformsiv GetActiveUniformsiv} */
 public static int glGetActiveUniformsi(int program, int uniformIndex, int pname) {
   APIBuffer __buffer = apiBuffer();
   int params = __buffer.intParam();
   int uniformIndices = __buffer.intParam(uniformIndex);
   nglGetActiveUniformsiv(
       program, 1, __buffer.address(uniformIndices), pname, __buffer.address(params));
   return __buffer.intValue(params);
 }
 /** Single uniformName version of: {@link #glGetUniformIndices GetUniformIndices} */
 public static int glGetUniformIndices(int program, CharSequence uniformName) {
   APIBuffer __buffer = apiBuffer();
   ByteBuffer uniformNameBuffers = memEncodeASCII(uniformName, true);
   int uniformNamesAddress = __buffer.pointerParam(memAddress(uniformNameBuffers));
   int uniformIndices = __buffer.intParam();
   nglGetUniformIndices(
       program, 1, __buffer.address(uniformNamesAddress), __buffer.address(uniformIndices));
   return __buffer.intValue(uniformIndices);
 }
 /**
  * String return (w/ implicit max length) version of: {@link #glGetActiveUniformBlockName
  * GetActiveUniformBlockName}
  */
 public static String glGetActiveUniformBlockName(int program, int uniformBlockIndex) {
   int bufSize =
       glGetActiveUniformBlocki(program, uniformBlockIndex, GL_UNIFORM_BLOCK_NAME_LENGTH);
   APIBuffer __buffer = apiBuffer();
   int length = __buffer.intParam();
   int uniformBlockName = __buffer.bufferParam(bufSize);
   nglGetActiveUniformBlockName(
       program,
       uniformBlockIndex,
       bufSize,
       __buffer.address(length),
       __buffer.address(uniformBlockName));
   return memDecodeASCII(
       memByteBuffer(__buffer.address(uniformBlockName), __buffer.intValue(length)));
 }
 /** String return version of: {@link #glGetActiveSubroutineName GetActiveSubroutineName} */
 public static String glGetActiveSubroutineName(
     int program, int shadertype, int index, int bufsize) {
   APIBuffer __buffer = apiBuffer();
   int length = __buffer.intParam();
   int name = __buffer.bufferParam(bufsize);
   nglGetActiveSubroutineName(
       program,
       shadertype,
       index,
       bufsize,
       __buffer.address() + length,
       __buffer.address() + name);
   return memDecodeASCII(memByteBuffer(__buffer.address() + name, __buffer.intValue(length)));
 }
 /**
  * String return (w/ implicit max length) version of: {@link #glGetActiveSubroutineName
  * GetActiveSubroutineName}
  */
 public static String glGetActiveSubroutineName(int program, int shadertype, int index) {
   int bufsize = glGetProgramStagei(program, shadertype, GL_ACTIVE_SUBROUTINE_MAX_LENGTH);
   APIBuffer __buffer = apiBuffer();
   int length = __buffer.intParam();
   int name = __buffer.bufferParam(bufsize);
   nglGetActiveSubroutineName(
       program,
       shadertype,
       index,
       bufsize,
       __buffer.address() + length,
       __buffer.address() + name);
   return memDecodeASCII(memByteBuffer(__buffer.address() + name, __buffer.intValue(length)));
 }
 /**
  * String return (w/ implicit max length) version of: {@link #glGetActiveSubroutineUniformName
  * GetActiveSubroutineUniformName}
  */
 public static String glGetActiveSubroutineUniformName(int program, int shadertype, int index) {
   int bufsize =
       glGetActiveSubroutineUniformi(program, shadertype, index, GL31.GL_UNIFORM_NAME_LENGTH);
   APIBuffer __buffer = apiBuffer();
   int length = __buffer.intParam();
   int name = __buffer.bufferParam(bufsize);
   nglGetActiveSubroutineUniformName(
       program,
       shadertype,
       index,
       bufsize,
       __buffer.address() + length,
       __buffer.address() + name);
   return memDecodeASCII(memByteBuffer(__buffer.address() + name, __buffer.intValue(length)));
 }
Пример #10
0
 /** Single return value version of: {@link #glGetBufferPointerv GetBufferPointerv} */
 public static long glGetBufferPointer(int target, int pname) {
   APIBuffer __buffer = apiBuffer();
   int params = __buffer.pointerParam();
   nglGetBufferPointerv(target, pname, __buffer.address(params));
   return __buffer.pointerValue(params);
 }
Пример #11
0
 /** Single return value version of: {@link #glGenBuffers GenBuffers} */
 public static int glGenBuffers() {
   APIBuffer __buffer = apiBuffer();
   int buffers = __buffer.intParam();
   nglGenBuffers(1, __buffer.address(buffers));
   return __buffer.intValue(buffers);
 }
Пример #12
0
 /** Single value version of: {@link #glDeleteBuffers DeleteBuffers} */
 public static void glDeleteBuffers(int buffer) {
   APIBuffer __buffer = apiBuffer();
   int buffers = __buffer.intParam(buffer);
   nglDeleteBuffers(1, __buffer.address(buffers));
 }
 /** Single return value version of: {@link #glGetTexParameterIuivEXT GetTexParameterIuivEXT} */
 public static int glGetTexParameterIuiEXT(int target, int pname) {
   APIBuffer __buffer = apiBuffer();
   int params = __buffer.intParam();
   nglGetTexParameterIuivEXT(target, pname, __buffer.address(params));
   return __buffer.intValue(params);
 }
 /** Single value version of: {@link #glTexParameterIuivEXT TexParameterIuivEXT} */
 public static void glTexParameterIuiEXT(int target, int pname, int param) {
   APIBuffer __buffer = apiBuffer();
   int params = __buffer.intParam(param);
   nglTexParameterIuivEXT(target, pname, __buffer.address(params));
 }
 /** Single return value version of: {@link #glGetDoublei_v GetDoublei_v} */
 public static double glGetDoublei(int target, int index) {
   APIBuffer __buffer = apiBuffer();
   int data = __buffer.doubleParam();
   nglGetDoublei_v(target, index, __buffer.address(data));
   return __buffer.doubleValue(data);
 }
 /** Single return value version of: {@link #glGetFloati_v GetFloati_v} */
 public static float glGetFloati(int target, int index) {
   APIBuffer __buffer = apiBuffer();
   int data = __buffer.floatParam();
   nglGetFloati_v(target, index, __buffer.address(data));
   return __buffer.floatValue(data);
 }
 /**
  * Single return value version of: {@link #glGetProgramStagei(int, int, int, java.nio.ByteBuffer)
  * GetProgramStagei}
  */
 public static int glGetProgramStagei(int program, int shadertype, int pname) {
   APIBuffer __buffer = apiBuffer();
   int values = __buffer.intParam();
   nglGetProgramStageiv(program, shadertype, pname, __buffer.address() + values);
   return __buffer.intValue(values);
 }
 /**
  * Single return value version of: {@link #glGetUniformSubroutineui(int, int, java.nio.ByteBuffer)
  * GetUniformSubroutineui}
  */
 public static int glGetUniformSubroutineui(int shadertype, int location) {
   APIBuffer __buffer = apiBuffer();
   int params = __buffer.intParam();
   nglGetUniformSubroutineuiv(shadertype, location, __buffer.address() + params);
   return __buffer.intValue(params);
 }
Пример #19
0
 /** Single value version of: {@link #glDeletePerfMonitorsAMD DeletePerfMonitorsAMD} */
 public static void glDeletePerfMonitorsAMD(int monitor) {
   APIBuffer __buffer = apiBuffer();
   int monitors = __buffer.intParam(monitor);
   nglDeletePerfMonitorsAMD(1, __buffer.address(monitors));
 }
Пример #20
0
 /** Single return value version of: {@link #glGetQueryiv GetQueryiv} */
 public static int glGetQueryi(int target, int pname) {
   APIBuffer __buffer = apiBuffer();
   int params = __buffer.intParam();
   nglGetQueryiv(target, pname, __buffer.address(params));
   return __buffer.intValue(params);
 }
Пример #21
0
 /** Single return value version of: {@link #glGenQueries GenQueries} */
 public static int glGenQueries() {
   APIBuffer __buffer = apiBuffer();
   int ids = __buffer.intParam();
   nglGenQueries(1, __buffer.address(ids));
   return __buffer.intValue(ids);
 }
 /** CharSequence version of: {@link #glGetUniformBlockIndex GetUniformBlockIndex} */
 public static int glGetUniformBlockIndex(int program, CharSequence uniformBlockName) {
   APIBuffer __buffer = apiBuffer();
   int uniformBlockNameEncoded = __buffer.stringParamASCII(uniformBlockName, true);
   return nglGetUniformBlockIndex(program, __buffer.address(uniformBlockNameEncoded));
 }
 /** Single return value version of: {@link #glGetIntegeri_v GetIntegeri_v} */
 public static int glGetIntegeri(int target, int index) {
   APIBuffer __buffer = apiBuffer();
   int data = __buffer.intParam();
   nglGetIntegeri_v(target, index, __buffer.address(data));
   return __buffer.intValue(data);
 }
 /** Single return value version of: {@link #glGetActiveUniformBlockiv GetActiveUniformBlockiv} */
 public static int glGetActiveUniformBlocki(int program, int uniformBlockIndex, int pname) {
   APIBuffer __buffer = apiBuffer();
   int params = __buffer.intParam();
   nglGetActiveUniformBlockiv(program, uniformBlockIndex, pname, __buffer.address(params));
   return __buffer.intValue(params);
 }
Пример #25
0
 /** Single value version of: {@link #glDeleteQueries DeleteQueries} */
 public static void glDeleteQueries(int id) {
   APIBuffer __buffer = apiBuffer();
   int ids = __buffer.intParam(id);
   nglDeleteQueries(1, __buffer.address(ids));
 }
 /**
  * Single value version of: {@link #glUniformSubroutinesui(int, int, java.nio.ByteBuffer)
  * UniformSubroutinesui}
  */
 public static void glUniformSubroutinesui(int shadertype, int index) {
   APIBuffer __buffer = apiBuffer();
   int indices = __buffer.intParam(index);
   nglUniformSubroutinesuiv(shadertype, 1, __buffer.address() + indices);
 }
Пример #27
0
 /** Single return value version of: {@link #glGetQueryObjectiv GetQueryObjectiv} */
 public static int glGetQueryObjecti(int id, int pname) {
   APIBuffer __buffer = apiBuffer();
   int params = __buffer.intParam();
   nglGetQueryObjectiv(id, pname, __buffer.address(params));
   return __buffer.intValue(params);
 }
Пример #28
0
 /** Single return value version of: {@link #glGenPerfMonitorsAMD GenPerfMonitorsAMD} */
 public static int glGenPerfMonitorsAMD() {
   APIBuffer __buffer = apiBuffer();
   int monitors = __buffer.intParam();
   nglGenPerfMonitorsAMD(1, __buffer.address(monitors));
   return __buffer.intValue(monitors);
 }