Package limn.backend

Interface FrameCallback

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 FrameCallback
Renders one frame of a window. Invoked on the UI thread by the backend loop whenever the window is dirty (NativeWindow.requestFrame(), damage, resize); Limn redraws per frame instead of tracking dirty regions, and the loop sleeps when nothing is dirty.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFrame(GpuRenderer renderer, FrameInfo frame)
     
  • Method Details

    • onFrame

      void onFrame(GpuRenderer renderer, FrameInfo frame)
      Parameters:
      renderer - the window's renderer, valid only during this call
      frame - physical framebuffer size and content scale for this frame