public class TriangleTest extends JoglTestBase {
@Test
public void fillTrianglesWithColor() {
final Triangle[] triangles = getTriangles(false, false, false);
context.setGraphicsListener(new GraphicsListener() {
public void draw(View view, Graphics graphics) {
graphics.clear();
graphics.fillTriangles(triangles, true);
}
public void init(View view, Graphics renderer) {}