Package ch.blackspirit.graphics

Examples of ch.blackspirit.graphics.GraphicsListener


  }
  @Test
  public void fillTexturedTriangle() throws IOException {
    final Triangle triangle = getTriangle(false, false);
    final ch.blackspirit.graphics.Image image = imageFactory.createImage(this.getClass().getResource("/player1.png"), true);
    context.setGraphicsListener(new GraphicsListener() {
      public void draw(View view, Graphics graphics) {
        graphics.clear();
        graphics.fillTriangle(triangle, false, image);
      }
      public void init(View view, Graphics renderer) {}
View Full Code Here


  }
  @Test
  public void fillTexturedTriangleWithColorNull() throws IOException {
    final Triangle triangle = getTriangle(true, false);
    final ch.blackspirit.graphics.Image image = imageFactory.createImage(this.getClass().getResource("/player1.png"), true);
    context.setGraphicsListener(new GraphicsListener() {
      public void draw(View view, Graphics graphics) {
        graphics.clear();
        graphics.fillTriangle(triangle, true, image);
      }
      public void init(View view, Graphics renderer) {}
View Full Code Here

    context.draw();
  }
 
  @Test (expected=IllegalArgumentException.class)
  public void drawTriangleNull() throws IOException {
    context.setGraphicsListener(new GraphicsListener() {
      public void draw(View view, Graphics graphics) {
        graphics.clear();
        graphics.drawTriangle(null, false);
      }
      public void init(View view, Graphics renderer) {}
View Full Code Here

    });
    context.draw();
  }
  @Test (expected=IllegalArgumentException.class)
  public void fillTriangleNull() throws IOException {
    context.setGraphicsListener(new GraphicsListener() {
      public void draw(View view, Graphics graphics) {
        graphics.clear();
        graphics.fillTriangle(null, false);
      }
      public void init(View view, Graphics renderer) {}
View Full Code Here

    context.draw();
  }
  @Test (expected=IllegalArgumentException.class)
  public void fillTexturedTriangleNull() throws IOException {
    final ch.blackspirit.graphics.Image image = imageFactory.createImage(this.getClass().getResource("/player1.png"), true);
    context.setGraphicsListener(new GraphicsListener() {
      public void draw(View view, Graphics graphics) {
        graphics.clear();
        graphics.fillTriangle(null, false, image);
      }
      public void init(View view, Graphics renderer) {}
View Full Code Here

    context.draw();
  }
  @Test (expected=IllegalArgumentException.class)
  public void fillTexturedTriangleImageNull() throws IOException {
    final Triangle triangle = getTriangle(false, true);
    context.setGraphicsListener(new GraphicsListener() {
      public void draw(View view, Graphics graphics) {
        graphics.clear();
        graphics.fillTriangle(triangle, false, null);
      }
      public void init(View view, Graphics renderer) {}
View Full Code Here

  }
  @Test (expected=IllegalArgumentException.class)
  public void fillTexturedTriangleWithTexCoordNull() throws IOException {
    final Triangle triangle = getTriangle(false, true);
    final ch.blackspirit.graphics.Image image = imageFactory.createImage(this.getClass().getResource("/player1.png"), true);
    context.setGraphicsListener(new GraphicsListener() {
      public void draw(View view, Graphics graphics) {
        graphics.clear();
        graphics.fillTriangle(triangle, false, image);
      }
      public void init(View view, Graphics renderer) {}
View Full Code Here

  }
  @Test (expected=IllegalArgumentException.class)
  public void fillTexturedTriangleWithColorAndTexCoordNull() throws IOException {
    final Triangle triangle = getTriangle(false, true);
    final ch.blackspirit.graphics.Image image = imageFactory.createImage(this.getClass().getResource("/player1.png"), true);
    context.setGraphicsListener(new GraphicsListener() {
      public void draw(View view, Graphics graphics) {
        graphics.clear();
        graphics.fillTriangle(triangle, true, image);
      }
      public void init(View view, Graphics renderer) {}
View Full Code Here

    context.draw();
  }

  @Test (expected=IllegalArgumentException.class)
  public void drawTrianglesNull() throws IOException {
    context.setGraphicsListener(new GraphicsListener() {
      public void draw(View view, Graphics graphics) {
        graphics.clear();
        graphics.drawTriangles(null, false);
      }
      public void init(View view, Graphics renderer) {}
View Full Code Here

    });
    context.draw();
  }
  @Test (expected=IllegalArgumentException.class)
  public void fillTrianglesNull() throws IOException {
    context.setGraphicsListener(new GraphicsListener() {
      public void draw(View view, Graphics graphics) {
        graphics.clear();
        graphics.fillTriangles(null, false);
      }
      public void init(View view, Graphics renderer) {}
View Full Code Here

TOP

Related Classes of ch.blackspirit.graphics.GraphicsListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.