com.jogamp.common.nio.Buffers.rangeCheckBytes()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(20.8k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中com.jogamp.common.nio.Buffers.rangeCheckBytes()方法的一些代码示例,展示了Buffers.rangeCheckBytes()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffers.rangeCheckBytes()方法的具体详情如下:
包路径:com.jogamp.common.nio.Buffers
类名称:Buffers
方法名:rangeCheckBytes

Buffers.rangeCheckBytes介绍

暂无

代码示例

代码示例来源:origin: org.jogamp.jogl/jogl-all-noawt

/** Entry point to C language function: <code> void {@native glTexSubImage2D}(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_1</code>, <code>GL_EXT_subtexture</code><br>Alias for: <code>glTexSubImage2DEXT</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format,  type, width, height, 1  , false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = _pat._addressof_glTexSubImage2D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexSubImage2D"));
 }
   dispatch_glTexSubImage2D1(target, level, xoffset, yoffset, width, height, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: org.jogamp.jogl/jogl-all-noawt

/** Entry point to C language function: <code> void {@native glTexImage3D}(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *  pixels) </code> <br>Part of <code>GL_ES_VERSION_3_0</code>, <code>GL_VERSION_1_2</code>, <code>GL_OES_texture_3D</code>, <code>GL_EXT_texture3D</code><br>Alias for: <code>glTexImage3DOES</code>, <code>glTexImage3DEXT</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format,  type, width, height, depth, false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = _pat._addressof_glTexImage3D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexImage3D"));
 }
   dispatch_glTexImage3D1(target, level, internalformat, width, height, depth, border, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: org.jogamp.jogl/jogl-all-noawt

/** Entry point to C language function: <code> void {@native glReadPixels}(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_0</code><br>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels)  {
 checkPackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format,  type, width, height, 1  , true));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = _pat._addressof_glReadPixels;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glReadPixels"));
 }
   dispatch_glReadPixels1(x, y, width, height, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: org.jogamp.jogl/jogl-all-noawt

/** Entry point to C language function: <code> void {@native glTexSubImage2D}(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_1</code>, <code>GL_EXT_subtexture</code><br>Alias for: <code>glTexSubImage2DEXT</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format,  type, width, height, 1  , false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = _pat._addressof_glTexSubImage2D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexSubImage2D"));
 }
   dispatch_glTexSubImage2D1(target, level, xoffset, yoffset, width, height, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: org.jogamp.jogl/jogl-all-noawt

/** Entry point to C language function: <code> void {@native glTexImage2D}(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_0</code><br>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format,  type, width, height, 1  , false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = _pat._addressof_glTexImage2D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexImage2D"));
 }
   dispatch_glTexImage2D1(target, level, internalformat, width, height, border, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: org.jogamp.jogl/jogl-all-noawt

/** Entry point to C language function: <code> void {@native glReadPixels}(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_0</code><br>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels)  {
 checkPackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format,  type, width, height, 1  , true));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = _pat._addressof_glReadPixels;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glReadPixels"));
 }
   dispatch_glReadPixels1(x, y, width, height, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: org.jogamp.jogl/jogl-all-noawt

/** Entry point to C language function: <code> void {@native glTexSubImage3D}(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *  pixels) </code> <br>Part of <code>GL_ES_VERSION_3_0</code>, <code>GL_VERSION_1_2</code>, <code>GL_OES_texture_3D</code>, <code>GL_EXT_texture3D</code><br>Alias for: <code>glTexSubImage3DOES</code>, <code>glTexSubImage3DEXT</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format,  type, width, height, depth, false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = _pat._addressof_glTexSubImage3D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexSubImage3D"));
 }
   dispatch_glTexSubImage3D1(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: org.jogamp.jogl/jogl-all-noawt

/** Entry point to C language function: <code> void {@native glTexImage2D}(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_0</code><br>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format,  type, width, height, 1  , false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = _pat._addressof_glTexImage2D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexImage2D"));
 }
   dispatch_glTexImage2D1(target, level, internalformat, width, height, border, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub

/** Entry point to C language function: <code> void {@native glTexSubImage3D}(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_3_0</code>, <code>GL_VERSION_1_2</code>; <code>GL_OES_texture_3D</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format, type, width            , height            , depth  , false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = ((GLES3ProcAddressTable)_context.getGLProcAddressTable())._addressof_glTexSubImage3D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexSubImage3D"));
 }
   dispatch_glTexSubImage3D1(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub

/** Entry point to C language function: <code> void {@native glTexSubImage2D}(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_1</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format, type, width            , height            , 1    , false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = ((GLES1ProcAddressTable)_context.getGLProcAddressTable())._addressof_glTexSubImage2D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexSubImage2D"));
 }
   dispatch_glTexSubImage2D1(target, level, xoffset, yoffset, width, height, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub

/** Entry point to C language function: <code> void {@native glReadPixels}(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_0</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels)  {
 checkPackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format, type, width            , height            , 1    , true));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = ((GLES3ProcAddressTable)_context.getGLProcAddressTable())._addressof_glReadPixels;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glReadPixels"));
 }
   dispatch_glReadPixels1(x, y, width, height, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub

/** Entry point to C language function: <code> void {@native glTexImage2D}(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_0</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format, type, width            , height            , 1    , false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = ((GLES3ProcAddressTable)_context.getGLProcAddressTable())._addressof_glTexImage2D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexImage2D"));
 }
   dispatch_glTexImage2D1(target, level, internalformat, width, height, border, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub

/** Entry point to C language function: <code> void {@native glTexImage3D}(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_3_0</code>, <code>GL_VERSION_1_2</code>; <code>GL_OES_texture_3D</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format, type, width            , height            , depth  , false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = ((GLES3ProcAddressTable)_context.getGLProcAddressTable())._addressof_glTexImage3D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexImage3D"));
 }
   dispatch_glTexImage3D1(target, level, internalformat, width, height, depth, border, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub

/** Entry point to C language function: <code> void {@native glTexSubImage2D}(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_1</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format, type, width            , height            , 1    , false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = ((GLES3ProcAddressTable)_context.getGLProcAddressTable())._addressof_glTexSubImage2D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexSubImage2D"));
 }
   dispatch_glTexSubImage2D1(target, level, xoffset, yoffset, width, height, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub

/** Entry point to C language function: <code> void {@native glReadPixels}(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_0</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels)  {
 checkPackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format, type, width            , height            , 1    , true));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = ((GLES1ProcAddressTable)_context.getGLProcAddressTable())._addressof_glReadPixels;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glReadPixels"));
 }
   dispatch_glReadPixels1(x, y, width, height, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub

/** Entry point to C language function: <code> void {@native glTexImage2D}(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *  pixels) </code> <br>Part of <code>GL_ES_VERSION_2_0</code>, <code>GL_VERSION_ES_CL_CM</code>, <code>GL_VERSION_1_0</code>
  @param pixels a direct or array-backed {@link java.nio.Buffer}   */
public void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels)  {
 checkUnpackPBOUnbound(true);
 Buffers.rangeCheckBytes(pixels, imageSizeInBytes(format, type, width            , height            , 1    , false));
 final boolean pixels_is_direct = Buffers.isDirect(pixels);
 final long __addr_ = ((GLES1ProcAddressTable)_context.getGLProcAddressTable())._addressof_glTexImage2D;
 if (__addr_ == 0) {
  throw new GLException(String.format("Method \"%s\" not available", "glTexImage2D"));
 }
   dispatch_glTexImage2D1(target, level, internalformat, width, height, border, format, type, pixels_is_direct ? pixels : Buffers.getArray(pixels), pixels_is_direct ? Buffers.getDirectBufferByteOffset(pixels) : Buffers.getIndirectBufferByteOffset(pixels), pixels_is_direct, __addr_);
}

代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub

if( null == readPixelBuffer || readPixelBuffer.requiresNewBuffer(gl, width, height, readPixelSize) ) {
  readPixelBuffer = pixelBufferProvider.allocate(gl, pixelAttribs, width, height, 1, true, readPixelSize);
  Buffers.rangeCheckBytes(readPixelBuffer.buffer, readPixelSize);
  try {
    readTextureData = new TextureData(

代码示例来源:origin: org.jogamp.jogl/jogl-all-noawt

if( null == readPixelBuffer || readPixelBuffer.requiresNewBuffer(gl, width, height, readPixelSize) ) {
  readPixelBuffer = pixelBufferProvider.allocate(gl, hostPixelComp, pixelAttribs, true, width, height, 1, readPixelSize);
  Buffers.rangeCheckBytes(readPixelBuffer.buffer, readPixelSize);
  try {
    readTextureData = new TextureData(

代码示例来源:origin: org.jogamp.jogl/jogl

if( null == readPixelBuffer || readPixelBuffer.requiresNewBuffer(gl, width, height, readPixelSize) ) {
  readPixelBuffer = pixelBufferProvider.allocate(gl, hostPixelComp, pixelAttribs, true, width, height, 1, readPixelSize);
  Buffers.rangeCheckBytes(readPixelBuffer.buffer, readPixelSize);
  try {
    readTextureData = new TextureData(

相关文章