Package net.runelite.api.hooks
Interface DrawCallbacks
-
public interface DrawCallbacks
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
animate(Texture texture, int diff)
void
draw(int overlayColor)
Called when a frame should be drawn.void
draw(Renderable renderable, int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, long hash)
void
drawScene(int cameraX, int cameraY, int cameraZ, int cameraPitch, int cameraYaw, int plane)
Called before the scene is drawnvoid
drawSceneModel(int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, SceneTileModel model, int tileZ, int tileX, int tileY, int zoom, int centerX, int centerY)
void
drawScenePaint(int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, SceneTilePaint paint, int tileZ, int tileX, int tileY, int zoom, int centerX, int centerY)
void
loadScene(Scene scene)
void
postDrawScene()
Called after the scene has been drawnvoid
swapScene(Scene scene)
default boolean
tileInFrustum(Scene scene, int pitchSin, int pitchCos, int yawSin, int yawCos, int cameraX, int cameraY, int cameraZ, int plane, int msx, int msy)
-
-
-
Field Detail
-
GPU
static final int GPU
GPU mode on.- See Also:
- Constant Field Values
-
HILLSKEW
static final int HILLSKEW
GPU hillskew support. Enables theModel.getUnskewedModel()
API to get the unskewed model.- See Also:
- Constant Field Values
-
NORMALS
static final int NORMALS
Requests normals be computed for models. Enables theModel.getVertexNormalsX()
Model.getVertexNormalsY()
Model.getVertexNormalsZ()
API.- See Also:
- Constant Field Values
-
-
Method Detail
-
draw
void draw(Renderable renderable, int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, long hash)
-
drawScenePaint
void drawScenePaint(int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, SceneTilePaint paint, int tileZ, int tileX, int tileY, int zoom, int centerX, int centerY)
-
drawSceneModel
void drawSceneModel(int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, SceneTileModel model, int tileZ, int tileX, int tileY, int zoom, int centerX, int centerY)
-
draw
void draw(int overlayColor)
Called when a frame should be drawn.- Parameters:
overlayColor
- Color of full-viewport overlays, if any
-
drawScene
void drawScene(int cameraX, int cameraY, int cameraZ, int cameraPitch, int cameraYaw, int plane)
Called before the scene is drawn- Parameters:
cameraX
-cameraY
-cameraZ
-cameraPitch
-cameraYaw
-plane
-
-
postDrawScene
void postDrawScene()
Called after the scene has been drawn
-
animate
void animate(Texture texture, int diff)
-
loadScene
void loadScene(Scene scene)
-
swapScene
void swapScene(Scene scene)
-
tileInFrustum
default boolean tileInFrustum(Scene scene, int pitchSin, int pitchCos, int yawSin, int yawCos, int cameraX, int cameraY, int cameraZ, int plane, int msx, int msy)
-
-