Package net.runelite.api
Interface Rasterizer
-
public interface Rasterizer
Jagex 2D and 3D drawing utilities. Similar to AWT'sGraphics2D
- See Also:
JagexColor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fillRectangle(int x, int y, int w, int h, int rgb)
Draws a filled rectangle onto the rasterizer buffer at full opacityint
getHeight()
Height ofgetPixels()
int[]
getPixels()
Gets the back buffer of the rasterizer ARGB or RGB depending onClient.isGpu()
int
getWidth()
Width ofgetPixels()
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 opacityvoid
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 opacityvoid
resetRasterClipping()
void
setDrawRegion(int x0, int y0, int x1, int x2)
void
setRasterGouraudLowRes(boolean lowRes)
Sets ifrasterGouraud(int, int, int, int, int, int, int, int, int)
uses a faster shading algorithm
-
-
-
Method Detail
-
getPixels
int[] getPixels()
Gets the back buffer of the rasterizer ARGB or RGB depending onClient.isGpu()
-
getWidth
int getWidth()
Width ofgetPixels()
-
getHeight
int getHeight()
Height ofgetPixels()
-
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
-
setRasterGouraudLowRes
void setRasterGouraudLowRes(boolean lowRes)
Sets ifrasterGouraud(int, int, int, int, int, int, int, int, int)
uses a faster shading algorithm
-
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()
-
-