Package net.runelite.api
Interface SceneTilePaint
-
public interface SceneTilePaint
Represents the paint of a tile in the current scene.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBufferLen()
int
getBufferOffset()
int
getNeColor()
Gets the color of the north-east corner of the tile.int
getNwColor()
Gets the color of the north-west corner of the tile.int
getRBG()
Gets the RGB value of the paint.int
getSeColor()
Gets the color of the south-east corner of the tile.int
getSwColor()
Gets the color of the south-west corner of the tile.int
getTexture()
Gets the texture to be rendered for the tile.int
getUvBufferOffset()
boolean
isFlat()
void
setBufferLen(int bufferLen)
void
setBufferOffset(int bufferOffset)
void
setNeColor(int color)
Sets the color of the north-east corner of the tile.void
setNwColor(int color)
Sets the color of the north-west corner of the tile.void
setSeColor(int color)
Sets the color of the south-east corner of the tile.void
setSwColor(int color)
Sets the color of the south-west corner of the tile.void
setTexture(int texture)
Sets the texture to be rendered for the tile.void
setUvBufferOffset(int bufferOffset)
-
-
-
Method Detail
-
getRBG
int getRBG()
Gets the RGB value of the paint.- Returns:
- the paint RGB
-
getSwColor
int getSwColor()
Gets the color of the south-west corner of the tile. Used to render a Gouraud-shaded gradient along the tile plane in the scene.- Returns:
- the south-west corner of the tile
-
setSwColor
void setSwColor(int color)
Sets the color of the south-west corner of the tile. Used to render a Gouraud-shaded gradient along the tile plane in the scene.- Parameters:
color
- the new color for the south-west corner of the tile
-
getSeColor
int getSeColor()
Gets the color of the south-east corner of the tile. Used to render a Gouraud-shaded gradient along the tile plane in the scene.- Returns:
- the south-east corner of the tile
-
setSeColor
void setSeColor(int color)
Sets the color of the south-east corner of the tile. Used to render a Gouraud-shaded gradient along the tile plane in the scene.- Parameters:
color
- the new color for the south-east corner of the tile
-
getNwColor
int getNwColor()
Gets the color of the north-west corner of the tile. Used to render a Gouraud-shaded gradient along the tile plane in the scene.- Returns:
- the north-west corner of the tile
-
setNwColor
void setNwColor(int color)
Sets the color of the north-west corner of the tile. Used to render a Gouraud-shaded gradient along the tile plane in the scene.- Parameters:
color
- the new color for the north-west corner of the tile
-
getNeColor
int getNeColor()
Gets the color of the north-east corner of the tile. Used to render a Gouraud-shaded gradient along the tile plane in the scene.- Returns:
- the north-east corner of the tile
-
setNeColor
void setNeColor(int color)
Sets the color of the north-east corner of the tile. Used to render a Gouraud-shaded gradient along the tile plane in the scene.- Parameters:
color
- the new color for the north-east corner of the tile
-
getTexture
int getTexture()
Gets the texture to be rendered for the tile. When set, the texture will be drawn instead of a 4-point color gradient.- Returns:
- the texture id to draw on the tile
-
setTexture
void setTexture(int texture)
Sets the texture to be rendered for the tile. When set, the texture will be drawn instead of a 4-point color gradient.- Parameters:
texture
- the texture id to be drawn on the tile
-
isFlat
boolean isFlat()
-
getBufferOffset
int getBufferOffset()
-
setBufferOffset
void setBufferOffset(int bufferOffset)
-
getUvBufferOffset
int getUvBufferOffset()
-
setUvBufferOffset
void setUvBufferOffset(int bufferOffset)
-
getBufferLen
int getBufferLen()
-
setBufferLen
void setBufferLen(int bufferLen)
-
-