IBorrowedTextureBackend
interface IBorrowedTextureBackend
Extends: ISnapshotBackend
Known subtypes: GlBorrowedTextureBackend
Package: dev.joid.test.contract · Module: tool-testkit · Source: IBorrowedTextureBackend.java
A snapshot backend that can create, lend and inspect a texture of its host, for the borrowed texture suite.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
ITexture | borrow(Supplier | Returns the borrowed texture of your backend over that supplier of host handles. |
boolean | isBorrowableTexture(Object texture) abstract | If true, the object is a handle of a texture of the host that borrow accepts. |
Object | createBorrowableTexture(int width, int height, int color, boolean mipmapped) abstract | Creates a texture of the host of that size, filled with that ARGB color, with mipmaps when the boolean is true, and returns its handle. |
Map<String,String> | readBorrowableParameters(Object texture) abstract | Returns the sampling parameters of the texture of the host by name, such as its filter and its wrap, to compare before and after a frame. |
Method details
Section titled “Method details”borrow
Section titled “borrow”ITexture borrow(Supplier<Object> texture) abstract
Returns the borrowed texture of your backend over that supplier of host handles.
isBorrowableTexture
Section titled “isBorrowableTexture”boolean isBorrowableTexture(Object texture) abstract
If true, the object is a handle of a texture of the host that borrow accepts.
createBorrowableTexture
Section titled “createBorrowableTexture”Object createBorrowableTexture(int width, int height, int color, boolean mipmapped) abstract
Creates a texture of the host of that size, filled with that ARGB color, with mipmaps when the boolean is true, and returns its handle.
readBorrowableParameters
Section titled “readBorrowableParameters”Map<String,String> readBorrowableParameters(Object texture) abstract
Returns the sampling parameters of the texture of the host by name, such as its filter and its wrap, to compare before and after a frame.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
