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 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​(Renderable renderable, int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, long hash)  
      default void drawScene​(double cameraX, double cameraY, double cameraZ, double cameraPitch, double cameraYaw, int plane)
      Called before the scene is drawn
      default void drawScene​(int cameraX, int cameraY, int cameraZ, int cameraPitch, int cameraYaw, int plane)
      Called before the scene is drawn
      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)  
      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 drawn
      void 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)  
    • 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

        default void drawScene​(double cameraX,
                               double cameraY,
                               double cameraZ,
                               double cameraPitch,
                               double cameraYaw,
                               int plane)
        Called before the scene is drawn
      • drawScene

        default void drawScene​(int cameraX,
                               int cameraY,
                               int cameraZ,
                               int cameraPitch,
                               int 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)