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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and 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 Detail

    - #### 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

Copyright © 2017 <code@io7m.com> http://io7m.com