SD - The type of source render target descriptionsS - The type of source render targetsDD - The type of destination render target descriptionsD - The type of destination render targetspublic final class R2FilterBoxBlur<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> extends Object implements R2FilterType<R2FilterBoxBlurParameters<SD,S,DD,D>>
A generic box blur filter.
The filter blurs render targets of type S, writing the blurred
results to render targets of type T.
| Modifier and Type | Method and Description |
|---|---|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type gx)
Delete the current object.
|
boolean |
isDeleted() |
static <SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> |
newFilter(R2ShaderPreprocessingEnvironmentReadableType in_shader_env,
com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g,
R2TextureDefaultsType in_tex_defaults,
R2RenderTargetPoolUsableType<DD,D> in_rtp_pool,
R2IDPoolType in_id_pool,
R2UnitQuadUsableType in_quad)
Construct a new filter.
|
void |
runFilter(com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType uc,
R2FilterBoxBlurParameters<SD,S,DD,D> parameters)
Run the filter for the given parameters.
|
public static <SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> R2FilterType<R2FilterBoxBlurParameters<SD,S,DD,D>> newFilter(R2ShaderPreprocessingEnvironmentReadableType in_shader_env, com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g, R2TextureDefaultsType in_tex_defaults, R2RenderTargetPoolUsableType<DD,D> in_rtp_pool, R2IDPoolType in_id_pool, R2UnitQuadUsableType in_quad)
SD - The type of source render target descriptionsS - The type of source render targetsDD - The type of destination render target descriptionsD - The type of destination render targetsin_shader_env - Shader sourcesin_g - A GL interfacein_tex_defaults - The set of default texturesin_rtp_pool - A render target poolin_id_pool - An ID poolin_quad - A unit quadpublic void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type gx)
throws R2Exception
R2DeletableTypedelete in interface R2DeletableTypegx - An OpenGL interfaceR2Exception - On errorspublic boolean isDeleted()
isDeleted in interface com.io7m.jcanephora.core.JCGLResourceUsableTypepublic void runFilter(com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType uc,
R2FilterBoxBlurParameters<SD,S,DD,D> parameters)
R2FilterUsableTyperunFilter in interface R2FilterUsableType<R2FilterBoxBlurParameters<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>>>pc - A profiling contextuc - A texture unit contextparameters - The filter parametersCopyright © 2017 <code@io7m.com> http://io7m.com