Interface TeaGraphics

All Superinterfaces:
StageVisitor
All Known Implementing Classes:
HtmlCanvasGraphics, PixiGraphics, ThreeGraphics

public interface TeaGraphics extends StageVisitor
Base interface for the different JavaScript graphics frameworks supported by the TeaVM renderer.
  • Method Details

    • getGraphicsMode

      GraphicsMode getGraphicsMode()
    • init

      void init(SceneContext context)
    • getDisplayWidth

      int getDisplayWidth()
    • getDisplayHeight

      int getDisplayHeight()
    • getDevicePixelRatio

      default float getDevicePixelRatio()
    • createMesh

      Mesh createMesh(Shape3D shape, ColorRGB color)
    • project

      Point2D project(Point3D position)
    • castPickRay

      boolean castPickRay(Point2D canvasPosition, Box area)