Package org.oscim.gdx
Class GdxMap
java.lang.Object
org.oscim.gdx.GdxMap
- All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.badlogic.gdx.input.GestureDetectorprotected org.oscim.map.Mapprotected org.oscim.renderer.MapRenderer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()protected voidvoiddispose()org.oscim.map.MapgetMap()protected voidinitDefaultLayers(org.oscim.tiling.TileSource tileSource, boolean tileGrid, boolean labels, boolean buildings) protected abstract voidinitGLAdapter(com.badlogic.gdx.graphics.glutils.GLVersion version) protected booleanonKeyDown(int keycode) protected booleanonKeyUp(int keycode) voidpause()voidrender()voidresize(int w, int h) voidresume()
-
Field Details
-
mMap
protected org.oscim.map.Map mMap -
mGestureDetector
protected com.badlogic.gdx.input.GestureDetector mGestureDetector -
mMapRenderer
protected org.oscim.renderer.MapRenderer mMapRenderer
-
-
Constructor Details
-
GdxMap
public GdxMap()
-
-
Method Details
-
initDefaultLayers
protected void initDefaultLayers(org.oscim.tiling.TileSource tileSource, boolean tileGrid, boolean labels, boolean buildings) -
create
public void create()- Specified by:
createin interfacecom.badlogic.gdx.ApplicationListener
-
initGLAdapter
protected abstract void initGLAdapter(com.badlogic.gdx.graphics.glutils.GLVersion version) -
createLayers
protected void createLayers() -
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.ApplicationListener
-
render
public void render()- Specified by:
renderin interfacecom.badlogic.gdx.ApplicationListener
-
resize
public void resize(int w, int h) - Specified by:
resizein interfacecom.badlogic.gdx.ApplicationListener
-
pause
public void pause()- Specified by:
pausein interfacecom.badlogic.gdx.ApplicationListener
-
resume
public void resume()- Specified by:
resumein interfacecom.badlogic.gdx.ApplicationListener
-
onKeyDown
protected boolean onKeyDown(int keycode) -
onKeyUp
protected boolean onKeyUp(int keycode) -
getMap
public org.oscim.map.Map getMap()
-