Interface RenderReplayTextureFilter
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Generated("org.javagi.JavaGI")
public interface RenderReplayTextureFilter
extends FunctionPointer
Functional interface declaration of the RenderReplayTextureFilter callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun(RenderReplay replay, Texture texture) A function that filters textures.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.default MemorySegmentupcall(MemorySegment replay, MemorySegment texture, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
A function that filters textures.
The function will be called by the default replay function for all nodes with textures. They will then generate a node using the returned texture.
It is valid for the function to return the passed in texture if the texture shuld not be modified.
- Parameters:
replay- The replay object used to replay the nodetexture- The texture to filter- Returns:
- The filtered texture
- Since:
- 4.22
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(RenderReplay, Texture)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-