public interface R2Texture2DStaticType extends R2Texture2DType
Modifier and Type | Method and Description |
---|---|
default void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
Delete the current object.
|
default boolean |
isDeleted() |
default <A,B> B |
matchTexture(A context,
BiFunction<A,R2Texture2DUsableType,B> on_2d,
BiFunction<A,R2TextureCubeUsableType,B> on_cube)
Match on the type of texture.
|
default com.io7m.jcanephora.core.JCGLTexture2DUsableType |
texture() |
com.io7m.jcanephora.core.JCGLTexture2DType |
textureWritable() |
wrap
com.io7m.jcanephora.core.JCGLTexture2DType textureWritable()
textureWritable
in interface R2Texture2DType
default com.io7m.jcanephora.core.JCGLTexture2DUsableType texture()
texture
in interface R2Texture2DUsableType
default boolean isDeleted()
isDeleted
in interface com.io7m.jcanephora.core.JCGLResourceUsableType
default void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g) throws R2Exception
R2DeletableType
delete
in interface R2DeletableType
g
- An OpenGL interfaceR2Exception
- On errorsdefault <A,B> B matchTexture(A context, BiFunction<A,R2Texture2DUsableType,B> on_2d, BiFunction<A,R2TextureCubeUsableType,B> on_cube)
R2TextureUsableType
matchTexture
in interface R2TextureUsableType
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