Interface Rasterizer


  • public interface Rasterizer
    Jagex 2D and 3D drawing utilities. Similar to AWT's Graphics2D
    See Also:
    JagexColor
    • Method Detail

      • getPixels

        int[] getPixels()
        Gets the back buffer of the rasterizer ARGB or RGB depending on Client.isGpu()
      • fillRectangle

        void fillRectangle​(int x,
                           int y,
                           int w,
                           int h,
                           int rgb)
        Draws a filled rectangle onto the rasterizer buffer at full opacity
      • rasterFlat

        void rasterFlat​(int y0,
                        int y1,
                        int y2,
                        int x0,
                        int x1,
                        int x2,
                        int rgb)
        Draws a filled triangle onto the rasterizer buffer at rasterizer opacity
      • rasterGouraud

        void rasterGouraud​(int y0,
                           int y1,
                           int y2,
                           int x0,
                           int x1,
                           int x2,
                           int hsl0,
                           int hsl1,
                           int hsl2)
        Draws a gouraud shaded filled triangle onto the rasterizer buffer at rasterizer opacity
      • setDrawRegion

        void setDrawRegion​(int x0,
                           int y0,
                           int x1,
                           int x2)
      • resetRasterClipping

        void resetRasterClipping()