Skip to content

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.

ReturnsSignatureSummary
ITextureborrow(Supplier texture) abstractReturns the borrowed texture of your backend over that supplier of host handles.
booleanisBorrowableTexture(Object texture) abstractIf true, the object is a handle of a texture of the host that borrow accepts.
ObjectcreateBorrowableTexture(int width, int height, int color, boolean mipmapped) abstractCreates 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) abstractReturns 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.

ITexture borrow(Supplier<Object> texture) abstract

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.


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

Report a problem with this page