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
    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
     
    preparePacket(int mapId, int left, int top)
    Prepares the packet to render a 128x128 sub view of this framebuffer
    int
     
  • 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 MapDataPacket preparePacket(int mapId, int left, int top)
      Prepares the packet to render a 128x128 sub view of this framebuffer