GoogleCodeArchive / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
0 stars 0 forks source link

PCanvas needs accessors for render qualities #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PCanvas is missing accessors for its render qualities. Specifically, it should 
be possible to compile and run the following tests, but it 
currently isn't.

public void testDefaultRenderQualityIsHighByDefault() { 
  PCanvas canvas = new PCanvas();
  assertEquals(PPaintContext.HIGH_QUALITY_RENDERING, canvas.getDefaultRenderQuality());     
}

public void testAnimatingRenderQualityIsLowByDefault() {
  PCanvas canvas = new PCanvas();
  assertEquals(PPaintContext.LOW_QUALITY_RENDERING, canvas.getAnimatingRenderQuality());
}

public void testInteractingRenderQualityIsLowByDefault() {
  PCanvas canvas = new PCanvas();
  assertEquals(PPaintContext.LOW_QUALITY_RENDERING, canvas.getInteractingRenderQuality());
}

Original issue reported on code.google.com by allain.lalonde on 13 Jul 2009 at 7:00

GoogleCodeExporter commented 9 years ago
Sounds good to me.

Original comment by heue...@gmail.com on 13 Jul 2009 at 7:12

GoogleCodeExporter commented 9 years ago
Done. And I've added the 3 tests from above.

Original comment by allain.lalonde on 13 Jul 2009 at 7:21