public final class R2GeometryRenderer extends Object implements R2GeometryRendererType
R2GeometryRendererType interface.| Modifier and Type | Method and Description |
|---|---|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g3)
Delete the current object.
|
boolean |
isDeleted() |
static R2GeometryRendererType |
newRenderer(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g)
Construct a new renderer.
|
void |
renderGeometry(com.io7m.jareas.core.AreaInclusiveUnsignedLType area,
Optional<R2GeometryBufferUsableType> gbuffer,
com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType uc,
R2MatricesObserverType m,
R2SceneOpaquesReadableType s)
Render the given opaque instances into the given geometry buffer.
|
public static R2GeometryRendererType newRenderer(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g)
in_g - An OpenGL interfacepublic void renderGeometry(com.io7m.jareas.core.AreaInclusiveUnsignedLType area,
Optional<R2GeometryBufferUsableType> gbuffer,
com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType uc,
R2MatricesObserverType m,
R2SceneOpaquesReadableType s)
R2GeometryRendererTypeRender the given opaque instances into the given geometry buffer.
If a geometry buffer is provided, it will be bound before evaluation and left bound after the method returns.
renderGeometry in interface R2GeometryRendererTypearea - The output viewportgbuffer - The optional geometry bufferpc - A profiling contextuc - A texture unit contextm - A matrix contexts - The opaque instancespublic void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g3)
throws R2Exception
R2DeletableTypedelete in interface R2DeletableTypeg3 - An OpenGL interfaceR2Exception - On errorspublic boolean isDeleted()
isDeleted in interface com.io7m.jcanephora.core.JCGLResourceUsableTypeCopyright © 2017 <code@io7m.com> http://io7m.com