Interface LargeFramebuffer

All Known Implementing Classes:
LargeDirectFramebuffer, LargeGraphics2DFramebuffer

public interface LargeFramebuffer
Framebuffer that is meant to be split in sub-framebuffers. Contrary to Framebuffer, LargeFramebuffer supports sizes over 128x128 pixels.
  • Method Summary

    Modifier and Type Method Description
    Framebuffer createSubView​(int left, int top)
    Returns a new Framebuffer that represent a 128x128 sub-view of this framebuffer.
    byte getMapColor​(int x, int y)  
    int height()  
    default void preparePacket​(MapDataPacket packet, int left, int top)
    Prepares the packet to render a 128x128 sub view of this framebuffer
    int width()  
  • Method Details

    • width

      int width()
    • height

      int height()
    • createSubView

      Framebuffer createSubView​(int left, int top)
      Returns a new Framebuffer that represent a 128x128 sub-view of this framebuffer. Implementations are free (but not guaranteed) to throw exceptions if left & top produces out-of-bounds coordinates.
      Parameters:
      left -
      top -
      Returns:
      the sub-view Framebuffer
    • getMapColor

      byte getMapColor​(int x, int y)
    • preparePacket

      default void preparePacket​(MapDataPacket packet, int left, int top)
      Prepares the packet to render a 128x128 sub view of this framebuffer
      Parameters:
      packet - the MapDataPacket to prepare
      left -
      top -