public interface R2TextureUsableType
extends com.io7m.jcanephora.core.JCGLResourceUsableType
Modifier and Type | Method and Description |
---|---|
<A,B> B |
matchTexture(A context,
BiFunction<A,R2Texture2DUsableType,B> on_2d,
BiFunction<A,R2TextureCubeUsableType,B> on_cube)
Match on the type of texture.
|
<A,B> B matchTexture(A context, BiFunction<A,R2Texture2DUsableType,B> on_2d, BiFunction<A,R2TextureCubeUsableType,B> on_cube)
A
- The type of context valuesB
- The type of returned valuescontext
- A user-defined context valueon_2d
- Evaluated on values of type R2Texture2DUsableType
on_cube
- Evaluated on values of type R2TextureCubeUsableType
Copyright © 2017 <code@io7m.com> http://io7m.com