Interface ReshapeCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ReshapeCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onReshape(Component target, int width, int height)
    Sets the reshape callback for the current window (triggered when window dimensions are changed) void glutReshapeFunc (void (*func)(int width, int height))
  • Method Details

    • onReshape

      void onReshape(Component target, int width, int height)
      Sets the reshape callback for the current window (triggered when window dimensions are changed) void glutReshapeFunc (void (*func)(int width, int height))
      Parameters:
      target - Rendering target component
      width - New width of window, px
      height - New height of window, px