From 6e6e423c74e7d622419a892b565f92d402646c31 Mon Sep 17 00:00:00 2001 From: Emux Date: Sun, 19 Jun 2016 23:31:41 +0300 Subject: [PATCH] LineRenderTest: show 4th example, fixes #30 --- .../src/org/oscim/test/LineRenderTest.java | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/vtm-playground/src/org/oscim/test/LineRenderTest.java b/vtm-playground/src/org/oscim/test/LineRenderTest.java index 33734973..167b6823 100644 --- a/vtm-playground/src/org/oscim/test/LineRenderTest.java +++ b/vtm-playground/src/org/oscim/test/LineRenderTest.java @@ -1,3 +1,19 @@ +/* + * Copyright 2016 devemux86 + * + * This file is part of the OpenScienceMap project (http://www.opensciencemap.org). + * + * This program is free software: you can redistribute it and/or modify it under the + * terms of the GNU Lesser General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License along with + * this program. If not, see . + */ package org.oscim.test; import org.oscim.backend.canvas.Color; @@ -62,13 +78,13 @@ public class LineRenderTest extends GdxMap { line2 = new LineStyle(0, null, Color.GREEN, 6.0f, Cap.BUTT, true, 0, 0, 0, 0, 1f, false); + line3 = new LineStyle(0, null, Color.BLUE, 2.0f, Cap.ROUND, false, 4, + Color.CYAN, 1, 0, 0, false); + line4 = new LineStyle(0, null, Color.LTGRAY, 2.0f, Cap.ROUND, false, 0, 0, 0, 0, 1f, false); } - line3 = new LineStyle(0, null, Color.BLUE, 2.0f, Cap.ROUND, true, 4, - Color.CYAN, 1, 0, 0, false); - LineStyle outline = new LineStyle(0, null, Color.BLUE, 2.0f, Cap.ROUND, false, 0, 0, 0, 0, 1f, true); @@ -96,6 +112,7 @@ public class LineRenderTest extends GdxMap { LineTexBucket lt = l.buckets.getLineTexBucket(30); lt.line = line3; + lt.width = line3.width; lt.addLine(g.translate(0, 10.5f)); lt.addLine(g.translate(0, 10.5f)); addCircle(200, 200, 100, lt);