D
- The type of render target descriptionsT
- The type of render targetspublic interface R2RenderTargetPoolUsableType<D extends R2RenderTargetDescriptionType,T extends R2RenderTargetUsableType<D>>
Modifier and Type | Method and Description |
---|---|
T |
get(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType tc,
D desc)
Get a render target from the pool, allocating a new one if necessary.
|
void |
returnValue(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType tc,
T target)
Return a render target that has previously been fetched via
get(JCGLTextureUnitContextParentType, R2RenderTargetDescriptionType) . |
T get(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType tc, D desc)
Get a render target from the pool, allocating a new one if necessary.
The returned render target is guaranteed to be different from any other
that has been returned from this call and not yet returned with returnValue(JCGLTextureUnitContextParentType, R2RenderTargetUsableType)
.
tc
- A texture unit contextdesc
- A render target descriptionreturnValue(JCGLTextureUnitContextParentType, R2RenderTargetUsableType)
void returnValue(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType tc, T target)
get(JCGLTextureUnitContextParentType, R2RenderTargetDescriptionType)
.tc
- A texture unit contexttarget
- A render targetCopyright © 2017 <code@io7m.com> http://io7m.com