Class CanvasImpl

java.lang.Object
dev.pfaff.altargui.CanvasImpl
All Implemented Interfaces:
Canvas, AutoCloseable

public final class CanvasImpl extends Object implements Canvas, AutoCloseable
  • Field Details

    • DRAW_TAGS

      public static final List<String> DRAW_TAGS
    • DEBUG_LAYERS

      public static final List<DebugLayer> DEBUG_LAYERS
    • enabledDebugLayers

      public final BitSet enabledDebugLayers
  • Constructor Details

    • CanvasImpl

      public CanvasImpl()
  • Method Details

    • nextDebugLayer

      public void nextDebugLayer(boolean forward)
    • isDebugLayerEnabled

      public boolean isDebugLayerEnabled(DebugLayer layer)
      Specified by:
      isDebugLayerEnabled in interface Canvas
    • reset

      public void reset()
    • setWindowProps

      public void setWindowProps(double scaleFactor, int windowWidth, int windowHeight)
    • renderBufferByteCount

      public int renderBufferByteCount()
    • texAlloc

      public TextureAllocator texAlloc()
      Specified by:
      texAlloc in interface Canvas
    • internalPushScissor

      public void internalPushScissor(float x, float y, float width, float height)
    • internalPopScissor

      public void internalPopScissor()
    • setLayer

      public void setLayer(@NotNull @NotNull Layer layer)
      Specified by:
      setLayer in interface Canvas
    • iSpecUpload

      public void iSpecUpload(RenderObject uploadable, int size)
    • upload

      public void upload(RenderObject uploadable)
      Specified by:
      upload in interface Canvas
    • upload

      public void upload(PFCanvasDrawer drawer)
      Specified by:
      upload in interface Canvas
    • draw

      public void draw()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable