コード例 #1
0
 public static void glCompressedTexSubImage3DARB(
     int target,
     int level,
     int xoffset,
     int yoffset,
     int zoffset,
     int width,
     int height,
     int depth,
     int format,
     int pData_imageSize,
     long pData_buffer_offset) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glCompressedTexSubImage3DARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureUnpackPBOenabled(caps);
   nglCompressedTexSubImage3DARBBO(
       target,
       level,
       xoffset,
       yoffset,
       zoffset,
       width,
       height,
       depth,
       format,
       pData_imageSize,
       pData_buffer_offset,
       function_pointer);
 }
コード例 #2
0
 public static void glCompressedTexImage1DARB(
     int target,
     int level,
     int internalformat,
     int width,
     int border,
     int pData_imageSize,
     long pData_buffer_offset) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glCompressedTexImage1DARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureUnpackPBOenabled(caps);
   nglCompressedTexImage1DARBBO(
       target,
       level,
       internalformat,
       width,
       border,
       pData_imageSize,
       pData_buffer_offset,
       function_pointer);
 }