Package com.io7m.jcamera.examples.jogl

# Interface ExampleRendererType

All Superinterfaces:
  `ExampleRendererControllerType`

All Known Implementing Classes:
  `ExampleRenderer`

public interface ExampleRendererType extends ExampleRendererControllerType
The interface exposed by the renderer to JOGL.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `draw(JCameraReadableSnapshotType s, Optional<com.io7m.jtensors.core.unparameterized.vectors.Vector3D> target)`
  Draw the scene.
  `void`
  `init(com.jogamp.newt.opengl.GLWindow in_window, com.jogamp.opengl.GL3 in_gl)`
  Initialize the scene, using the given window and OpenGL interface.
  `void`
  `reshape(int width, int height)`
  Indicate that the screen has been resized.

  ### Methods inherited from interface com.io7m.jcamera.examples.jogl.ExampleRendererControllerType

  `sendWantWarpPointer`

- ## Method Details

  - ### init

    void init(com.jogamp.newt.opengl.GLWindow in_window, com.jogamp.opengl.GL3 in_gl) throws IOException
    Initialize the scene, using the given window and OpenGL interface.
    Parameters:
      `in_window` - The window
      `in_gl` - The OpenGL interface
    Throws:
      `IOException` - On I/O errors

  - ### draw

    void draw(JCameraReadableSnapshotType s, Optional<com.io7m.jtensors.core.unparameterized.vectors.Vector3D> target)
    Draw the scene.
    Parameters:
      `s` - A camera snapshot
      `target` - An optional target to be drawn

  - ### reshape

    void reshape(int width, int height)
    Indicate that the screen has been resized.
    Parameters:
      `width` - The new width
      `height` - The new height