Java 类org.newdawn.slick.util.MaskUtil 实例源码

项目:trashjam2017    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void preRender(StateBasedGame game, GameContainer container,
        Graphics g) throws SlickException {
    prev.render(container, game, g);

    MaskUtil.defineMask();
    for (int i=0;i<blobs.size();i++) {
        ((Blob) blobs.get(i)).render(g);
    }
    MaskUtil.finishDefineMask();

    MaskUtil.drawOnMask();
    if (background != null) {
        Color c = g.getColor();
        g.setColor(background);
        g.fillRect(0,0,container.getWidth(),container.getHeight());
        g.setColor(c);
    }
}
项目:Progetto-C    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void preRender(StateBasedGame game, GameContainer container,
        Graphics g) throws SlickException {
    prev.render(container, game, g);

    MaskUtil.defineMask();
    for (int i=0;i<blobs.size();i++) {
        ((Blob) blobs.get(i)).render(g);
    }
    MaskUtil.finishDefineMask();

    MaskUtil.drawOnMask();
    if (background != null) {
        Color c = g.getColor();
        g.setColor(background);
        g.fillRect(0,0,container.getWidth(),container.getHeight());
        g.setColor(c);
    }
}
项目:BaseClient    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void preRender(StateBasedGame game, GameContainer container,
        Graphics g) throws SlickException {
    prev.render(container, game, g);

    MaskUtil.defineMask();
    for (int i=0;i<blobs.size();i++) {
        ((Blob) blobs.get(i)).render(g);
    }
    MaskUtil.finishDefineMask();

    MaskUtil.drawOnMask();
    if (background != null) {
        Color c = g.getColor();
        g.setColor(background);
        g.fillRect(0,0,container.getWidth(),container.getHeight());
        g.setColor(c);
    }
}
项目:GPVM    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void preRender(StateBasedGame game, GameContainer container,
        Graphics g) throws SlickException {
    prev.render(container, game, g);

    MaskUtil.defineMask();
    for (int i=0;i<blobs.size();i++) {
        ((Blob) blobs.get(i)).render(g);
    }
    MaskUtil.finishDefineMask();

    MaskUtil.drawOnMask();
    if (background != null) {
        Color c = g.getColor();
        g.setColor(background);
        g.fillRect(0,0,container.getWidth(),container.getHeight());
        g.setColor(c);
    }
}
项目:GPVM    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void preRender(StateBasedGame game, GameContainer container,
        Graphics g) throws SlickException {
    prev.render(container, game, g);

    MaskUtil.defineMask();
    for (int i=0;i<blobs.size();i++) {
        ((Blob) blobs.get(i)).render(g);
    }
    MaskUtil.finishDefineMask();

    MaskUtil.drawOnMask();
    if (background != null) {
        Color c = g.getColor();
        g.setColor(background);
        g.fillRect(0,0,container.getWidth(),container.getHeight());
        g.setColor(c);
    }
}
项目:SpaceStationAlpha    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void preRender(StateBasedGame game, GameContainer container,
        Graphics g) throws SlickException {
    prev.render(container, game, g);

    MaskUtil.defineMask();
    for (int i=0;i<blobs.size();i++) {
        ((Blob) blobs.get(i)).render(g);
    }
    MaskUtil.finishDefineMask();

    MaskUtil.drawOnMask();
    if (background != null) {
        Color c = g.getColor();
        g.setColor(background);
        g.fillRect(0,0,container.getWidth(),container.getHeight());
        g.setColor(c);
    }
}
项目:cretion    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void preRender(StateBasedGame game, GameContainer container,
        Graphics g) throws SlickException {
    prev.render(container, game, g);

    MaskUtil.defineMask();
    for (int i=0;i<blobs.size();i++) {
        ((Blob) blobs.get(i)).render(g);
    }
    MaskUtil.finishDefineMask();

    MaskUtil.drawOnMask();
    if (background != null) {
        Color c = g.getColor();
        g.setColor(background);
        g.fillRect(0,0,container.getWidth(),container.getHeight());
        g.setColor(c);
    }
}
项目:slick2d-maven    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void preRender(StateBasedGame game, GameContainer container,
        Graphics g) throws SlickException {
    prev.render(container, game, g);

    MaskUtil.defineMask();
    for (int i=0;i<blobs.size();i++) {
        ((Blob) blobs.get(i)).render(g);
    }
    MaskUtil.finishDefineMask();

    MaskUtil.drawOnMask();
    if (background != null) {
        Color c = g.getColor();
        g.setColor(background);
        g.fillRect(0,0,container.getWidth(),container.getHeight());
        g.setColor(c);
    }
}
项目:trashjam2017    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void postRender(StateBasedGame game, GameContainer container, Graphics g) throws SlickException {
    MaskUtil.resetMask();
}
项目:Progetto-C    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void postRender(StateBasedGame game, GameContainer container, Graphics g) throws SlickException {
    MaskUtil.resetMask();
}
项目:BaseClient    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void postRender(StateBasedGame game, GameContainer container, Graphics g) throws SlickException {
    MaskUtil.resetMask();
}
项目:GPVM    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void postRender(StateBasedGame game, GameContainer container, Graphics g) throws SlickException {
    MaskUtil.resetMask();
}
项目:GPVM    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void postRender(StateBasedGame game, GameContainer container, Graphics g) throws SlickException {
    MaskUtil.resetMask();
}
项目:SpaceStationAlpha    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void postRender(StateBasedGame game, GameContainer container, Graphics g) throws SlickException {
    MaskUtil.resetMask();
}
项目:cretion    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void postRender(StateBasedGame game, GameContainer container, Graphics g) throws SlickException {
    MaskUtil.resetMask();
}
项目:slick2d-maven    文件:BlobbyTransition.java   
/**
 * @see org.newdawn.slick.state.transition.Transition#postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
 */
public void postRender(StateBasedGame game, GameContainer container, Graphics g) throws SlickException {
    MaskUtil.resetMask();
}