![JAR search and dependency download from the Maven repository](/logo.png)
org.oscim.backend.GLAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vtm Show documentation
Show all versions of vtm Show documentation
OpenGL vector map library written in Java - running on Android, iOS, Desktop and within the browser.
/*
* Copyright 2013 Hannes Janetzek
* Copyright 2016-2019 devemux86
* Copyright 2018-2019 Gustl22
*
* 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.backend;
public class GLAdapter {
public static final boolean debug = false;
public static final boolean debugView = false;
/**
* The instance provided by backend
*/
public static GL gl;
public static GL30 gl30;
public static boolean ANDROID_QUIRKS = false;
public static boolean GDX_DESKTOP_QUIRKS = false;
public static boolean GDX_WEBGL_QUIRKS = false;
/**
* Set true as workaround for adreno driver issue:
* https://github.com/opensciencemap/vtm/issues/52
*/
public static boolean NO_BUFFER_SUB_DATA = false;
/**
* Draw circles with quads or points.
*/
public static boolean CIRCLE_QUADS = false;
public static void init(GL gl) {
GLAdapter.gl = gl;
if (gl instanceof GL30)
GLAdapter.gl30 = (GL30) gl;
ANDROID_QUIRKS = (CanvasAdapter.platform == Platform.ANDROID);
GDX_DESKTOP_QUIRKS = CanvasAdapter.platform.isDesktop();
GDX_WEBGL_QUIRKS = (CanvasAdapter.platform == Platform.WEBGL);
}
public static boolean isGL30() {
return gl30 != null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy