/** * <p>Replace the contents (or part of the contents) of the face {@code face} * of the cube map texture {@code data.getTexture()} with {@code data}, * assuming a cube map that uses a right-handed coordinate system.</p> * * <p>If the texture has minification filters that require mipmaps, mipmaps * will be generated during the update.</p> * * @param unit The texture unit that will be used to perform the update * @param face The cube face to modify * @param data The data to upload * * @throws JCGLException Iff an OpenGL error occurs */ default void textureCubeUpdateRH( final JCGLTextureUnitType unit, final JCGLCubeMapFaceRH face, final JCGLTextureCubeUpdateType data) throws JCGLException { this.textureCubeUpdateLH(unit, JCGLCubeMapFaceLH.fromRH(face), data); }
/** * <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); }
/** * <p>Replace the contents (or part of the contents) of the face {@code face} * of the cube map texture {@code data.getTexture()} with {@code data}, * assuming a cube map that uses a right-handed coordinate system.</p> * * <p>If the texture has minification filters that require mipmaps, mipmaps * will be generated during the update.</p> * * @param unit The texture unit that will be used to perform the update * @param face The cube face to modify * @param data The data to upload * * @throws JCGLException Iff an OpenGL error occurs */ default void textureCubeUpdateRH( final JCGLTextureUnitType unit, final JCGLCubeMapFaceRH face, final JCGLTextureCubeUpdateType data) throws JCGLException { this.textureCubeUpdateLH(unit, JCGLCubeMapFaceLH.fromRH(face), data); }