/** * <p>Fetch image data for the given face of the given texture.</p> * * <p>Fetching texture data requires binding and unbinding textures, and the * given {@code unit} will be used to perform the retrieval, breaking any * associated bindings for that unit. The texture will remain bound to {@code * unit} when the function returns.</p> * * @param unit The texture unit that will be used to fetch the data * @param face The cube map face that will be fetched * @param texture The texture * * @return The texture image data associated with {@code texture} * * @throws JCGLException Iff an OpenGL error occurs */ default ByteBuffer textureCubeGetImageRH( final JCGLTextureUnitType unit, final JCGLCubeMapFaceRH face, final JCGLTextureCubeUsableType texture) throws JCGLException { return this.textureCubeGetImageLH( unit, JCGLCubeMapFaceLH.fromRH(face), texture); }
/** * <p>Fetch image data for the given face of the given texture.</p> * * <p>Fetching texture data requires binding and unbinding textures, and the * given {@code unit} will be used to perform the retrieval, breaking any * associated bindings for that unit. The texture will remain bound to {@code * unit} when the function returns.</p> * * @param unit The texture unit that will be used to fetch the data * @param face The cube map face that will be fetched * @param texture The texture * * @return The texture image data associated with {@code texture} * * @throws JCGLException Iff an OpenGL error occurs */ default ByteBuffer textureCubeGetImageRH( final JCGLTextureUnitType unit, final JCGLCubeMapFaceRH face, final JCGLTextureCubeUsableType texture) throws JCGLException { return this.textureCubeGetImageLH( unit, JCGLCubeMapFaceLH.fromRH(face), texture); }