Package net.runelite.api.hooks
Interface DrawCallbacks
-
public interface DrawCallbacks
-
-
Field Summary
Fields Modifier and Type Field Description static int
GPU
GPU mode on.static int
HILLSKEW
GPU hillskew support.static int
NO_VERTEX_SNAPPING
Disable vertex snapping for animationsstatic int
NORMALS
Requests normals be computed for models.
-
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(Projection projection, Scene scene, Renderable renderable, int orientation, int x, int y, int z, long hash)
void
drawScene(double cameraX, double cameraY, double cameraZ, double cameraPitch, double cameraYaw, int plane)
Called before the scene is drawnvoid
drawScenePaint(Scene scene, SceneTilePaint paint, int plane, int tileX, int tileZ)
void
drawSceneTileModel(Scene scene, SceneTileModel model, int tileX, int tileZ)
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
-
NO_VERTEX_SNAPPING
static final int NO_VERTEX_SNAPPING
Disable vertex snapping for animations- See Also:
- Constant Field Values
-
-
Method Detail
-
draw
void draw(Projection projection, Scene scene, Renderable renderable, int orientation, int x, int y, int z, long hash)
-
drawScenePaint
void drawScenePaint(Scene scene, SceneTilePaint paint, int plane, int tileX, int tileZ)
-
drawSceneTileModel
void drawSceneTileModel(Scene scene, SceneTileModel model, int tileX, int tileZ)
-
draw
void draw(int overlayColor)
Called when a frame should be drawn.- Parameters:
overlayColor
- Color of full-viewport overlays, if any
-
drawScene
void drawScene(double cameraX, double cameraY, double cameraZ, double cameraPitch, double cameraYaw, int plane)
Called before the scene is drawn
-
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)
-
-