public final class R2LightRenderer extends Object implements R2LightRendererType
R2LightRendererType
interface.Modifier and Type | Method and Description |
---|---|
static R2LightRenderer |
create(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g,
R2TextureDefaultsType in_texture_defaults,
R2ShaderPreprocessingEnvironmentReadableType in_shader_env,
R2IDPoolType in_pool,
R2UnitQuadUsableType in_quad)
Construct a new renderer.
|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g3)
Delete the current object.
|
boolean |
isDeleted() |
void |
renderLightsToImageBuffer(R2GeometryBufferUsableType gbuffer,
com.io7m.jregions.core.unparameterized.areas.AreaL area,
Optional<R2ImageBufferUsableType> ibuffer,
com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType uc,
R2ShadowMapContextUsableType shadows,
R2MatricesObserverType m,
R2SceneLightsType s)
Render the given lights into the given image buffer.
|
void |
renderLightsToLightBuffer(R2GeometryBufferUsableType gbuffer,
com.io7m.jregions.core.unparameterized.areas.AreaL area,
Optional<R2LightBufferUsableType> lbuffer,
com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType uc,
R2ShadowMapContextUsableType shadows,
R2MatricesObserverType m,
R2SceneLightsType s)
Render the given lights into the given light buffer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
wrap
public static R2LightRenderer create(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g, R2TextureDefaultsType in_texture_defaults, R2ShaderPreprocessingEnvironmentReadableType in_shader_env, R2IDPoolType in_pool, R2UnitQuadUsableType in_quad)
in_g
- An OpenGL interfacein_shader_env
- Access to shader sourcesin_texture_defaults
- A set of default texturesin_pool
- An ID poolin_quad
- A usable unit quadpublic void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g3) throws R2Exception
R2DeletableType
delete
in interface R2DeletableType
g3
- An OpenGL interfaceR2Exception
- On errorspublic boolean isDeleted()
isDeleted
in interface com.io7m.jcanephora.core.JCGLResourceUsableType
public void renderLightsToLightBuffer(R2GeometryBufferUsableType gbuffer, com.io7m.jregions.core.unparameterized.areas.AreaL area, Optional<R2LightBufferUsableType> lbuffer, com.io7m.jcanephora.profiler.JCGLProfilingContextType pc, com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType uc, R2ShadowMapContextUsableType shadows, R2MatricesObserverType m, R2SceneLightsType s)
R2LightRendererType
Render the given lights into the given light buffer.
If a light buffer is provided, it will be bound before evaluation and left bound after the method returns.
renderLightsToLightBuffer
in interface R2LightRendererType
gbuffer
- The populated geometry bufferarea
- The output viewportlbuffer
- The output light bufferpc
- A profiling contextuc
- A texture unit contextshadows
- A set of rendered shadow mapsm
- A matrix contexts
- The opaque lightspublic void renderLightsToImageBuffer(R2GeometryBufferUsableType gbuffer, com.io7m.jregions.core.unparameterized.areas.AreaL area, Optional<R2ImageBufferUsableType> ibuffer, com.io7m.jcanephora.profiler.JCGLProfilingContextType pc, com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType uc, R2ShadowMapContextUsableType shadows, R2MatricesObserverType m, R2SceneLightsType s)
R2LightRendererType
Render the given lights into the given image buffer.
If an image buffer is provided, it will be bound before evaluation and left bound after the method returns.
renderLightsToImageBuffer
in interface R2LightRendererType
gbuffer
- The populated geometry bufferarea
- The output viewportibuffer
- The output image bufferpc
- A profiling contextuc
- A texture unit contextshadows
- A set of rendered shadow mapsm
- A matrix contexts
- The opaque lightsCopyright © 2017 <code@io7m.com> http://io7m.com