Add missing @Override annotations (#617)
This commit is contained in:
@@ -38,6 +38,7 @@ public class MapActivity extends Activity {
|
|||||||
this(R.layout.activity_map);
|
this(R.layout.activity_map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(mContentView);
|
setContentView(mContentView);
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ public class MultiMapViewActivity extends Activity {
|
|||||||
private MapView mMapView1, mMapView2;
|
private MapView mMapView1, mMapView2;
|
||||||
private MapPreferences mPrefs1, mPrefs2;
|
private MapPreferences mPrefs1, mPrefs2;
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_map_multi);
|
setContentView(R.layout.activity_map_multi);
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ public class PoiSearchActivity extends MapsforgeActivity implements ItemizedLaye
|
|||||||
|
|
||||||
Button addItem = (Button) findViewById(R.id.add_item);
|
Button addItem = (Button) findViewById(R.id.add_item);
|
||||||
addItem.setOnClickListener(new View.OnClickListener() {
|
addItem.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
searchPatterns.add(new Pattern("", ""));
|
searchPatterns.add(new Pattern("", ""));
|
||||||
adapter.notifyDataSetChanged();
|
adapter.notifyDataSetChanged();
|
||||||
@@ -104,6 +105,7 @@ public class PoiSearchActivity extends MapsforgeActivity implements ItemizedLaye
|
|||||||
|
|
||||||
Button startSearch = (Button) findViewById(R.id.start_search);
|
Button startSearch = (Button) findViewById(R.id.start_search);
|
||||||
startSearch.setOnClickListener(new View.OnClickListener() {
|
startSearch.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
// Clear overlays
|
// Clear overlays
|
||||||
mMarkerLayer.removeAllItems();
|
mMarkerLayer.removeAllItems();
|
||||||
@@ -244,6 +246,7 @@ public class PoiSearchActivity extends MapsforgeActivity implements ItemizedLaye
|
|||||||
Button remove = (Button) convertView.findViewById(R.id.remove);
|
Button remove = (Button) convertView.findViewById(R.id.remove);
|
||||||
remove.setTag(pattern);
|
remove.setTag(pattern);
|
||||||
remove.setOnClickListener(new View.OnClickListener() {
|
remove.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Pattern pat = (Pattern) v.getTag();
|
Pattern pat = (Pattern) v.getTag();
|
||||||
remove(pat);
|
remove(pat);
|
||||||
|
|||||||
@@ -139,10 +139,12 @@ public class MapView extends GLSurfaceView {
|
|||||||
mMap.destroy();
|
mMap.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onPause() {
|
public void onPause() {
|
||||||
mMap.pause(true);
|
mMap.pause(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
mMap.pause(false);
|
mMap.pause(false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,15 +56,18 @@ public class MapLayers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Config[] configs = new Config[]{new Config("OPENSCIENCEMAP4") {
|
static Config[] configs = new Config[]{new Config("OPENSCIENCEMAP4") {
|
||||||
|
@Override
|
||||||
TileSource init() {
|
TileSource init() {
|
||||||
return new OSciMap4TileSource();
|
return new OSciMap4TileSource();
|
||||||
}
|
}
|
||||||
}, new Config("MAPSFORGE") {
|
}, new Config("MAPSFORGE") {
|
||||||
|
@Override
|
||||||
TileSource init() {
|
TileSource init() {
|
||||||
return new MapFileTileSource().setOption("file",
|
return new MapFileTileSource().setOption("file",
|
||||||
"/storage/sdcard0/germany.map");
|
"/storage/sdcard0/germany.map");
|
||||||
}
|
}
|
||||||
}, new Config("MAPNIK_VECTOR") {
|
}, new Config("MAPNIK_VECTOR") {
|
||||||
|
@Override
|
||||||
TileSource init() {
|
TileSource init() {
|
||||||
return new MapnikVectorTileSource();
|
return new MapnikVectorTileSource();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ public class FlickrPOIProvider implements POIProvider {
|
|||||||
* Null if
|
* Null if
|
||||||
* technical issue.
|
* technical issue.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public ArrayList<POI> getPOIInside(BoundingBox boundingBox, String query, int maxResults) {
|
public ArrayList<POI> getPOIInside(BoundingBox boundingBox, String query, int maxResults) {
|
||||||
String url = getUrlInside(boundingBox, maxResults);
|
String url = getUrlInside(boundingBox, maxResults);
|
||||||
return getThem(url);
|
return getThem(url);
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ public class FourSquareProvider implements POIProvider {
|
|||||||
* Null if
|
* Null if
|
||||||
* technical issue.
|
* technical issue.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public ArrayList<POI> getPOIInside(BoundingBox boundingBox, String query, int maxResults) {
|
public ArrayList<POI> getPOIInside(BoundingBox boundingBox, String query, int maxResults) {
|
||||||
String url = getUrlInside(boundingBox, query, maxResults);
|
String url = getUrlInside(boundingBox, query, maxResults);
|
||||||
return getThem(url);
|
return getThem(url);
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ public class NominatimPOIProvider implements POIProvider {
|
|||||||
* @param maxResults ...
|
* @param maxResults ...
|
||||||
* @return list of POIs, null if technical issue.
|
* @return list of POIs, null if technical issue.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public ArrayList<POI> getPOIInside(BoundingBox boundingBox, String type, int maxResults) {
|
public ArrayList<POI> getPOIInside(BoundingBox boundingBox, String type, int maxResults) {
|
||||||
String url = getUrlInside(boundingBox, type, maxResults);
|
String url = getUrlInside(boundingBox, type, maxResults);
|
||||||
return getThem(url);
|
return getThem(url);
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ public class PicasaPOIProvider implements POIProvider {
|
|||||||
* @return list of POI, Picasa photos inside the bounding box. Null if
|
* @return list of POI, Picasa photos inside the bounding box. Null if
|
||||||
* technical issue.
|
* technical issue.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public List<POI> getPOIInside(BoundingBox boundingBox, String query, int maxResults) {
|
public List<POI> getPOIInside(BoundingBox boundingBox, String query, int maxResults) {
|
||||||
String url = getUrlInside(boundingBox, maxResults, query);
|
String url = getUrlInside(boundingBox, maxResults, query);
|
||||||
return getThem(url);
|
return getThem(url);
|
||||||
|
|||||||
@@ -68,54 +68,67 @@ public class LwjglGL20 implements GL {
|
|||||||
return intBuffer;
|
return intBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void activeTexture(int texture) {
|
public void activeTexture(int texture) {
|
||||||
GL13.glActiveTexture(texture);
|
GL13.glActiveTexture(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void attachShader(int program, int shader) {
|
public void attachShader(int program, int shader) {
|
||||||
GL20.glAttachShader(program, shader);
|
GL20.glAttachShader(program, shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindAttribLocation(int program, int index, String name) {
|
public void bindAttribLocation(int program, int index, String name) {
|
||||||
GL20.glBindAttribLocation(program, index, name);
|
GL20.glBindAttribLocation(program, index, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindBuffer(int target, int buffer) {
|
public void bindBuffer(int target, int buffer) {
|
||||||
GL15.glBindBuffer(target, buffer);
|
GL15.glBindBuffer(target, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindFramebuffer(int target, int framebuffer) {
|
public void bindFramebuffer(int target, int framebuffer) {
|
||||||
EXTFramebufferObject.glBindFramebufferEXT(target, framebuffer);
|
EXTFramebufferObject.glBindFramebufferEXT(target, framebuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindRenderbuffer(int target, int renderbuffer) {
|
public void bindRenderbuffer(int target, int renderbuffer) {
|
||||||
EXTFramebufferObject.glBindRenderbufferEXT(target, renderbuffer);
|
EXTFramebufferObject.glBindRenderbufferEXT(target, renderbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindTexture(int target, int texture) {
|
public void bindTexture(int target, int texture) {
|
||||||
GL11.glBindTexture(target, texture);
|
GL11.glBindTexture(target, texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendColor(float red, float green, float blue, float alpha) {
|
public void blendColor(float red, float green, float blue, float alpha) {
|
||||||
GL14.glBlendColor(red, green, blue, alpha);
|
GL14.glBlendColor(red, green, blue, alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendEquation(int mode) {
|
public void blendEquation(int mode) {
|
||||||
GL14.glBlendEquation(mode);
|
GL14.glBlendEquation(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendEquationSeparate(int modeRGB, int modeAlpha) {
|
public void blendEquationSeparate(int modeRGB, int modeAlpha) {
|
||||||
GL20.glBlendEquationSeparate(modeRGB, modeAlpha);
|
GL20.glBlendEquationSeparate(modeRGB, modeAlpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendFunc(int sfactor, int dfactor) {
|
public void blendFunc(int sfactor, int dfactor) {
|
||||||
GL11.glBlendFunc(sfactor, dfactor);
|
GL11.glBlendFunc(sfactor, dfactor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) {
|
public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) {
|
||||||
GL14.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
|
GL14.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bufferData(int target, int size, Buffer data, int usage) {
|
public void bufferData(int target, int size, Buffer data, int usage) {
|
||||||
if (data == null)
|
if (data == null)
|
||||||
GL15.glBufferData(target, size, usage);
|
GL15.glBufferData(target, size, usage);
|
||||||
@@ -131,6 +144,7 @@ public class LwjglGL20 implements GL {
|
|||||||
GL15.glBufferData(target, (ShortBuffer) data, usage);
|
GL15.glBufferData(target, (ShortBuffer) data, usage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bufferSubData(int target, int offset, int size, Buffer data) {
|
public void bufferSubData(int target, int offset, int size, Buffer data) {
|
||||||
if (data == null)
|
if (data == null)
|
||||||
throw new GdxRuntimeException("Using null for the data not possible, blame LWJGL");
|
throw new GdxRuntimeException("Using null for the data not possible, blame LWJGL");
|
||||||
@@ -146,34 +160,42 @@ public class LwjglGL20 implements GL {
|
|||||||
GL15.glBufferSubData(target, offset, (ShortBuffer) data);
|
GL15.glBufferSubData(target, offset, (ShortBuffer) data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int checkFramebufferStatus(int target) {
|
public int checkFramebufferStatus(int target) {
|
||||||
return EXTFramebufferObject.glCheckFramebufferStatusEXT(target);
|
return EXTFramebufferObject.glCheckFramebufferStatusEXT(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clear(int mask) {
|
public void clear(int mask) {
|
||||||
GL11.glClear(mask);
|
GL11.glClear(mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clearColor(float red, float green, float blue, float alpha) {
|
public void clearColor(float red, float green, float blue, float alpha) {
|
||||||
GL11.glClearColor(red, green, blue, alpha);
|
GL11.glClearColor(red, green, blue, alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clearDepthf(float depth) {
|
public void clearDepthf(float depth) {
|
||||||
GL11.glClearDepth(depth);
|
GL11.glClearDepth(depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clearStencil(int s) {
|
public void clearStencil(int s) {
|
||||||
GL11.glClearStencil(s);
|
GL11.glClearStencil(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void colorMask(boolean red, boolean green, boolean blue, boolean alpha) {
|
public void colorMask(boolean red, boolean green, boolean blue, boolean alpha) {
|
||||||
GL11.glColorMask(red, green, blue, alpha);
|
GL11.glColorMask(red, green, blue, alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void compileShader(int shader) {
|
public void compileShader(int shader) {
|
||||||
GL20.glCompileShader(shader);
|
GL20.glCompileShader(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border,
|
public void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border,
|
||||||
int imageSize, Buffer data) {
|
int imageSize, Buffer data) {
|
||||||
if (data instanceof ByteBuffer) {
|
if (data instanceof ByteBuffer) {
|
||||||
@@ -183,31 +205,38 @@ public class LwjglGL20 implements GL {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format,
|
public void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format,
|
||||||
int imageSize, Buffer data) {
|
int imageSize, Buffer data) {
|
||||||
throw new GdxRuntimeException("not implemented");
|
throw new GdxRuntimeException("not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) {
|
public void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) {
|
||||||
GL11.glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
|
GL11.glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) {
|
public void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) {
|
||||||
GL11.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
|
GL11.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int createProgram() {
|
public int createProgram() {
|
||||||
return GL20.glCreateProgram();
|
return GL20.glCreateProgram();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int createShader(int type) {
|
public int createShader(int type) {
|
||||||
return GL20.glCreateShader(type);
|
return GL20.glCreateShader(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void cullFace(int mode) {
|
public void cullFace(int mode) {
|
||||||
GL11.glCullFace(mode);
|
GL11.glCullFace(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteBuffers(int n, IntBuffer buffers) {
|
public void deleteBuffers(int n, IntBuffer buffers) {
|
||||||
GL15.glDeleteBuffers(buffers);
|
GL15.glDeleteBuffers(buffers);
|
||||||
}
|
}
|
||||||
@@ -216,6 +245,7 @@ public class LwjglGL20 implements GL {
|
|||||||
GL15.glDeleteBuffers(buffer);
|
GL15.glDeleteBuffers(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteFramebuffers(int n, IntBuffer framebuffers) {
|
public void deleteFramebuffers(int n, IntBuffer framebuffers) {
|
||||||
EXTFramebufferObject.glDeleteFramebuffersEXT(framebuffers);
|
EXTFramebufferObject.glDeleteFramebuffersEXT(framebuffers);
|
||||||
}
|
}
|
||||||
@@ -224,10 +254,12 @@ public class LwjglGL20 implements GL {
|
|||||||
EXTFramebufferObject.glDeleteFramebuffersEXT(framebuffer);
|
EXTFramebufferObject.glDeleteFramebuffersEXT(framebuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteProgram(int program) {
|
public void deleteProgram(int program) {
|
||||||
GL20.glDeleteProgram(program);
|
GL20.glDeleteProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteRenderbuffers(int n, IntBuffer renderbuffers) {
|
public void deleteRenderbuffers(int n, IntBuffer renderbuffers) {
|
||||||
EXTFramebufferObject.glDeleteRenderbuffersEXT(renderbuffers);
|
EXTFramebufferObject.glDeleteRenderbuffersEXT(renderbuffers);
|
||||||
}
|
}
|
||||||
@@ -236,10 +268,12 @@ public class LwjglGL20 implements GL {
|
|||||||
EXTFramebufferObject.glDeleteRenderbuffersEXT(renderbuffer);
|
EXTFramebufferObject.glDeleteRenderbuffersEXT(renderbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteShader(int shader) {
|
public void deleteShader(int shader) {
|
||||||
GL20.glDeleteShader(shader);
|
GL20.glDeleteShader(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteTextures(int n, IntBuffer textures) {
|
public void deleteTextures(int n, IntBuffer textures) {
|
||||||
GL11.glDeleteTextures(textures);
|
GL11.glDeleteTextures(textures);
|
||||||
}
|
}
|
||||||
@@ -248,34 +282,42 @@ public class LwjglGL20 implements GL {
|
|||||||
GL11.glDeleteTextures(texture);
|
GL11.glDeleteTextures(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void depthFunc(int func) {
|
public void depthFunc(int func) {
|
||||||
GL11.glDepthFunc(func);
|
GL11.glDepthFunc(func);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void depthMask(boolean flag) {
|
public void depthMask(boolean flag) {
|
||||||
GL11.glDepthMask(flag);
|
GL11.glDepthMask(flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void depthRangef(float zNear, float zFar) {
|
public void depthRangef(float zNear, float zFar) {
|
||||||
GL11.glDepthRange(zNear, zFar);
|
GL11.glDepthRange(zNear, zFar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void detachShader(int program, int shader) {
|
public void detachShader(int program, int shader) {
|
||||||
GL20.glDetachShader(program, shader);
|
GL20.glDetachShader(program, shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void disable(int cap) {
|
public void disable(int cap) {
|
||||||
GL11.glDisable(cap);
|
GL11.glDisable(cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void disableVertexAttribArray(int index) {
|
public void disableVertexAttribArray(int index) {
|
||||||
GL20.glDisableVertexAttribArray(index);
|
GL20.glDisableVertexAttribArray(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void drawArrays(int mode, int first, int count) {
|
public void drawArrays(int mode, int first, int count) {
|
||||||
GL11.glDrawArrays(mode, first, count);
|
GL11.glDrawArrays(mode, first, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void drawElements(int mode, int count, int type, Buffer indices) {
|
public void drawElements(int mode, int count, int type, Buffer indices) {
|
||||||
if (indices instanceof ShortBuffer && type == com.badlogic.gdx.graphics.GL20.GL_UNSIGNED_SHORT)
|
if (indices instanceof ShortBuffer && type == com.badlogic.gdx.graphics.GL20.GL_UNSIGNED_SHORT)
|
||||||
GL11.glDrawElements(mode, (ShortBuffer) indices);
|
GL11.glDrawElements(mode, (ShortBuffer) indices);
|
||||||
@@ -288,34 +330,42 @@ public class LwjglGL20 implements GL {
|
|||||||
+ " with this method. Use ShortBuffer or ByteBuffer instead. Blame LWJGL");
|
+ " with this method. Use ShortBuffer or ByteBuffer instead. Blame LWJGL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void enable(int cap) {
|
public void enable(int cap) {
|
||||||
GL11.glEnable(cap);
|
GL11.glEnable(cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void enableVertexAttribArray(int index) {
|
public void enableVertexAttribArray(int index) {
|
||||||
GL20.glEnableVertexAttribArray(index);
|
GL20.glEnableVertexAttribArray(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void finish() {
|
public void finish() {
|
||||||
GL11.glFinish();
|
GL11.glFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void flush() {
|
public void flush() {
|
||||||
GL11.glFlush();
|
GL11.glFlush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, int renderbuffer) {
|
public void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, int renderbuffer) {
|
||||||
EXTFramebufferObject.glFramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer);
|
EXTFramebufferObject.glFramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void framebufferTexture2D(int target, int attachment, int textarget, int texture, int level) {
|
public void framebufferTexture2D(int target, int attachment, int textarget, int texture, int level) {
|
||||||
EXTFramebufferObject.glFramebufferTexture2DEXT(target, attachment, textarget, texture, level);
|
EXTFramebufferObject.glFramebufferTexture2DEXT(target, attachment, textarget, texture, level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void frontFace(int mode) {
|
public void frontFace(int mode) {
|
||||||
GL11.glFrontFace(mode);
|
GL11.glFrontFace(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genBuffers(int n, IntBuffer buffers) {
|
public void genBuffers(int n, IntBuffer buffers) {
|
||||||
GL15.glGenBuffers(buffers);
|
GL15.glGenBuffers(buffers);
|
||||||
}
|
}
|
||||||
@@ -324,6 +374,7 @@ public class LwjglGL20 implements GL {
|
|||||||
return GL15.glGenBuffers();
|
return GL15.glGenBuffers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genFramebuffers(int n, IntBuffer framebuffers) {
|
public void genFramebuffers(int n, IntBuffer framebuffers) {
|
||||||
EXTFramebufferObject.glGenFramebuffersEXT(framebuffers);
|
EXTFramebufferObject.glGenFramebuffersEXT(framebuffers);
|
||||||
}
|
}
|
||||||
@@ -332,6 +383,7 @@ public class LwjglGL20 implements GL {
|
|||||||
return EXTFramebufferObject.glGenFramebuffersEXT();
|
return EXTFramebufferObject.glGenFramebuffersEXT();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genRenderbuffers(int n, IntBuffer renderbuffers) {
|
public void genRenderbuffers(int n, IntBuffer renderbuffers) {
|
||||||
EXTFramebufferObject.glGenRenderbuffersEXT(renderbuffers);
|
EXTFramebufferObject.glGenRenderbuffersEXT(renderbuffers);
|
||||||
}
|
}
|
||||||
@@ -340,6 +392,7 @@ public class LwjglGL20 implements GL {
|
|||||||
return EXTFramebufferObject.glGenRenderbuffersEXT();
|
return EXTFramebufferObject.glGenRenderbuffersEXT();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genTextures(int n, IntBuffer textures) {
|
public void genTextures(int n, IntBuffer textures) {
|
||||||
GL11.glGenTextures(textures);
|
GL11.glGenTextures(textures);
|
||||||
}
|
}
|
||||||
@@ -348,10 +401,12 @@ public class LwjglGL20 implements GL {
|
|||||||
return GL11.glGenTextures();
|
return GL11.glGenTextures();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void generateMipmap(int target) {
|
public void generateMipmap(int target) {
|
||||||
EXTFramebufferObject.glGenerateMipmapEXT(target);
|
EXTFramebufferObject.glGenerateMipmapEXT(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getActiveAttrib(int program, int index, IntBuffer size, Buffer type) {
|
public String getActiveAttrib(int program, int index, IntBuffer size, Buffer type) {
|
||||||
// FIXME this is less than ideal of course...
|
// FIXME this is less than ideal of course...
|
||||||
IntBuffer typeTmp = BufferUtils.createIntBuffer(2);
|
IntBuffer typeTmp = BufferUtils.createIntBuffer(2);
|
||||||
@@ -361,6 +416,7 @@ public class LwjglGL20 implements GL {
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getActiveUniform(int program, int index, IntBuffer size, Buffer type) {
|
public String getActiveUniform(int program, int index, IntBuffer size, Buffer type) {
|
||||||
// FIXME this is less than ideal of course...
|
// FIXME this is less than ideal of course...
|
||||||
IntBuffer typeTmp = BufferUtils.createIntBuffer(2);
|
IntBuffer typeTmp = BufferUtils.createIntBuffer(2);
|
||||||
@@ -370,38 +426,47 @@ public class LwjglGL20 implements GL {
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getAttachedShaders(int program, int maxcount, Buffer count, IntBuffer shaders) {
|
public void getAttachedShaders(int program, int maxcount, Buffer count, IntBuffer shaders) {
|
||||||
GL20.glGetAttachedShaders(program, (IntBuffer) count, shaders);
|
GL20.glGetAttachedShaders(program, (IntBuffer) count, shaders);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getAttribLocation(int program, String name) {
|
public int getAttribLocation(int program, String name) {
|
||||||
return GL20.glGetAttribLocation(program, name);
|
return GL20.glGetAttribLocation(program, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBooleanv(int pname, Buffer params) {
|
public void getBooleanv(int pname, Buffer params) {
|
||||||
GL11.glGetBoolean(pname, (ByteBuffer) params);
|
GL11.glGetBoolean(pname, (ByteBuffer) params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBufferParameteriv(int target, int pname, IntBuffer params) {
|
public void getBufferParameteriv(int target, int pname, IntBuffer params) {
|
||||||
GL15.glGetBufferParameter(target, pname, params);
|
GL15.glGetBufferParameter(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getError() {
|
public int getError() {
|
||||||
return GL11.glGetError();
|
return GL11.glGetError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFloatv(int pname, FloatBuffer params) {
|
public void getFloatv(int pname, FloatBuffer params) {
|
||||||
GL11.glGetFloat(pname, params);
|
GL11.glGetFloat(pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFramebufferAttachmentParameteriv(int target, int attachment, int pname, IntBuffer params) {
|
public void getFramebufferAttachmentParameteriv(int target, int attachment, int pname, IntBuffer params) {
|
||||||
EXTFramebufferObject.glGetFramebufferAttachmentParameterEXT(target, attachment, pname, params);
|
EXTFramebufferObject.glGetFramebufferAttachmentParameterEXT(target, attachment, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getIntegerv(int pname, IntBuffer params) {
|
public void getIntegerv(int pname, IntBuffer params) {
|
||||||
GL11.glGetInteger(pname, params);
|
GL11.glGetInteger(pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getProgramInfoLog(int program) {
|
public String getProgramInfoLog(int program) {
|
||||||
ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10);
|
ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10);
|
||||||
buffer.order(ByteOrder.nativeOrder());
|
buffer.order(ByteOrder.nativeOrder());
|
||||||
@@ -416,14 +481,17 @@ public class LwjglGL20 implements GL {
|
|||||||
return new String(bytes);
|
return new String(bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getProgramiv(int program, int pname, IntBuffer params) {
|
public void getProgramiv(int program, int pname, IntBuffer params) {
|
||||||
GL20.glGetProgram(program, pname, params);
|
GL20.glGetProgram(program, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getRenderbufferParameteriv(int target, int pname, IntBuffer params) {
|
public void getRenderbufferParameteriv(int target, int pname, IntBuffer params) {
|
||||||
EXTFramebufferObject.glGetRenderbufferParameterEXT(target, pname, params);
|
EXTFramebufferObject.glGetRenderbufferParameterEXT(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getShaderInfoLog(int shader) {
|
public String getShaderInfoLog(int shader) {
|
||||||
ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10);
|
ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10);
|
||||||
buffer.order(ByteOrder.nativeOrder());
|
buffer.order(ByteOrder.nativeOrder());
|
||||||
@@ -438,98 +506,122 @@ public class LwjglGL20 implements GL {
|
|||||||
return new String(bytes);
|
return new String(bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range, IntBuffer precision) {
|
public void getShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range, IntBuffer precision) {
|
||||||
throw new UnsupportedOperationException("unsupported, won't implement");
|
throw new UnsupportedOperationException("unsupported, won't implement");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getShaderiv(int shader, int pname, IntBuffer params) {
|
public void getShaderiv(int shader, int pname, IntBuffer params) {
|
||||||
GL20.glGetShader(shader, pname, params);
|
GL20.glGetShader(shader, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getString(int name) {
|
public String getString(int name) {
|
||||||
return GL11.glGetString(name);
|
return GL11.glGetString(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getTexParameterfv(int target, int pname, FloatBuffer params) {
|
public void getTexParameterfv(int target, int pname, FloatBuffer params) {
|
||||||
GL11.glGetTexParameter(target, pname, params);
|
GL11.glGetTexParameter(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getTexParameteriv(int target, int pname, IntBuffer params) {
|
public void getTexParameteriv(int target, int pname, IntBuffer params) {
|
||||||
GL11.glGetTexParameter(target, pname, params);
|
GL11.glGetTexParameter(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getUniformLocation(int program, String name) {
|
public int getUniformLocation(int program, String name) {
|
||||||
return GL20.glGetUniformLocation(program, name);
|
return GL20.glGetUniformLocation(program, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getUniformfv(int program, int location, FloatBuffer params) {
|
public void getUniformfv(int program, int location, FloatBuffer params) {
|
||||||
GL20.glGetUniform(program, location, params);
|
GL20.glGetUniform(program, location, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getUniformiv(int program, int location, IntBuffer params) {
|
public void getUniformiv(int program, int location, IntBuffer params) {
|
||||||
GL20.glGetUniform(program, location, params);
|
GL20.glGetUniform(program, location, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getVertexAttribPointerv(int index, int pname, Buffer pointer) {
|
public void getVertexAttribPointerv(int index, int pname, Buffer pointer) {
|
||||||
throw new UnsupportedOperationException("unsupported, won't implement");
|
throw new UnsupportedOperationException("unsupported, won't implement");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getVertexAttribfv(int index, int pname, FloatBuffer params) {
|
public void getVertexAttribfv(int index, int pname, FloatBuffer params) {
|
||||||
GL20.glGetVertexAttrib(index, pname, params);
|
GL20.glGetVertexAttrib(index, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getVertexAttribiv(int index, int pname, IntBuffer params) {
|
public void getVertexAttribiv(int index, int pname, IntBuffer params) {
|
||||||
GL20.glGetVertexAttrib(index, pname, params);
|
GL20.glGetVertexAttrib(index, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void hint(int target, int mode) {
|
public void hint(int target, int mode) {
|
||||||
GL11.glHint(target, mode);
|
GL11.glHint(target, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isBuffer(int buffer) {
|
public boolean isBuffer(int buffer) {
|
||||||
return GL15.glIsBuffer(buffer);
|
return GL15.glIsBuffer(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isEnabled(int cap) {
|
public boolean isEnabled(int cap) {
|
||||||
return GL11.glIsEnabled(cap);
|
return GL11.glIsEnabled(cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isFramebuffer(int framebuffer) {
|
public boolean isFramebuffer(int framebuffer) {
|
||||||
return EXTFramebufferObject.glIsFramebufferEXT(framebuffer);
|
return EXTFramebufferObject.glIsFramebufferEXT(framebuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isProgram(int program) {
|
public boolean isProgram(int program) {
|
||||||
return GL20.glIsProgram(program);
|
return GL20.glIsProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isRenderbuffer(int renderbuffer) {
|
public boolean isRenderbuffer(int renderbuffer) {
|
||||||
return EXTFramebufferObject.glIsRenderbufferEXT(renderbuffer);
|
return EXTFramebufferObject.glIsRenderbufferEXT(renderbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isShader(int shader) {
|
public boolean isShader(int shader) {
|
||||||
return GL20.glIsShader(shader);
|
return GL20.glIsShader(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isTexture(int texture) {
|
public boolean isTexture(int texture) {
|
||||||
return GL11.glIsTexture(texture);
|
return GL11.glIsTexture(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void lineWidth(float width) {
|
public void lineWidth(float width) {
|
||||||
GL11.glLineWidth(width);
|
GL11.glLineWidth(width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void linkProgram(int program) {
|
public void linkProgram(int program) {
|
||||||
GL20.glLinkProgram(program);
|
GL20.glLinkProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void pixelStorei(int pname, int param) {
|
public void pixelStorei(int pname, int param) {
|
||||||
GL11.glPixelStorei(pname, param);
|
GL11.glPixelStorei(pname, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void polygonOffset(float factor, float units) {
|
public void polygonOffset(float factor, float units) {
|
||||||
GL11.glPolygonOffset(factor, units);
|
GL11.glPolygonOffset(factor, units);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readPixels(int x, int y, int width, int height, int format, int type, Buffer pixels) {
|
public void readPixels(int x, int y, int width, int height, int format, int type, Buffer pixels) {
|
||||||
if (pixels instanceof ByteBuffer)
|
if (pixels instanceof ByteBuffer)
|
||||||
GL11.glReadPixels(x, y, width, height, format, type, (ByteBuffer) pixels);
|
GL11.glReadPixels(x, y, width, height, format, type, (ByteBuffer) pixels);
|
||||||
@@ -544,54 +636,67 @@ public class LwjglGL20 implements GL {
|
|||||||
+ " with this method. Use ByteBuffer, ShortBuffer, IntBuffer or FloatBuffer instead. Blame LWJGL");
|
+ " with this method. Use ByteBuffer, ShortBuffer, IntBuffer or FloatBuffer instead. Blame LWJGL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void releaseShaderCompiler() {
|
public void releaseShaderCompiler() {
|
||||||
// nothing to do here
|
// nothing to do here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void renderbufferStorage(int target, int internalformat, int width, int height) {
|
public void renderbufferStorage(int target, int internalformat, int width, int height) {
|
||||||
EXTFramebufferObject.glRenderbufferStorageEXT(target, internalformat, width, height);
|
EXTFramebufferObject.glRenderbufferStorageEXT(target, internalformat, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void sampleCoverage(float value, boolean invert) {
|
public void sampleCoverage(float value, boolean invert) {
|
||||||
GL13.glSampleCoverage(value, invert);
|
GL13.glSampleCoverage(value, invert);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void scissor(int x, int y, int width, int height) {
|
public void scissor(int x, int y, int width, int height) {
|
||||||
GL11.glScissor(x, y, width, height);
|
GL11.glScissor(x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void shaderBinary(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length) {
|
public void shaderBinary(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length) {
|
||||||
throw new UnsupportedOperationException("unsupported, won't implement");
|
throw new UnsupportedOperationException("unsupported, won't implement");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void shaderSource(int shader, String string) {
|
public void shaderSource(int shader, String string) {
|
||||||
GL20.glShaderSource(shader, string);
|
GL20.glShaderSource(shader, string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilFunc(int func, int ref, int mask) {
|
public void stencilFunc(int func, int ref, int mask) {
|
||||||
GL11.glStencilFunc(func, ref, mask);
|
GL11.glStencilFunc(func, ref, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilFuncSeparate(int face, int func, int ref, int mask) {
|
public void stencilFuncSeparate(int face, int func, int ref, int mask) {
|
||||||
GL20.glStencilFuncSeparate(face, func, ref, mask);
|
GL20.glStencilFuncSeparate(face, func, ref, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilMask(int mask) {
|
public void stencilMask(int mask) {
|
||||||
GL11.glStencilMask(mask);
|
GL11.glStencilMask(mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilMaskSeparate(int face, int mask) {
|
public void stencilMaskSeparate(int face, int mask) {
|
||||||
GL20.glStencilMaskSeparate(face, mask);
|
GL20.glStencilMaskSeparate(face, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilOp(int fail, int zfail, int zpass) {
|
public void stencilOp(int fail, int zfail, int zpass) {
|
||||||
GL11.glStencilOp(fail, zfail, zpass);
|
GL11.glStencilOp(fail, zfail, zpass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilOpSeparate(int face, int fail, int zfail, int zpass) {
|
public void stencilOpSeparate(int face, int fail, int zfail, int zpass) {
|
||||||
GL20.glStencilOpSeparate(face, fail, zfail, zpass);
|
GL20.glStencilOpSeparate(face, fail, zfail, zpass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type,
|
public void texImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type,
|
||||||
Buffer pixels) {
|
Buffer pixels) {
|
||||||
if (pixels == null)
|
if (pixels == null)
|
||||||
@@ -611,22 +716,27 @@ public class LwjglGL20 implements GL {
|
|||||||
+ " with this method. Use ByteBuffer, ShortBuffer, IntBuffer, FloatBuffer or DoubleBuffer instead. Blame LWJGL");
|
+ " with this method. Use ByteBuffer, ShortBuffer, IntBuffer, FloatBuffer or DoubleBuffer instead. Blame LWJGL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameterf(int target, int pname, float param) {
|
public void texParameterf(int target, int pname, float param) {
|
||||||
GL11.glTexParameterf(target, pname, param);
|
GL11.glTexParameterf(target, pname, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameterfv(int target, int pname, FloatBuffer params) {
|
public void texParameterfv(int target, int pname, FloatBuffer params) {
|
||||||
GL11.glTexParameter(target, pname, params);
|
GL11.glTexParameter(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameteri(int target, int pname, int param) {
|
public void texParameteri(int target, int pname, int param) {
|
||||||
GL11.glTexParameteri(target, pname, param);
|
GL11.glTexParameteri(target, pname, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameteriv(int target, int pname, IntBuffer params) {
|
public void texParameteriv(int target, int pname, IntBuffer params) {
|
||||||
GL11.glTexParameter(target, pname, params);
|
GL11.glTexParameter(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type,
|
public void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type,
|
||||||
Buffer pixels) {
|
Buffer pixels) {
|
||||||
if (pixels instanceof ByteBuffer)
|
if (pixels instanceof ByteBuffer)
|
||||||
@@ -644,10 +754,12 @@ public class LwjglGL20 implements GL {
|
|||||||
+ " with this method. Use ByteBuffer, ShortBuffer, IntBuffer, FloatBuffer or DoubleBuffer instead. Blame LWJGL");
|
+ " with this method. Use ByteBuffer, ShortBuffer, IntBuffer, FloatBuffer or DoubleBuffer instead. Blame LWJGL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1f(int location, float x) {
|
public void uniform1f(int location, float x) {
|
||||||
GL20.glUniform1f(location, x);
|
GL20.glUniform1f(location, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1fv(int location, int count, FloatBuffer v) {
|
public void uniform1fv(int location, int count, FloatBuffer v) {
|
||||||
GL20.glUniform1(location, v);
|
GL20.glUniform1(location, v);
|
||||||
}
|
}
|
||||||
@@ -656,10 +768,12 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniform1(location, toFloatBuffer(v, offset, count));
|
GL20.glUniform1(location, toFloatBuffer(v, offset, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1i(int location, int x) {
|
public void uniform1i(int location, int x) {
|
||||||
GL20.glUniform1i(location, x);
|
GL20.glUniform1i(location, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1iv(int location, int count, IntBuffer v) {
|
public void uniform1iv(int location, int count, IntBuffer v) {
|
||||||
GL20.glUniform1(location, v);
|
GL20.glUniform1(location, v);
|
||||||
}
|
}
|
||||||
@@ -668,10 +782,12 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniform1(location, toIntBuffer(v, offset, count));
|
GL20.glUniform1(location, toIntBuffer(v, offset, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2f(int location, float x, float y) {
|
public void uniform2f(int location, float x, float y) {
|
||||||
GL20.glUniform2f(location, x, y);
|
GL20.glUniform2f(location, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2fv(int location, int count, FloatBuffer v) {
|
public void uniform2fv(int location, int count, FloatBuffer v) {
|
||||||
GL20.glUniform2(location, v);
|
GL20.glUniform2(location, v);
|
||||||
}
|
}
|
||||||
@@ -680,10 +796,12 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniform2(location, toFloatBuffer(v, offset, count << 1));
|
GL20.glUniform2(location, toFloatBuffer(v, offset, count << 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2i(int location, int x, int y) {
|
public void uniform2i(int location, int x, int y) {
|
||||||
GL20.glUniform2i(location, x, y);
|
GL20.glUniform2i(location, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2iv(int location, int count, IntBuffer v) {
|
public void uniform2iv(int location, int count, IntBuffer v) {
|
||||||
GL20.glUniform2(location, v);
|
GL20.glUniform2(location, v);
|
||||||
}
|
}
|
||||||
@@ -692,10 +810,12 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniform2(location, toIntBuffer(v, offset, count << 1));
|
GL20.glUniform2(location, toIntBuffer(v, offset, count << 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3f(int location, float x, float y, float z) {
|
public void uniform3f(int location, float x, float y, float z) {
|
||||||
GL20.glUniform3f(location, x, y, z);
|
GL20.glUniform3f(location, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3fv(int location, int count, FloatBuffer v) {
|
public void uniform3fv(int location, int count, FloatBuffer v) {
|
||||||
GL20.glUniform3(location, v);
|
GL20.glUniform3(location, v);
|
||||||
}
|
}
|
||||||
@@ -704,10 +824,12 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniform3(location, toFloatBuffer(v, offset, count * 3));
|
GL20.glUniform3(location, toFloatBuffer(v, offset, count * 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3i(int location, int x, int y, int z) {
|
public void uniform3i(int location, int x, int y, int z) {
|
||||||
GL20.glUniform3i(location, x, y, z);
|
GL20.glUniform3i(location, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3iv(int location, int count, IntBuffer v) {
|
public void uniform3iv(int location, int count, IntBuffer v) {
|
||||||
GL20.glUniform3(location, v);
|
GL20.glUniform3(location, v);
|
||||||
}
|
}
|
||||||
@@ -716,10 +838,12 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniform3(location, toIntBuffer(v, offset, count * 3));
|
GL20.glUniform3(location, toIntBuffer(v, offset, count * 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4f(int location, float x, float y, float z, float w) {
|
public void uniform4f(int location, float x, float y, float z, float w) {
|
||||||
GL20.glUniform4f(location, x, y, z, w);
|
GL20.glUniform4f(location, x, y, z, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4fv(int location, int count, FloatBuffer v) {
|
public void uniform4fv(int location, int count, FloatBuffer v) {
|
||||||
GL20.glUniform4(location, v);
|
GL20.glUniform4(location, v);
|
||||||
}
|
}
|
||||||
@@ -728,10 +852,12 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniform4(location, toFloatBuffer(v, offset, count << 2));
|
GL20.glUniform4(location, toFloatBuffer(v, offset, count << 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4i(int location, int x, int y, int z, int w) {
|
public void uniform4i(int location, int x, int y, int z, int w) {
|
||||||
GL20.glUniform4i(location, x, y, z, w);
|
GL20.glUniform4i(location, x, y, z, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4iv(int location, int count, IntBuffer v) {
|
public void uniform4iv(int location, int count, IntBuffer v) {
|
||||||
GL20.glUniform4(location, v);
|
GL20.glUniform4(location, v);
|
||||||
}
|
}
|
||||||
@@ -740,6 +866,7 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniform4(location, toIntBuffer(v, offset, count << 2));
|
GL20.glUniform4(location, toIntBuffer(v, offset, count << 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value) {
|
public void uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value) {
|
||||||
GL20.glUniformMatrix2(location, transpose, value);
|
GL20.glUniformMatrix2(location, transpose, value);
|
||||||
}
|
}
|
||||||
@@ -748,6 +875,7 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniformMatrix2(location, transpose, toFloatBuffer(value, offset, count << 2));
|
GL20.glUniformMatrix2(location, transpose, toFloatBuffer(value, offset, count << 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value) {
|
public void uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value) {
|
||||||
GL20.glUniformMatrix3(location, transpose, value);
|
GL20.glUniformMatrix3(location, transpose, value);
|
||||||
}
|
}
|
||||||
@@ -756,6 +884,7 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniformMatrix3(location, transpose, toFloatBuffer(value, offset, count * 9));
|
GL20.glUniformMatrix3(location, transpose, toFloatBuffer(value, offset, count * 9));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value) {
|
public void uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value) {
|
||||||
GL20.glUniformMatrix4(location, transpose, value);
|
GL20.glUniformMatrix4(location, transpose, value);
|
||||||
}
|
}
|
||||||
@@ -764,46 +893,57 @@ public class LwjglGL20 implements GL {
|
|||||||
GL20.glUniformMatrix4(location, transpose, toFloatBuffer(value, offset, count << 4));
|
GL20.glUniformMatrix4(location, transpose, toFloatBuffer(value, offset, count << 4));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void useProgram(int program) {
|
public void useProgram(int program) {
|
||||||
GL20.glUseProgram(program);
|
GL20.glUseProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void validateProgram(int program) {
|
public void validateProgram(int program) {
|
||||||
GL20.glValidateProgram(program);
|
GL20.glValidateProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib1f(int indx, float x) {
|
public void vertexAttrib1f(int indx, float x) {
|
||||||
GL20.glVertexAttrib1f(indx, x);
|
GL20.glVertexAttrib1f(indx, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib1fv(int indx, FloatBuffer values) {
|
public void vertexAttrib1fv(int indx, FloatBuffer values) {
|
||||||
GL20.glVertexAttrib1f(indx, values.get());
|
GL20.glVertexAttrib1f(indx, values.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib2f(int indx, float x, float y) {
|
public void vertexAttrib2f(int indx, float x, float y) {
|
||||||
GL20.glVertexAttrib2f(indx, x, y);
|
GL20.glVertexAttrib2f(indx, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib2fv(int indx, FloatBuffer values) {
|
public void vertexAttrib2fv(int indx, FloatBuffer values) {
|
||||||
GL20.glVertexAttrib2f(indx, values.get(), values.get());
|
GL20.glVertexAttrib2f(indx, values.get(), values.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib3f(int indx, float x, float y, float z) {
|
public void vertexAttrib3f(int indx, float x, float y, float z) {
|
||||||
GL20.glVertexAttrib3f(indx, x, y, z);
|
GL20.glVertexAttrib3f(indx, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib3fv(int indx, FloatBuffer values) {
|
public void vertexAttrib3fv(int indx, FloatBuffer values) {
|
||||||
GL20.glVertexAttrib3f(indx, values.get(), values.get(), values.get());
|
GL20.glVertexAttrib3f(indx, values.get(), values.get(), values.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib4f(int indx, float x, float y, float z, float w) {
|
public void vertexAttrib4f(int indx, float x, float y, float z, float w) {
|
||||||
GL20.glVertexAttrib4f(indx, x, y, z, w);
|
GL20.glVertexAttrib4f(indx, x, y, z, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib4fv(int indx, FloatBuffer values) {
|
public void vertexAttrib4fv(int indx, FloatBuffer values) {
|
||||||
GL20.glVertexAttrib4f(indx, values.get(), values.get(), values.get(), values.get());
|
GL20.glVertexAttrib4f(indx, values.get(), values.get(), values.get(), values.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, Buffer buffer) {
|
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, Buffer buffer) {
|
||||||
if (buffer instanceof ByteBuffer) {
|
if (buffer instanceof ByteBuffer) {
|
||||||
if (type == BYTE)
|
if (type == BYTE)
|
||||||
@@ -834,18 +974,22 @@ public class LwjglGL20 implements GL {
|
|||||||
+ " with this method. Use ByteBuffer instead. Blame LWJGL");
|
+ " with this method. Use ByteBuffer instead. Blame LWJGL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void viewport(int x, int y, int width, int height) {
|
public void viewport(int x, int y, int width, int height) {
|
||||||
GL11.glViewport(x, y, width, height);
|
GL11.glViewport(x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void drawElements(int mode, int count, int type, int indices) {
|
public void drawElements(int mode, int count, int type, int indices) {
|
||||||
GL11.glDrawElements(mode, count, type, indices);
|
GL11.glDrawElements(mode, count, type, indices);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, int ptr) {
|
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, int ptr) {
|
||||||
GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
|
GL20.glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getShaderSource(int shader, int bufsize, Buffer length, String source) {
|
public void getShaderSource(int shader, int bufsize, Buffer length, String source) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ public class OsmWay extends OsmElement {
|
|||||||
return "w" + id;
|
return "w" + id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Geometry toJts() {
|
public Geometry toJts() {
|
||||||
double[] coords = new double[nodes.size() * 2];
|
double[] coords = new double[nodes.size() * 2];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|||||||
@@ -29,38 +29,47 @@ public class IosGL implements GL {
|
|||||||
|
|
||||||
private static final IOSGLES20 iOSGL = new IOSGLES20();
|
private static final IOSGLES20 iOSGL = new IOSGLES20();
|
||||||
|
|
||||||
|
@Override
|
||||||
public void activeTexture(int texture) {
|
public void activeTexture(int texture) {
|
||||||
iOSGL.glActiveTexture(texture);
|
iOSGL.glActiveTexture(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindTexture(int target, int texture) {
|
public void bindTexture(int target, int texture) {
|
||||||
iOSGL.glBindTexture(target, texture);
|
iOSGL.glBindTexture(target, texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendFunc(int sfactor, int dfactor) {
|
public void blendFunc(int sfactor, int dfactor) {
|
||||||
iOSGL.glBlendFunc(sfactor, dfactor);
|
iOSGL.glBlendFunc(sfactor, dfactor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clear(int mask) {
|
public void clear(int mask) {
|
||||||
iOSGL.glClear(mask);
|
iOSGL.glClear(mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clearColor(float red, float green, float blue, float alpha) {
|
public void clearColor(float red, float green, float blue, float alpha) {
|
||||||
iOSGL.glClearColor(red, green, blue, alpha);
|
iOSGL.glClearColor(red, green, blue, alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clearDepthf(float depth) {
|
public void clearDepthf(float depth) {
|
||||||
iOSGL.glClearDepthf(depth);
|
iOSGL.glClearDepthf(depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clearStencil(int s) {
|
public void clearStencil(int s) {
|
||||||
iOSGL.glClearStencil(s);
|
iOSGL.glClearStencil(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void colorMask(boolean red, boolean green, boolean blue, boolean alpha) {
|
public void colorMask(boolean red, boolean green, boolean blue, boolean alpha) {
|
||||||
iOSGL.glColorMask(red, green, blue, alpha);
|
iOSGL.glColorMask(red, green, blue, alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void compressedTexImage2D(int target, int level, int internalformat, int width,
|
public void compressedTexImage2D(int target, int level, int internalformat, int width,
|
||||||
int height, int border,
|
int height, int border,
|
||||||
int imageSize, Buffer data) {
|
int imageSize, Buffer data) {
|
||||||
@@ -75,6 +84,7 @@ public class IosGL implements GL {
|
|||||||
data);
|
data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
|
public void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
|
||||||
int width, int height, int format,
|
int width, int height, int format,
|
||||||
int imageSize, Buffer data) {
|
int imageSize, Buffer data) {
|
||||||
@@ -90,6 +100,7 @@ public class IosGL implements GL {
|
|||||||
data);
|
data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void copyTexImage2D(int target, int level, int internalformat, int x, int y,
|
public void copyTexImage2D(int target, int level, int internalformat, int x, int y,
|
||||||
int width, int height, int border) {
|
int width, int height, int border) {
|
||||||
iOSGL.glCopyTexImage2D(
|
iOSGL.glCopyTexImage2D(
|
||||||
@@ -103,6 +114,7 @@ public class IosGL implements GL {
|
|||||||
border);
|
border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y,
|
public void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y,
|
||||||
int width, int height) {
|
int width, int height) {
|
||||||
iOSGL.glCopyTexSubImage2D(
|
iOSGL.glCopyTexSubImage2D(
|
||||||
@@ -116,86 +128,107 @@ public class IosGL implements GL {
|
|||||||
height);
|
height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void cullFace(int mode) {
|
public void cullFace(int mode) {
|
||||||
iOSGL.glCullFace(mode);
|
iOSGL.glCullFace(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteTextures(int n, IntBuffer textures) {
|
public void deleteTextures(int n, IntBuffer textures) {
|
||||||
iOSGL.glDeleteTextures(n, textures);
|
iOSGL.glDeleteTextures(n, textures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void depthFunc(int func) {
|
public void depthFunc(int func) {
|
||||||
iOSGL.glDepthFunc(func);
|
iOSGL.glDepthFunc(func);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void depthMask(boolean flag) {
|
public void depthMask(boolean flag) {
|
||||||
iOSGL.glDepthMask(flag);
|
iOSGL.glDepthMask(flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void depthRangef(float zNear, float zFar) {
|
public void depthRangef(float zNear, float zFar) {
|
||||||
iOSGL.glDepthRangef(zNear, zFar);
|
iOSGL.glDepthRangef(zNear, zFar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void disable(int cap) {
|
public void disable(int cap) {
|
||||||
iOSGL.glDisable(cap);
|
iOSGL.glDisable(cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void drawArrays(int mode, int first, int count) {
|
public void drawArrays(int mode, int first, int count) {
|
||||||
iOSGL.glDrawArrays(mode, first, count);
|
iOSGL.glDrawArrays(mode, first, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void drawElements(int mode, int count, int type, Buffer indices) {
|
public void drawElements(int mode, int count, int type, Buffer indices) {
|
||||||
iOSGL.glDrawElements(mode, count, type, indices);
|
iOSGL.glDrawElements(mode, count, type, indices);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void enable(int cap) {
|
public void enable(int cap) {
|
||||||
iOSGL.glEnable(cap);
|
iOSGL.glEnable(cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void finish() {
|
public void finish() {
|
||||||
iOSGL.glFinish();
|
iOSGL.glFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void flush() {
|
public void flush() {
|
||||||
iOSGL.glFlush();
|
iOSGL.glFlush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void frontFace(int mode) {
|
public void frontFace(int mode) {
|
||||||
iOSGL.glFrontFace(mode);
|
iOSGL.glFrontFace(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genTextures(int n, IntBuffer textures) {
|
public void genTextures(int n, IntBuffer textures) {
|
||||||
iOSGL.glGenTextures(n, textures);
|
iOSGL.glGenTextures(n, textures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getError() {
|
public int getError() {
|
||||||
return iOSGL.glGetError();
|
return iOSGL.glGetError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getIntegerv(int pname, IntBuffer params) {
|
public void getIntegerv(int pname, IntBuffer params) {
|
||||||
iOSGL.glGetIntegerv(pname, params);
|
iOSGL.glGetIntegerv(pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getString(int name) {
|
public String getString(int name) {
|
||||||
return iOSGL.glGetString(name);
|
return iOSGL.glGetString(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void hint(int target, int mode) {
|
public void hint(int target, int mode) {
|
||||||
iOSGL.glHint(target, mode);
|
iOSGL.glHint(target, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void lineWidth(float width) {
|
public void lineWidth(float width) {
|
||||||
iOSGL.glLineWidth(width);
|
iOSGL.glLineWidth(width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void pixelStorei(int pname, int param) {
|
public void pixelStorei(int pname, int param) {
|
||||||
iOSGL.glPixelStorei(pname, param);
|
iOSGL.glPixelStorei(pname, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void polygonOffset(float factor, float units) {
|
public void polygonOffset(float factor, float units) {
|
||||||
iOSGL.glPolygonOffset(factor, units);
|
iOSGL.glPolygonOffset(factor, units);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readPixels(int x, int y, int width, int height, int format, int type,
|
public void readPixels(int x, int y, int width, int height, int format, int type,
|
||||||
Buffer pixels) {
|
Buffer pixels) {
|
||||||
iOSGL.glReadPixels(
|
iOSGL.glReadPixels(
|
||||||
@@ -208,22 +241,27 @@ public class IosGL implements GL {
|
|||||||
pixels);
|
pixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void scissor(int x, int y, int width, int height) {
|
public void scissor(int x, int y, int width, int height) {
|
||||||
iOSGL.glScissor(x, y, width, height);
|
iOSGL.glScissor(x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilFunc(int func, int ref, int mask) {
|
public void stencilFunc(int func, int ref, int mask) {
|
||||||
iOSGL.glStencilFunc(func, ref, mask);
|
iOSGL.glStencilFunc(func, ref, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilMask(int mask) {
|
public void stencilMask(int mask) {
|
||||||
iOSGL.glStencilMask(mask);
|
iOSGL.glStencilMask(mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilOp(int fail, int zfail, int zpass) {
|
public void stencilOp(int fail, int zfail, int zpass) {
|
||||||
iOSGL.glStencilOp(fail, zfail, zpass);
|
iOSGL.glStencilOp(fail, zfail, zpass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texImage2D(int target, int level, int internalFormat, int width, int height,
|
public void texImage2D(int target, int level, int internalFormat, int width, int height,
|
||||||
int border, int format, int type,
|
int border, int format, int type,
|
||||||
Buffer pixels) {
|
Buffer pixels) {
|
||||||
@@ -239,10 +277,12 @@ public class IosGL implements GL {
|
|||||||
pixels);
|
pixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameterf(int target, int pname, float param) {
|
public void texParameterf(int target, int pname, float param) {
|
||||||
iOSGL.glTexParameterf(target, pname, param);
|
iOSGL.glTexParameterf(target, pname, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texSubImage2D(int target, int level, int xoffset, int yoffset, int width,
|
public void texSubImage2D(int target, int level, int xoffset, int yoffset, int width,
|
||||||
int height, int format, int type,
|
int height, int format, int type,
|
||||||
Buffer pixels) {
|
Buffer pixels) {
|
||||||
@@ -258,152 +298,189 @@ public class IosGL implements GL {
|
|||||||
pixels);
|
pixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void viewport(int x, int y, int width, int height) {
|
public void viewport(int x, int y, int width, int height) {
|
||||||
iOSGL.glViewport(x, y, width, height);
|
iOSGL.glViewport(x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFloatv(int pname, FloatBuffer params) {
|
public void getFloatv(int pname, FloatBuffer params) {
|
||||||
iOSGL.glGetFloatv(pname, params);
|
iOSGL.glGetFloatv(pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getTexParameterfv(int target, int pname, FloatBuffer params) {
|
public void getTexParameterfv(int target, int pname, FloatBuffer params) {
|
||||||
iOSGL.glGetTexParameterfv(target, pname, params);
|
iOSGL.glGetTexParameterfv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameterfv(int target, int pname, FloatBuffer params) {
|
public void texParameterfv(int target, int pname, FloatBuffer params) {
|
||||||
iOSGL.glTexParameterfv(target, pname, params);
|
iOSGL.glTexParameterfv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindBuffer(int target, int buffer) {
|
public void bindBuffer(int target, int buffer) {
|
||||||
iOSGL.glBindBuffer(target, buffer);
|
iOSGL.glBindBuffer(target, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bufferData(int target, int size, Buffer data, int usage) {
|
public void bufferData(int target, int size, Buffer data, int usage) {
|
||||||
iOSGL.glBufferData(target, size, data, usage);
|
iOSGL.glBufferData(target, size, data, usage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bufferSubData(int target, int offset, int size, Buffer data) {
|
public void bufferSubData(int target, int offset, int size, Buffer data) {
|
||||||
iOSGL.glBufferSubData(target, offset, size, data);
|
iOSGL.glBufferSubData(target, offset, size, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteBuffers(int n, IntBuffer buffers) {
|
public void deleteBuffers(int n, IntBuffer buffers) {
|
||||||
iOSGL.glDeleteBuffers(n, buffers);
|
iOSGL.glDeleteBuffers(n, buffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBufferParameteriv(int target, int pname, IntBuffer params) {
|
public void getBufferParameteriv(int target, int pname, IntBuffer params) {
|
||||||
iOSGL.glGetBufferParameteriv(target, pname, params);
|
iOSGL.glGetBufferParameteriv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genBuffers(int n, IntBuffer buffers) {
|
public void genBuffers(int n, IntBuffer buffers) {
|
||||||
iOSGL.glGenBuffers(n, buffers);
|
iOSGL.glGenBuffers(n, buffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getTexParameteriv(int target, int pname, IntBuffer params) {
|
public void getTexParameteriv(int target, int pname, IntBuffer params) {
|
||||||
iOSGL.glGetTexParameteriv(target, pname, params);
|
iOSGL.glGetTexParameteriv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isBuffer(int buffer) {
|
public boolean isBuffer(int buffer) {
|
||||||
return iOSGL.glIsBuffer(buffer);
|
return iOSGL.glIsBuffer(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isEnabled(int cap) {
|
public boolean isEnabled(int cap) {
|
||||||
return iOSGL.glIsEnabled(cap);
|
return iOSGL.glIsEnabled(cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isTexture(int texture) {
|
public boolean isTexture(int texture) {
|
||||||
return iOSGL.glIsTexture(texture);
|
return iOSGL.glIsTexture(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameteri(int target, int pname, int param) {
|
public void texParameteri(int target, int pname, int param) {
|
||||||
iOSGL.glTexParameteri(target, pname, param);
|
iOSGL.glTexParameteri(target, pname, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameteriv(int target, int pname, IntBuffer params) {
|
public void texParameteriv(int target, int pname, IntBuffer params) {
|
||||||
iOSGL.glTexParameteriv(target, pname, params);
|
iOSGL.glTexParameteriv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void drawElements(int mode, int count, int type, int indices) {
|
public void drawElements(int mode, int count, int type, int indices) {
|
||||||
iOSGL.glDrawElements(mode, count, type, indices);
|
iOSGL.glDrawElements(mode, count, type, indices);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void attachShader(int program, int shader) {
|
public void attachShader(int program, int shader) {
|
||||||
iOSGL.glAttachShader(program, shader);
|
iOSGL.glAttachShader(program, shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindAttribLocation(int program, int index, String name) {
|
public void bindAttribLocation(int program, int index, String name) {
|
||||||
iOSGL.glBindAttribLocation(program, index, name);
|
iOSGL.glBindAttribLocation(program, index, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindFramebuffer(int target, int framebuffer) {
|
public void bindFramebuffer(int target, int framebuffer) {
|
||||||
iOSGL.glBindFramebuffer(target, framebuffer);
|
iOSGL.glBindFramebuffer(target, framebuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindRenderbuffer(int target, int renderbuffer) {
|
public void bindRenderbuffer(int target, int renderbuffer) {
|
||||||
iOSGL.glBindRenderbuffer(target, renderbuffer);
|
iOSGL.glBindRenderbuffer(target, renderbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendColor(float red, float green, float blue, float alpha) {
|
public void blendColor(float red, float green, float blue, float alpha) {
|
||||||
iOSGL.glBlendColor(red, green, blue, alpha);
|
iOSGL.glBlendColor(red, green, blue, alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendEquation(int mode) {
|
public void blendEquation(int mode) {
|
||||||
iOSGL.glBlendEquation(mode);
|
iOSGL.glBlendEquation(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendEquationSeparate(int modeRGB, int modeAlpha) {
|
public void blendEquationSeparate(int modeRGB, int modeAlpha) {
|
||||||
iOSGL.glBlendEquationSeparate(modeRGB, modeAlpha);
|
iOSGL.glBlendEquationSeparate(modeRGB, modeAlpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) {
|
public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) {
|
||||||
iOSGL.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
|
iOSGL.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int checkFramebufferStatus(int target) {
|
public int checkFramebufferStatus(int target) {
|
||||||
return iOSGL.glCheckFramebufferStatus(target);
|
return iOSGL.glCheckFramebufferStatus(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void compileShader(int shader) {
|
public void compileShader(int shader) {
|
||||||
iOSGL.glCompileShader(shader);
|
iOSGL.glCompileShader(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int createProgram() {
|
public int createProgram() {
|
||||||
return iOSGL.glCreateProgram();
|
return iOSGL.glCreateProgram();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int createShader(int type) {
|
public int createShader(int type) {
|
||||||
return iOSGL.glCreateShader(type);
|
return iOSGL.glCreateShader(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteFramebuffers(int n, IntBuffer framebuffers) {
|
public void deleteFramebuffers(int n, IntBuffer framebuffers) {
|
||||||
iOSGL.glDeleteFramebuffers(n, framebuffers);
|
iOSGL.glDeleteFramebuffers(n, framebuffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteProgram(int program) {
|
public void deleteProgram(int program) {
|
||||||
iOSGL.glDeleteProgram(program);
|
iOSGL.glDeleteProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteRenderbuffers(int n, IntBuffer renderbuffers) {
|
public void deleteRenderbuffers(int n, IntBuffer renderbuffers) {
|
||||||
iOSGL.glDeleteRenderbuffers(
|
iOSGL.glDeleteRenderbuffers(
|
||||||
n,
|
n,
|
||||||
renderbuffers);
|
renderbuffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteShader(int shader) {
|
public void deleteShader(int shader) {
|
||||||
iOSGL.glDeleteShader(shader);
|
iOSGL.glDeleteShader(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void detachShader(int program, int shader) {
|
public void detachShader(int program, int shader) {
|
||||||
iOSGL.glDetachShader(program, shader);
|
iOSGL.glDetachShader(program, shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void disableVertexAttribArray(int index) {
|
public void disableVertexAttribArray(int index) {
|
||||||
iOSGL.glDisableVertexAttribArray(index);
|
iOSGL.glDisableVertexAttribArray(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void enableVertexAttribArray(int index) {
|
public void enableVertexAttribArray(int index) {
|
||||||
iOSGL.glEnableVertexAttribArray(index);
|
iOSGL.glEnableVertexAttribArray(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget,
|
public void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget,
|
||||||
int renderbuffer) {
|
int renderbuffer) {
|
||||||
iOSGL.glFramebufferRenderbuffer(
|
iOSGL.glFramebufferRenderbuffer(
|
||||||
@@ -413,6 +490,7 @@ public class IosGL implements GL {
|
|||||||
renderbuffer);
|
renderbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void framebufferTexture2D(int target, int attachment, int textarget, int texture,
|
public void framebufferTexture2D(int target, int attachment, int textarget, int texture,
|
||||||
int level) {
|
int level) {
|
||||||
iOSGL.glFramebufferTexture2D(
|
iOSGL.glFramebufferTexture2D(
|
||||||
@@ -423,19 +501,23 @@ public class IosGL implements GL {
|
|||||||
level);
|
level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void generateMipmap(int target) {
|
public void generateMipmap(int target) {
|
||||||
iOSGL.glGenerateMipmap(target);
|
iOSGL.glGenerateMipmap(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genFramebuffers(int n, IntBuffer framebuffers) {
|
public void genFramebuffers(int n, IntBuffer framebuffers) {
|
||||||
iOSGL.glGenFramebuffers(n, framebuffers);
|
iOSGL.glGenFramebuffers(n, framebuffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genRenderbuffers(int n, IntBuffer renderbuffers) {
|
public void genRenderbuffers(int n, IntBuffer renderbuffers) {
|
||||||
iOSGL
|
iOSGL
|
||||||
.glGenRenderbuffers(n, renderbuffers);
|
.glGenRenderbuffers(n, renderbuffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getActiveAttrib(int program, int index, IntBuffer size, Buffer type) {
|
public String getActiveAttrib(int program, int index, IntBuffer size, Buffer type) {
|
||||||
return iOSGL.glGetActiveAttrib(
|
return iOSGL.glGetActiveAttrib(
|
||||||
program,
|
program,
|
||||||
@@ -444,6 +526,7 @@ public class IosGL implements GL {
|
|||||||
type);
|
type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getActiveUniform(int program, int index, IntBuffer size, Buffer type) {
|
public String getActiveUniform(int program, int index, IntBuffer size, Buffer type) {
|
||||||
return iOSGL.glGetActiveUniform(
|
return iOSGL.glGetActiveUniform(
|
||||||
program,
|
program,
|
||||||
@@ -452,6 +535,7 @@ public class IosGL implements GL {
|
|||||||
type);
|
type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getAttachedShaders(int program, int maxcount, Buffer count, IntBuffer shaders) {
|
public void getAttachedShaders(int program, int maxcount, Buffer count, IntBuffer shaders) {
|
||||||
iOSGL.glGetAttachedShaders(
|
iOSGL.glGetAttachedShaders(
|
||||||
program,
|
program,
|
||||||
@@ -460,14 +544,17 @@ public class IosGL implements GL {
|
|||||||
shaders);
|
shaders);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getAttribLocation(int program, String name) {
|
public int getAttribLocation(int program, String name) {
|
||||||
return iOSGL.glGetAttribLocation(program, name);
|
return iOSGL.glGetAttribLocation(program, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBooleanv(int pname, Buffer params) {
|
public void getBooleanv(int pname, Buffer params) {
|
||||||
iOSGL.glGetBooleanv(pname, params);
|
iOSGL.glGetBooleanv(pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFramebufferAttachmentParameteriv(int target, int attachment, int pname,
|
public void getFramebufferAttachmentParameteriv(int target, int attachment, int pname,
|
||||||
IntBuffer params) {
|
IntBuffer params) {
|
||||||
iOSGL.glGetFramebufferAttachmentParameteriv(
|
iOSGL.glGetFramebufferAttachmentParameteriv(
|
||||||
@@ -477,14 +564,17 @@ public class IosGL implements GL {
|
|||||||
params);
|
params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getProgramiv(int program, int pname, IntBuffer params) {
|
public void getProgramiv(int program, int pname, IntBuffer params) {
|
||||||
iOSGL.glGetProgramiv(program, pname, params);
|
iOSGL.glGetProgramiv(program, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getProgramInfoLog(int program) {
|
public String getProgramInfoLog(int program) {
|
||||||
return iOSGL.glGetProgramInfoLog(program);
|
return iOSGL.glGetProgramInfoLog(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getRenderbufferParameteriv(int target, int pname, IntBuffer params) {
|
public void getRenderbufferParameteriv(int target, int pname, IntBuffer params) {
|
||||||
iOSGL.glGetRenderbufferParameteriv(
|
iOSGL.glGetRenderbufferParameteriv(
|
||||||
target,
|
target,
|
||||||
@@ -492,14 +582,17 @@ public class IosGL implements GL {
|
|||||||
params);
|
params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getShaderiv(int shader, int pname, IntBuffer params) {
|
public void getShaderiv(int shader, int pname, IntBuffer params) {
|
||||||
iOSGL.glGetShaderiv(shader, pname, params);
|
iOSGL.glGetShaderiv(shader, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getShaderInfoLog(int shader) {
|
public String getShaderInfoLog(int shader) {
|
||||||
return iOSGL.glGetShaderInfoLog(shader);
|
return iOSGL.glGetShaderInfoLog(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range,
|
public void getShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range,
|
||||||
IntBuffer precision) {
|
IntBuffer precision) {
|
||||||
iOSGL.glGetShaderPrecisionFormat(
|
iOSGL.glGetShaderPrecisionFormat(
|
||||||
@@ -509,30 +602,37 @@ public class IosGL implements GL {
|
|||||||
precision);
|
precision);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getShaderSource(int shader, int bufsize, Buffer length, String source) {
|
public void getShaderSource(int shader, int bufsize, Buffer length, String source) {
|
||||||
throw new UnsupportedOperationException("Not implemented");
|
throw new UnsupportedOperationException("Not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getUniformfv(int program, int location, FloatBuffer params) {
|
public void getUniformfv(int program, int location, FloatBuffer params) {
|
||||||
iOSGL.glGetUniformfv(program, location, params);
|
iOSGL.glGetUniformfv(program, location, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getUniformiv(int program, int location, IntBuffer params) {
|
public void getUniformiv(int program, int location, IntBuffer params) {
|
||||||
iOSGL.glGetUniformiv(program, location, params);
|
iOSGL.glGetUniformiv(program, location, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getUniformLocation(int program, String name) {
|
public int getUniformLocation(int program, String name) {
|
||||||
return iOSGL.glGetUniformLocation(program, name);
|
return iOSGL.glGetUniformLocation(program, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getVertexAttribfv(int index, int pname, FloatBuffer params) {
|
public void getVertexAttribfv(int index, int pname, FloatBuffer params) {
|
||||||
iOSGL.glGetVertexAttribfv(index, pname, params);
|
iOSGL.glGetVertexAttribfv(index, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getVertexAttribiv(int index, int pname, IntBuffer params) {
|
public void getVertexAttribiv(int index, int pname, IntBuffer params) {
|
||||||
iOSGL.glGetVertexAttribiv(index, pname, params);
|
iOSGL.glGetVertexAttribiv(index, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getVertexAttribPointerv(int index, int pname, Buffer pointer) {
|
public void getVertexAttribPointerv(int index, int pname, Buffer pointer) {
|
||||||
iOSGL.glGetVertexAttribPointerv(
|
iOSGL.glGetVertexAttribPointerv(
|
||||||
index,
|
index,
|
||||||
@@ -540,38 +640,47 @@ public class IosGL implements GL {
|
|||||||
pointer);
|
pointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isFramebuffer(int framebuffer) {
|
public boolean isFramebuffer(int framebuffer) {
|
||||||
return iOSGL.glIsFramebuffer(framebuffer);
|
return iOSGL.glIsFramebuffer(framebuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isProgram(int program) {
|
public boolean isProgram(int program) {
|
||||||
return iOSGL.glIsProgram(program);
|
return iOSGL.glIsProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isRenderbuffer(int renderbuffer) {
|
public boolean isRenderbuffer(int renderbuffer) {
|
||||||
return iOSGL.glIsRenderbuffer(renderbuffer);
|
return iOSGL.glIsRenderbuffer(renderbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isShader(int shader) {
|
public boolean isShader(int shader) {
|
||||||
return iOSGL.glIsShader(shader);
|
return iOSGL.glIsShader(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void linkProgram(int program) {
|
public void linkProgram(int program) {
|
||||||
iOSGL.glLinkProgram(program);
|
iOSGL.glLinkProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void releaseShaderCompiler() {
|
public void releaseShaderCompiler() {
|
||||||
iOSGL.glReleaseShaderCompiler();
|
iOSGL.glReleaseShaderCompiler();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void renderbufferStorage(int target, int internalformat, int width, int height) {
|
public void renderbufferStorage(int target, int internalformat, int width, int height) {
|
||||||
iOSGL.glRenderbufferStorage(target, internalformat, width, height);
|
iOSGL.glRenderbufferStorage(target, internalformat, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void sampleCoverage(float value, boolean invert) {
|
public void sampleCoverage(float value, boolean invert) {
|
||||||
iOSGL.glSampleCoverage(value, invert);
|
iOSGL.glSampleCoverage(value, invert);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void shaderBinary(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length) {
|
public void shaderBinary(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length) {
|
||||||
iOSGL.glShaderBinary(
|
iOSGL.glShaderBinary(
|
||||||
n,
|
n,
|
||||||
@@ -581,86 +690,107 @@ public class IosGL implements GL {
|
|||||||
length);
|
length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void shaderSource(int shader, String string) {
|
public void shaderSource(int shader, String string) {
|
||||||
iOSGL.glShaderSource(shader, string);
|
iOSGL.glShaderSource(shader, string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilFuncSeparate(int face, int func, int ref, int mask) {
|
public void stencilFuncSeparate(int face, int func, int ref, int mask) {
|
||||||
iOSGL.glStencilFuncSeparate(face, func, ref, mask);
|
iOSGL.glStencilFuncSeparate(face, func, ref, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilMaskSeparate(int face, int mask) {
|
public void stencilMaskSeparate(int face, int mask) {
|
||||||
iOSGL.glStencilMaskSeparate(face, mask);
|
iOSGL.glStencilMaskSeparate(face, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilOpSeparate(int face, int fail, int zfail, int zpass) {
|
public void stencilOpSeparate(int face, int fail, int zfail, int zpass) {
|
||||||
iOSGL.glStencilOpSeparate(face, fail, zfail, zpass);
|
iOSGL.glStencilOpSeparate(face, fail, zfail, zpass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1f(int location, float x) {
|
public void uniform1f(int location, float x) {
|
||||||
iOSGL.glUniform1f(location, x);
|
iOSGL.glUniform1f(location, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1fv(int location, int count, FloatBuffer v) {
|
public void uniform1fv(int location, int count, FloatBuffer v) {
|
||||||
iOSGL.glUniform1fv(location, count, v);
|
iOSGL.glUniform1fv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1i(int location, int x) {
|
public void uniform1i(int location, int x) {
|
||||||
iOSGL.glUniform1i(location, x);
|
iOSGL.glUniform1i(location, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1iv(int location, int count, IntBuffer v) {
|
public void uniform1iv(int location, int count, IntBuffer v) {
|
||||||
iOSGL.glUniform1iv(location, count, v);
|
iOSGL.glUniform1iv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2f(int location, float x, float y) {
|
public void uniform2f(int location, float x, float y) {
|
||||||
iOSGL.glUniform2f(location, x, y);
|
iOSGL.glUniform2f(location, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2fv(int location, int count, FloatBuffer v) {
|
public void uniform2fv(int location, int count, FloatBuffer v) {
|
||||||
iOSGL.glUniform2fv(location, count, v);
|
iOSGL.glUniform2fv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2i(int location, int x, int y) {
|
public void uniform2i(int location, int x, int y) {
|
||||||
iOSGL.glUniform2i(location, x, y);
|
iOSGL.glUniform2i(location, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2iv(int location, int count, IntBuffer v) {
|
public void uniform2iv(int location, int count, IntBuffer v) {
|
||||||
iOSGL.glUniform2iv(location, count, v);
|
iOSGL.glUniform2iv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3f(int location, float x, float y, float z) {
|
public void uniform3f(int location, float x, float y, float z) {
|
||||||
iOSGL.glUniform3f(location, x, y, z);
|
iOSGL.glUniform3f(location, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3fv(int location, int count, FloatBuffer v) {
|
public void uniform3fv(int location, int count, FloatBuffer v) {
|
||||||
iOSGL.glUniform3fv(location, count, v);
|
iOSGL.glUniform3fv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3i(int location, int x, int y, int z) {
|
public void uniform3i(int location, int x, int y, int z) {
|
||||||
iOSGL.glUniform3i(location, x, y, z);
|
iOSGL.glUniform3i(location, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3iv(int location, int count, IntBuffer v) {
|
public void uniform3iv(int location, int count, IntBuffer v) {
|
||||||
iOSGL.glUniform3iv(location, count, v);
|
iOSGL.glUniform3iv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4f(int location, float x, float y, float z, float w) {
|
public void uniform4f(int location, float x, float y, float z, float w) {
|
||||||
iOSGL.glUniform4f(location, x, y, z, w);
|
iOSGL.glUniform4f(location, x, y, z, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4fv(int location, int count, FloatBuffer v) {
|
public void uniform4fv(int location, int count, FloatBuffer v) {
|
||||||
iOSGL.glUniform4fv(location, count, v);
|
iOSGL.glUniform4fv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4i(int location, int x, int y, int z, int w) {
|
public void uniform4i(int location, int x, int y, int z, int w) {
|
||||||
iOSGL.glUniform4i(location, x, y, z, w);
|
iOSGL.glUniform4i(location, x, y, z, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4iv(int location, int count, IntBuffer v) {
|
public void uniform4iv(int location, int count, IntBuffer v) {
|
||||||
iOSGL.glUniform4iv(location, count, v);
|
iOSGL.glUniform4iv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value) {
|
public void uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value) {
|
||||||
iOSGL.glUniformMatrix2fv(
|
iOSGL.glUniformMatrix2fv(
|
||||||
location,
|
location,
|
||||||
@@ -669,6 +799,7 @@ public class IosGL implements GL {
|
|||||||
value);
|
value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value) {
|
public void uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value) {
|
||||||
iOSGL.glUniformMatrix3fv(
|
iOSGL.glUniformMatrix3fv(
|
||||||
location,
|
location,
|
||||||
@@ -677,6 +808,7 @@ public class IosGL implements GL {
|
|||||||
value);
|
value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value) {
|
public void uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value) {
|
||||||
iOSGL.glUniformMatrix4fv(
|
iOSGL.glUniformMatrix4fv(
|
||||||
location,
|
location,
|
||||||
@@ -685,46 +817,57 @@ public class IosGL implements GL {
|
|||||||
value);
|
value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void useProgram(int program) {
|
public void useProgram(int program) {
|
||||||
iOSGL.glUseProgram(program);
|
iOSGL.glUseProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void validateProgram(int program) {
|
public void validateProgram(int program) {
|
||||||
iOSGL.glValidateProgram(program);
|
iOSGL.glValidateProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib1f(int indx, float x) {
|
public void vertexAttrib1f(int indx, float x) {
|
||||||
iOSGL.glVertexAttrib1f(indx, x);
|
iOSGL.glVertexAttrib1f(indx, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib1fv(int indx, FloatBuffer values) {
|
public void vertexAttrib1fv(int indx, FloatBuffer values) {
|
||||||
iOSGL.glVertexAttrib1fv(indx, values);
|
iOSGL.glVertexAttrib1fv(indx, values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib2f(int indx, float x, float y) {
|
public void vertexAttrib2f(int indx, float x, float y) {
|
||||||
iOSGL.glVertexAttrib2f(indx, x, y);
|
iOSGL.glVertexAttrib2f(indx, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib2fv(int indx, FloatBuffer values) {
|
public void vertexAttrib2fv(int indx, FloatBuffer values) {
|
||||||
iOSGL.glVertexAttrib2fv(indx, values);
|
iOSGL.glVertexAttrib2fv(indx, values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib3f(int indx, float x, float y, float z) {
|
public void vertexAttrib3f(int indx, float x, float y, float z) {
|
||||||
iOSGL.glVertexAttrib3f(indx, x, y, z);
|
iOSGL.glVertexAttrib3f(indx, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib3fv(int indx, FloatBuffer values) {
|
public void vertexAttrib3fv(int indx, FloatBuffer values) {
|
||||||
iOSGL.glVertexAttrib3fv(indx, values);
|
iOSGL.glVertexAttrib3fv(indx, values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib4f(int indx, float x, float y, float z, float w) {
|
public void vertexAttrib4f(int indx, float x, float y, float z, float w) {
|
||||||
iOSGL.glVertexAttrib4f(indx, x, y, z, w);
|
iOSGL.glVertexAttrib4f(indx, x, y, z, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib4fv(int indx, FloatBuffer values) {
|
public void vertexAttrib4fv(int indx, FloatBuffer values) {
|
||||||
iOSGL.glVertexAttrib4fv(indx, values);
|
iOSGL.glVertexAttrib4fv(indx, values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride,
|
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride,
|
||||||
Buffer ptr) {
|
Buffer ptr) {
|
||||||
iOSGL.glVertexAttribPointer(
|
iOSGL.glVertexAttribPointer(
|
||||||
@@ -736,6 +879,7 @@ public class IosGL implements GL {
|
|||||||
ptr);
|
ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride,
|
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride,
|
||||||
int ptr) {
|
int ptr) {
|
||||||
iOSGL.glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
|
iOSGL.glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ public class SVGRenderer extends SVGParser implements SVGContext, GHRenderable {
|
|||||||
initObject(init(utf8String));
|
initObject(init(utf8String));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Method(selector = "initWithString:")
|
@Method(selector = "initWithString:")
|
||||||
protected native
|
protected native
|
||||||
@Pointer
|
@Pointer
|
||||||
@@ -54,15 +55,19 @@ public class SVGRenderer extends SVGParser implements SVGContext, GHRenderable {
|
|||||||
@ByVal
|
@ByVal
|
||||||
CGRect getViewRect();
|
CGRect getViewRect();
|
||||||
|
|
||||||
|
@Override
|
||||||
@Method(selector = "colorForSVGColorString:")
|
@Method(selector = "colorForSVGColorString:")
|
||||||
public native UIColor colorForSVGColorString(String svgColorString);
|
public native UIColor colorForSVGColorString(String svgColorString);
|
||||||
|
|
||||||
|
@Override
|
||||||
@Method(selector = "objectAtURL:")
|
@Method(selector = "objectAtURL:")
|
||||||
public native NSObject objectAtURL(String aLocation);
|
public native NSObject objectAtURL(String aLocation);
|
||||||
|
|
||||||
|
@Override
|
||||||
@Property(selector = "transform")
|
@Property(selector = "transform")
|
||||||
public native CGAffineTransform getTransform();
|
public native CGAffineTransform getTransform();
|
||||||
|
|
||||||
|
@Override
|
||||||
@Property(selector = "hidden")
|
@Property(selector = "hidden")
|
||||||
public native boolean isHidden();
|
public native boolean isHidden();
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ public class OSMIndoorLayer extends JeoVectorLayer {
|
|||||||
mTextLayer.prepare();
|
mTextLayer.prepare();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void addLine(Task t, Feature f, Rule rule, Geometry g) {
|
protected void addLine(Task t, Feature f, Rule rule, Geometry g) {
|
||||||
|
|
||||||
if (((LineString) g).isClosed()) {
|
if (((LineString) g).isClosed()) {
|
||||||
@@ -86,6 +87,7 @@ public class OSMIndoorLayer extends JeoVectorLayer {
|
|||||||
addLine(t, g, ll);
|
addLine(t, g, ll);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void addPolygon(Task t, Feature f, Rule rule, Geometry g) {
|
protected void addPolygon(Task t, Feature f, Rule rule, Geometry g) {
|
||||||
int level = getLevel(f);
|
int level = getLevel(f);
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ public class MapzenGeojsonTileSource extends GeojsonTileSource {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public MapzenGeojsonTileSource build() {
|
public MapzenGeojsonTileSource build() {
|
||||||
return new MapzenGeojsonTileSource(this);
|
return new MapzenGeojsonTileSource(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public class NextzenGeojsonTileSource extends GeojsonTileSource {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public NextzenGeojsonTileSource build() {
|
public NextzenGeojsonTileSource build() {
|
||||||
return new NextzenGeojsonTileSource(this);
|
return new NextzenGeojsonTileSource(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ public class MapilionMvtTileSource extends UrlTileSource {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public MapilionMvtTileSource build() {
|
public MapilionMvtTileSource build() {
|
||||||
return new MapilionMvtTileSource(this);
|
return new MapilionMvtTileSource(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public class MapzenMvtTileSource extends UrlTileSource {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public MapzenMvtTileSource build() {
|
public MapzenMvtTileSource build() {
|
||||||
return new MapzenMvtTileSource(this);
|
return new MapzenMvtTileSource(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ public class NextzenMvtTileSource extends UrlTileSource {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public NextzenMvtTileSource build() {
|
public NextzenMvtTileSource build() {
|
||||||
return new NextzenMvtTileSource(this);
|
return new NextzenMvtTileSource(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public class OpenMapTilesMvtTileSource extends UrlTileSource {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public OpenMapTilesMvtTileSource build() {
|
public OpenMapTilesMvtTileSource build() {
|
||||||
return new OpenMapTilesMvtTileSource(this);
|
return new OpenMapTilesMvtTileSource(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ class Menu extends JToolBar {
|
|||||||
|
|
||||||
JButton openButton = new JButton(ICON_OPEN);
|
JButton openButton = new JButton(ICON_OPEN);
|
||||||
openButton.addActionListener(new ActionListener() {
|
openButton.addActionListener(new ActionListener() {
|
||||||
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
try {
|
try {
|
||||||
themeLoader.selectThemeFile();
|
themeLoader.selectThemeFile();
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ public class MapsforgeMapPanel extends JPanel {
|
|||||||
mapView.setBounds(10, 20, getWidth() - 20, getHeight() - 30);
|
mapView.setBounds(10, 20, getWidth() - 20, getHeight() - 30);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void componentMoved(ComponentEvent e) {
|
public void componentMoved(ComponentEvent e) {
|
||||||
super.componentMoved(e);
|
super.componentMoved(e);
|
||||||
mapView.setBounds(10, 20, getWidth() - 20, getHeight() - 30);
|
mapView.setBounds(10, 20, getWidth() - 20, getHeight() - 30);
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ public class MapAdapter extends Map implements Map.UpdateListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean handleGesture(Gesture g, MotionEvent e) {
|
public boolean handleGesture(Gesture g, MotionEvent e) {
|
||||||
this.updateMap(true);
|
this.updateMap(true);
|
||||||
return super.handleGesture(g, e);
|
return super.handleGesture(g, e);
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ public class SearchBox {
|
|||||||
return this.lon;
|
return this.lon;
|
||||||
}-*/;
|
}-*/;
|
||||||
|
|
||||||
|
@Override
|
||||||
public final native String getIcon() /*-{
|
public final native String getIcon() /*-{
|
||||||
return this.icon;
|
return this.icon;
|
||||||
}-*/;
|
}-*/;
|
||||||
@@ -242,6 +243,7 @@ public class SearchBox {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
|
selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
|
||||||
|
@Override
|
||||||
public void onSelectionChange(SelectionChangeEvent event) {
|
public void onSelectionChange(SelectionChangeEvent event) {
|
||||||
final PoiData d = selectionModel.getSelectedObject();
|
final PoiData d = selectionModel.getSelectedObject();
|
||||||
|
|
||||||
@@ -307,6 +309,7 @@ public class SearchBox {
|
|||||||
/**
|
/**
|
||||||
* Fired when the user clicks on the sendButton.
|
* Fired when the user clicks on the sendButton.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void onClick(ClickEvent event) {
|
public void onClick(ClickEvent event) {
|
||||||
sendRequest();
|
sendRequest();
|
||||||
}
|
}
|
||||||
@@ -314,6 +317,7 @@ public class SearchBox {
|
|||||||
/**
|
/**
|
||||||
* Fired when the user types in the nameField.
|
* Fired when the user types in the nameField.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void onKeyUp(KeyUpEvent event) {
|
public void onKeyUp(KeyUpEvent event) {
|
||||||
if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
|
if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
|
||||||
sendRequest();
|
sendRequest();
|
||||||
@@ -335,11 +339,13 @@ public class SearchBox {
|
|||||||
JsonpRequestBuilder builder = new JsonpRequestBuilder();
|
JsonpRequestBuilder builder = new JsonpRequestBuilder();
|
||||||
builder.setCallbackParam("json_callback");
|
builder.setCallbackParam("json_callback");
|
||||||
builder.requestObject(url, new AsyncCallback<JsArray<NominatimData>>() {
|
builder.requestObject(url, new AsyncCallback<JsArray<NominatimData>>() {
|
||||||
|
@Override
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
log.debug("request failed");
|
log.debug("request failed");
|
||||||
searchButton.setEnabled(true);
|
searchButton.setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onSuccess(JsArray<NominatimData> data) {
|
public void onSuccess(JsArray<NominatimData> data) {
|
||||||
List<PoiData> items = new ArrayList<PoiData>();
|
List<PoiData> items = new ArrayList<PoiData>();
|
||||||
for (int i = 0, n = data.length(); i < n; i++) {
|
for (int i = 0, n = data.length(); i < n; i++) {
|
||||||
|
|||||||
@@ -73,38 +73,47 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void activeTexture(int texture) {
|
public void activeTexture(int texture) {
|
||||||
glActiveTexture(texture);
|
glActiveTexture(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindTexture(int target, int texture) {
|
public void bindTexture(int target, int texture) {
|
||||||
glBindTexture(target, texture);
|
glBindTexture(target, texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendFunc(int sfactor, int dfactor) {
|
public void blendFunc(int sfactor, int dfactor) {
|
||||||
glBlendFunc(sfactor, dfactor);
|
glBlendFunc(sfactor, dfactor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clear(int mask) {
|
public void clear(int mask) {
|
||||||
glClear(mask);
|
glClear(mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clearColor(float red, float green, float blue, float alpha) {
|
public void clearColor(float red, float green, float blue, float alpha) {
|
||||||
glClearColor(red, green, blue, alpha);
|
glClearColor(red, green, blue, alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clearDepthf(float depth) {
|
public void clearDepthf(float depth) {
|
||||||
glClearDepthf(depth);
|
glClearDepthf(depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void clearStencil(int s) {
|
public void clearStencil(int s) {
|
||||||
glClearStencil(s);
|
glClearStencil(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void colorMask(boolean red, boolean green, boolean blue, boolean alpha) {
|
public void colorMask(boolean red, boolean green, boolean blue, boolean alpha) {
|
||||||
glColorMask(red, green, blue, alpha);
|
glColorMask(red, green, blue, alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void compressedTexImage2D(int target, int level, int internalformat, int width,
|
public void compressedTexImage2D(int target, int level, int internalformat, int width,
|
||||||
int height, int border,
|
int height, int border,
|
||||||
int imageSize, Buffer data) {
|
int imageSize, Buffer data) {
|
||||||
@@ -119,6 +128,7 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
data);
|
data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
|
public void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
|
||||||
int width, int height, int format,
|
int width, int height, int format,
|
||||||
int imageSize, Buffer data) {
|
int imageSize, Buffer data) {
|
||||||
@@ -133,117 +143,145 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
data);
|
data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void copyTexImage2D(int target, int level, int internalformat, int x, int y,
|
public void copyTexImage2D(int target, int level, int internalformat, int x, int y,
|
||||||
int width, int height, int border) {
|
int width, int height, int border) {
|
||||||
glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
|
glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y,
|
public void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y,
|
||||||
int width, int height) {
|
int width, int height) {
|
||||||
glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
|
glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void cullFace(int mode) {
|
public void cullFace(int mode) {
|
||||||
glCullFace(mode);
|
glCullFace(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteTextures(int n, IntBuffer textures) {
|
public void deleteTextures(int n, IntBuffer textures) {
|
||||||
glDeleteTextures(n, textures);
|
glDeleteTextures(n, textures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void depthFunc(int func) {
|
public void depthFunc(int func) {
|
||||||
glDepthFunc(func);
|
glDepthFunc(func);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void depthMask(boolean flag) {
|
public void depthMask(boolean flag) {
|
||||||
glDepthMask(flag);
|
glDepthMask(flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void depthRangef(float zNear, float zFar) {
|
public void depthRangef(float zNear, float zFar) {
|
||||||
glDepthRangef(zNear, zFar);
|
glDepthRangef(zNear, zFar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void disable(int cap) {
|
public void disable(int cap) {
|
||||||
glDisable(cap);
|
glDisable(cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void drawArrays(int mode, int first, int count) {
|
public void drawArrays(int mode, int first, int count) {
|
||||||
glDrawArrays(mode, first, count);
|
glDrawArrays(mode, first, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void drawElements(int mode, int count, int type, Buffer indices) {
|
public void drawElements(int mode, int count, int type, Buffer indices) {
|
||||||
glDrawElements(mode, count, type, indices);
|
glDrawElements(mode, count, type, indices);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void enable(int cap) {
|
public void enable(int cap) {
|
||||||
glEnable(cap);
|
glEnable(cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void finish() {
|
public void finish() {
|
||||||
glFinish();
|
glFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void flush() {
|
public void flush() {
|
||||||
glFlush();
|
glFlush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void frontFace(int mode) {
|
public void frontFace(int mode) {
|
||||||
glFrontFace(mode);
|
glFrontFace(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genTextures(int n, IntBuffer textures) {
|
public void genTextures(int n, IntBuffer textures) {
|
||||||
glGenTextures(n, textures);
|
glGenTextures(n, textures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getError() {
|
public int getError() {
|
||||||
return glGetError();
|
return glGetError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getIntegerv(int pname, IntBuffer params) {
|
public void getIntegerv(int pname, IntBuffer params) {
|
||||||
glGetIntegerv(pname, params);
|
glGetIntegerv(pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getString(int name) {
|
public String getString(int name) {
|
||||||
return glGetString(name);
|
return glGetString(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void hint(int target, int mode) {
|
public void hint(int target, int mode) {
|
||||||
glHint(target, mode);
|
glHint(target, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void lineWidth(float width) {
|
public void lineWidth(float width) {
|
||||||
glLineWidth(width);
|
glLineWidth(width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void pixelStorei(int pname, int param) {
|
public void pixelStorei(int pname, int param) {
|
||||||
glPixelStorei(pname, param);
|
glPixelStorei(pname, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void polygonOffset(float factor, float units) {
|
public void polygonOffset(float factor, float units) {
|
||||||
glPolygonOffset(factor, units);
|
glPolygonOffset(factor, units);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readPixels(int x, int y, int width, int height, int format, int type,
|
public void readPixels(int x, int y, int width, int height, int format, int type,
|
||||||
Buffer pixels) {
|
Buffer pixels) {
|
||||||
glReadPixels(x, y, width, height, format, type, pixels);
|
glReadPixels(x, y, width, height, format, type, pixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void scissor(int x, int y, int width, int height) {
|
public void scissor(int x, int y, int width, int height) {
|
||||||
glScissor(x, y, width, height);
|
glScissor(x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilFunc(int func, int ref, int mask) {
|
public void stencilFunc(int func, int ref, int mask) {
|
||||||
glStencilFunc(func, ref, mask);
|
glStencilFunc(func, ref, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilMask(int mask) {
|
public void stencilMask(int mask) {
|
||||||
glStencilMask(mask);
|
glStencilMask(mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilOp(int fail, int zfail, int zpass) {
|
public void stencilOp(int fail, int zfail, int zpass) {
|
||||||
glStencilOp(fail, zfail, zpass);
|
glStencilOp(fail, zfail, zpass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texImage2D(int target, int level, int internalFormat, int width, int height,
|
public void texImage2D(int target, int level, int internalFormat, int width, int height,
|
||||||
int border, int format, int type,
|
int border, int format, int type,
|
||||||
Buffer pixels) {
|
Buffer pixels) {
|
||||||
@@ -258,10 +296,12 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
pixels);
|
pixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameterf(int target, int pname, float param) {
|
public void texParameterf(int target, int pname, float param) {
|
||||||
glTexParameterf(target, pname, param);
|
glTexParameterf(target, pname, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texSubImage2D(int target, int level, int xoffset, int yoffset, int width,
|
public void texSubImage2D(int target, int level, int xoffset, int yoffset, int width,
|
||||||
int height, int format, int type,
|
int height, int format, int type,
|
||||||
Buffer pixels) {
|
Buffer pixels) {
|
||||||
@@ -276,172 +316,214 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
pixels);
|
pixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void viewport(int x, int y, int width, int height) {
|
public void viewport(int x, int y, int width, int height) {
|
||||||
glViewport(x, y, width, height);
|
glViewport(x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFloatv(int pname, FloatBuffer params) {
|
public void getFloatv(int pname, FloatBuffer params) {
|
||||||
glGetFloatv(pname, params);
|
glGetFloatv(pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getTexParameterfv(int target, int pname, FloatBuffer params) {
|
public void getTexParameterfv(int target, int pname, FloatBuffer params) {
|
||||||
glGetTexParameterfv(target, pname, params);
|
glGetTexParameterfv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameterfv(int target, int pname, FloatBuffer params) {
|
public void texParameterfv(int target, int pname, FloatBuffer params) {
|
||||||
glTexParameterfv(target, pname, params);
|
glTexParameterfv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindBuffer(int target, int buffer) {
|
public void bindBuffer(int target, int buffer) {
|
||||||
glBindBuffer(target, buffer);
|
glBindBuffer(target, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bufferData(int target, int size, Buffer data, int usage) {
|
public void bufferData(int target, int size, Buffer data, int usage) {
|
||||||
glBufferData(target, size, data, usage);
|
glBufferData(target, size, data, usage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bufferSubData(int target, int offset, int size, Buffer data) {
|
public void bufferSubData(int target, int offset, int size, Buffer data) {
|
||||||
glBufferSubData(target, offset, size, data);
|
glBufferSubData(target, offset, size, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteBuffers(int n, IntBuffer buffers) {
|
public void deleteBuffers(int n, IntBuffer buffers) {
|
||||||
glDeleteBuffers(n, buffers);
|
glDeleteBuffers(n, buffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBufferParameteriv(int target, int pname, IntBuffer params) {
|
public void getBufferParameteriv(int target, int pname, IntBuffer params) {
|
||||||
glGetBufferParameteriv(target, pname, params);
|
glGetBufferParameteriv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genBuffers(int n, IntBuffer buffers) {
|
public void genBuffers(int n, IntBuffer buffers) {
|
||||||
glGenBuffers(n, buffers);
|
glGenBuffers(n, buffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getTexParameteriv(int target, int pname, IntBuffer params) {
|
public void getTexParameteriv(int target, int pname, IntBuffer params) {
|
||||||
glGetTexParameteriv(target, pname, params);
|
glGetTexParameteriv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isBuffer(int buffer) {
|
public boolean isBuffer(int buffer) {
|
||||||
return glIsBuffer(buffer);
|
return glIsBuffer(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isEnabled(int cap) {
|
public boolean isEnabled(int cap) {
|
||||||
return glIsEnabled(cap);
|
return glIsEnabled(cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isTexture(int texture) {
|
public boolean isTexture(int texture) {
|
||||||
return glIsTexture(texture);
|
return glIsTexture(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameteri(int target, int pname, int param) {
|
public void texParameteri(int target, int pname, int param) {
|
||||||
glTexParameteri(target, pname, param);
|
glTexParameteri(target, pname, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void texParameteriv(int target, int pname, IntBuffer params) {
|
public void texParameteriv(int target, int pname, IntBuffer params) {
|
||||||
glTexParameteriv(target, pname, params);
|
glTexParameteriv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void drawElements(int mode, int count, int type, int indices) {
|
public void drawElements(int mode, int count, int type, int indices) {
|
||||||
glDrawElements(mode, count, type, indices);
|
glDrawElements(mode, count, type, indices);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void attachShader(int program, int shader) {
|
public void attachShader(int program, int shader) {
|
||||||
glAttachShader(program, shader);
|
glAttachShader(program, shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindAttribLocation(int program, int index, String name) {
|
public void bindAttribLocation(int program, int index, String name) {
|
||||||
glBindAttribLocation(program, index, name);
|
glBindAttribLocation(program, index, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindFramebuffer(int target, int framebuffer) {
|
public void bindFramebuffer(int target, int framebuffer) {
|
||||||
glBindFramebuffer(target, framebuffer);
|
glBindFramebuffer(target, framebuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void bindRenderbuffer(int target, int renderbuffer) {
|
public void bindRenderbuffer(int target, int renderbuffer) {
|
||||||
glBindRenderbuffer(target, renderbuffer);
|
glBindRenderbuffer(target, renderbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendColor(float red, float green, float blue, float alpha) {
|
public void blendColor(float red, float green, float blue, float alpha) {
|
||||||
glBlendColor(red, green, blue, alpha);
|
glBlendColor(red, green, blue, alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendEquation(int mode) {
|
public void blendEquation(int mode) {
|
||||||
glBlendEquation(mode);
|
glBlendEquation(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendEquationSeparate(int modeRGB, int modeAlpha) {
|
public void blendEquationSeparate(int modeRGB, int modeAlpha) {
|
||||||
glBlendEquationSeparate(modeRGB, modeAlpha);
|
glBlendEquationSeparate(modeRGB, modeAlpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) {
|
public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) {
|
||||||
glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
|
glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int checkFramebufferStatus(int target) {
|
public int checkFramebufferStatus(int target) {
|
||||||
return glCheckFramebufferStatus(target);
|
return glCheckFramebufferStatus(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void compileShader(int shader) {
|
public void compileShader(int shader) {
|
||||||
glCompileShader(shader);
|
glCompileShader(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int createProgram() {
|
public int createProgram() {
|
||||||
return glCreateProgram();
|
return glCreateProgram();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int createShader(int type) {
|
public int createShader(int type) {
|
||||||
return glCreateShader(type);
|
return glCreateShader(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteFramebuffers(int n, IntBuffer framebuffers) {
|
public void deleteFramebuffers(int n, IntBuffer framebuffers) {
|
||||||
glDeleteFramebuffers(n, framebuffers);
|
glDeleteFramebuffers(n, framebuffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteProgram(int program) {
|
public void deleteProgram(int program) {
|
||||||
glDeleteProgram(program);
|
glDeleteProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteRenderbuffers(int n, IntBuffer renderbuffers) {
|
public void deleteRenderbuffers(int n, IntBuffer renderbuffers) {
|
||||||
glDeleteRenderbuffers(n, renderbuffers);
|
glDeleteRenderbuffers(n, renderbuffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void deleteShader(int shader) {
|
public void deleteShader(int shader) {
|
||||||
glDeleteShader(shader);
|
glDeleteShader(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void detachShader(int program, int shader) {
|
public void detachShader(int program, int shader) {
|
||||||
glDetachShader(program, shader);
|
glDetachShader(program, shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void disableVertexAttribArray(int index) {
|
public void disableVertexAttribArray(int index) {
|
||||||
glDisableVertexAttribArray(index);
|
glDisableVertexAttribArray(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void enableVertexAttribArray(int index) {
|
public void enableVertexAttribArray(int index) {
|
||||||
glEnableVertexAttribArray(index);
|
glEnableVertexAttribArray(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget,
|
public void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget,
|
||||||
int renderbuffer) {
|
int renderbuffer) {
|
||||||
glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
|
glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void framebufferTexture2D(int target, int attachment, int textarget, int texture,
|
public void framebufferTexture2D(int target, int attachment, int textarget, int texture,
|
||||||
int level) {
|
int level) {
|
||||||
glFramebufferTexture2D(target, attachment, textarget, texture, level);
|
glFramebufferTexture2D(target, attachment, textarget, texture, level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void generateMipmap(int target) {
|
public void generateMipmap(int target) {
|
||||||
glGenerateMipmap(target);
|
glGenerateMipmap(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genFramebuffers(int n, IntBuffer framebuffers) {
|
public void genFramebuffers(int n, IntBuffer framebuffers) {
|
||||||
glGenFramebuffers(n, framebuffers);
|
glGenFramebuffers(n, framebuffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void genRenderbuffers(int n, IntBuffer renderbuffers) {
|
public void genRenderbuffers(int n, IntBuffer renderbuffers) {
|
||||||
glGenRenderbuffers(n, renderbuffers);
|
glGenRenderbuffers(n, renderbuffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getActiveAttrib(int program, int index, IntBuffer size, Buffer type) {
|
public String getActiveAttrib(int program, int index, IntBuffer size, Buffer type) {
|
||||||
return glGetActiveAttrib(program,
|
return glGetActiveAttrib(program,
|
||||||
index,
|
index,
|
||||||
@@ -449,6 +531,7 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
type);
|
type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getActiveUniform(int program, int index, IntBuffer size, Buffer type) {
|
public String getActiveUniform(int program, int index, IntBuffer size, Buffer type) {
|
||||||
return glGetActiveUniform(program,
|
return glGetActiveUniform(program,
|
||||||
index,
|
index,
|
||||||
@@ -456,6 +539,7 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
type);
|
type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getAttachedShaders(int program, int maxcount, Buffer count, IntBuffer shaders) {
|
public void getAttachedShaders(int program, int maxcount, Buffer count, IntBuffer shaders) {
|
||||||
glGetAttachedShaders(program,
|
glGetAttachedShaders(program,
|
||||||
maxcount,
|
maxcount,
|
||||||
@@ -463,14 +547,17 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
shaders);
|
shaders);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getAttribLocation(int program, String name) {
|
public int getAttribLocation(int program, String name) {
|
||||||
return glGetAttribLocation(program, name);
|
return glGetAttribLocation(program, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBooleanv(int pname, Buffer params) {
|
public void getBooleanv(int pname, Buffer params) {
|
||||||
glGetBooleanv(pname, params);
|
glGetBooleanv(pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFramebufferAttachmentParameteriv(int target, int attachment, int pname,
|
public void getFramebufferAttachmentParameteriv(int target, int attachment, int pname,
|
||||||
IntBuffer params) {
|
IntBuffer params) {
|
||||||
glGetFramebufferAttachmentParameteriv(target,
|
glGetFramebufferAttachmentParameteriv(target,
|
||||||
@@ -479,26 +566,32 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
params);
|
params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getProgramiv(int program, int pname, IntBuffer params) {
|
public void getProgramiv(int program, int pname, IntBuffer params) {
|
||||||
glGetProgramiv(program, pname, params);
|
glGetProgramiv(program, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getProgramInfoLog(int program) {
|
public String getProgramInfoLog(int program) {
|
||||||
return glGetProgramInfoLog(program);
|
return glGetProgramInfoLog(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getRenderbufferParameteriv(int target, int pname, IntBuffer params) {
|
public void getRenderbufferParameteriv(int target, int pname, IntBuffer params) {
|
||||||
glGetRenderbufferParameteriv(target, pname, params);
|
glGetRenderbufferParameteriv(target, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getShaderiv(int shader, int pname, IntBuffer params) {
|
public void getShaderiv(int shader, int pname, IntBuffer params) {
|
||||||
glGetShaderiv(shader, pname, params);
|
glGetShaderiv(shader, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getShaderInfoLog(int shader) {
|
public String getShaderInfoLog(int shader) {
|
||||||
return glGetShaderInfoLog(shader);
|
return glGetShaderInfoLog(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range,
|
public void getShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range,
|
||||||
IntBuffer precision) {
|
IntBuffer precision) {
|
||||||
glGetShaderPrecisionFormat(shadertype,
|
glGetShaderPrecisionFormat(shadertype,
|
||||||
@@ -507,66 +600,82 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
precision);
|
precision);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getShaderSource(int shader, int bufsize, Buffer length, String source) {
|
public void getShaderSource(int shader, int bufsize, Buffer length, String source) {
|
||||||
throw new UnsupportedOperationException("Not implemented");
|
throw new UnsupportedOperationException("Not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getUniformfv(int program, int location, FloatBuffer params) {
|
public void getUniformfv(int program, int location, FloatBuffer params) {
|
||||||
glGetUniformfv(program, location, params);
|
glGetUniformfv(program, location, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getUniformiv(int program, int location, IntBuffer params) {
|
public void getUniformiv(int program, int location, IntBuffer params) {
|
||||||
glGetUniformiv(program, location, params);
|
glGetUniformiv(program, location, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getUniformLocation(int program, String name) {
|
public int getUniformLocation(int program, String name) {
|
||||||
return glGetUniformLocation(program, name);
|
return glGetUniformLocation(program, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getVertexAttribfv(int index, int pname, FloatBuffer params) {
|
public void getVertexAttribfv(int index, int pname, FloatBuffer params) {
|
||||||
glGetVertexAttribfv(index, pname, params);
|
glGetVertexAttribfv(index, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getVertexAttribiv(int index, int pname, IntBuffer params) {
|
public void getVertexAttribiv(int index, int pname, IntBuffer params) {
|
||||||
glGetVertexAttribiv(index, pname, params);
|
glGetVertexAttribiv(index, pname, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getVertexAttribPointerv(int index, int pname, Buffer pointer) {
|
public void getVertexAttribPointerv(int index, int pname, Buffer pointer) {
|
||||||
glGetVertexAttribPointerv(index, pname, pointer);
|
glGetVertexAttribPointerv(index, pname, pointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isFramebuffer(int framebuffer) {
|
public boolean isFramebuffer(int framebuffer) {
|
||||||
return glIsFramebuffer(framebuffer);
|
return glIsFramebuffer(framebuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isProgram(int program) {
|
public boolean isProgram(int program) {
|
||||||
return glIsProgram(program);
|
return glIsProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isRenderbuffer(int renderbuffer) {
|
public boolean isRenderbuffer(int renderbuffer) {
|
||||||
return glIsRenderbuffer(renderbuffer);
|
return glIsRenderbuffer(renderbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isShader(int shader) {
|
public boolean isShader(int shader) {
|
||||||
return glIsShader(shader);
|
return glIsShader(shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void linkProgram(int program) {
|
public void linkProgram(int program) {
|
||||||
glLinkProgram(program);
|
glLinkProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void releaseShaderCompiler() {
|
public void releaseShaderCompiler() {
|
||||||
glReleaseShaderCompiler();
|
glReleaseShaderCompiler();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void renderbufferStorage(int target, int internalformat, int width, int height) {
|
public void renderbufferStorage(int target, int internalformat, int width, int height) {
|
||||||
glRenderbufferStorage(target, internalformat, width, height);
|
glRenderbufferStorage(target, internalformat, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void sampleCoverage(float value, boolean invert) {
|
public void sampleCoverage(float value, boolean invert) {
|
||||||
glSampleCoverage(value, invert);
|
glSampleCoverage(value, invert);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void shaderBinary(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length) {
|
public void shaderBinary(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length) {
|
||||||
glShaderBinary(n,
|
glShaderBinary(n,
|
||||||
shaders,
|
shaders,
|
||||||
@@ -575,143 +684,178 @@ public class GdxGL extends GwtGL20 implements GL {
|
|||||||
length);
|
length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void shaderSource(int shader, String string) {
|
public void shaderSource(int shader, String string) {
|
||||||
glShaderSource(shader, string);
|
glShaderSource(shader, string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilFuncSeparate(int face, int func, int ref, int mask) {
|
public void stencilFuncSeparate(int face, int func, int ref, int mask) {
|
||||||
glStencilFuncSeparate(face, func, ref, mask);
|
glStencilFuncSeparate(face, func, ref, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilMaskSeparate(int face, int mask) {
|
public void stencilMaskSeparate(int face, int mask) {
|
||||||
glStencilMaskSeparate(face, mask);
|
glStencilMaskSeparate(face, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stencilOpSeparate(int face, int fail, int zfail, int zpass) {
|
public void stencilOpSeparate(int face, int fail, int zfail, int zpass) {
|
||||||
glStencilOpSeparate(face, fail, zfail, zpass);
|
glStencilOpSeparate(face, fail, zfail, zpass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1f(int location, float x) {
|
public void uniform1f(int location, float x) {
|
||||||
glUniform1f(location, x);
|
glUniform1f(location, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1fv(int location, int count, FloatBuffer v) {
|
public void uniform1fv(int location, int count, FloatBuffer v) {
|
||||||
glUniform1fv(location, count, v);
|
glUniform1fv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1i(int location, int x) {
|
public void uniform1i(int location, int x) {
|
||||||
glUniform1i(location, x);
|
glUniform1i(location, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform1iv(int location, int count, IntBuffer v) {
|
public void uniform1iv(int location, int count, IntBuffer v) {
|
||||||
glUniform1iv(location, count, v);
|
glUniform1iv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2f(int location, float x, float y) {
|
public void uniform2f(int location, float x, float y) {
|
||||||
glUniform2f(location, x, y);
|
glUniform2f(location, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2fv(int location, int count, FloatBuffer v) {
|
public void uniform2fv(int location, int count, FloatBuffer v) {
|
||||||
glUniform2fv(location, count, v);
|
glUniform2fv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2i(int location, int x, int y) {
|
public void uniform2i(int location, int x, int y) {
|
||||||
glUniform2i(location, x, y);
|
glUniform2i(location, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform2iv(int location, int count, IntBuffer v) {
|
public void uniform2iv(int location, int count, IntBuffer v) {
|
||||||
glUniform2iv(location, count, v);
|
glUniform2iv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3f(int location, float x, float y, float z) {
|
public void uniform3f(int location, float x, float y, float z) {
|
||||||
glUniform3f(location, x, y, z);
|
glUniform3f(location, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3fv(int location, int count, FloatBuffer v) {
|
public void uniform3fv(int location, int count, FloatBuffer v) {
|
||||||
glUniform3fv(location, count, v);
|
glUniform3fv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3i(int location, int x, int y, int z) {
|
public void uniform3i(int location, int x, int y, int z) {
|
||||||
glUniform3i(location, x, y, z);
|
glUniform3i(location, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform3iv(int location, int count, IntBuffer v) {
|
public void uniform3iv(int location, int count, IntBuffer v) {
|
||||||
glUniform3iv(location, count, v);
|
glUniform3iv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4f(int location, float x, float y, float z, float w) {
|
public void uniform4f(int location, float x, float y, float z, float w) {
|
||||||
glUniform4f(location, x, y, z, w);
|
glUniform4f(location, x, y, z, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4fv(int location, int count, FloatBuffer v) {
|
public void uniform4fv(int location, int count, FloatBuffer v) {
|
||||||
glUniform4fv(location, count, v);
|
glUniform4fv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4i(int location, int x, int y, int z, int w) {
|
public void uniform4i(int location, int x, int y, int z, int w) {
|
||||||
glUniform4i(location, x, y, z, w);
|
glUniform4i(location, x, y, z, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniform4iv(int location, int count, IntBuffer v) {
|
public void uniform4iv(int location, int count, IntBuffer v) {
|
||||||
glUniform4iv(location, count, v);
|
glUniform4iv(location, count, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value) {
|
public void uniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value) {
|
||||||
glUniformMatrix2fv(location, count, transpose, value);
|
glUniformMatrix2fv(location, count, transpose, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value) {
|
public void uniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value) {
|
||||||
glUniformMatrix3fv(location, count, transpose, value);
|
glUniformMatrix3fv(location, count, transpose, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value) {
|
public void uniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value) {
|
||||||
glUniformMatrix4fv(location, count, transpose, value);
|
glUniformMatrix4fv(location, count, transpose, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void useProgram(int program) {
|
public void useProgram(int program) {
|
||||||
glUseProgram(program);
|
glUseProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void validateProgram(int program) {
|
public void validateProgram(int program) {
|
||||||
glValidateProgram(program);
|
glValidateProgram(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib1f(int indx, float x) {
|
public void vertexAttrib1f(int indx, float x) {
|
||||||
glVertexAttrib1f(indx, x);
|
glVertexAttrib1f(indx, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib1fv(int indx, FloatBuffer values) {
|
public void vertexAttrib1fv(int indx, FloatBuffer values) {
|
||||||
glVertexAttrib1fv(indx, values);
|
glVertexAttrib1fv(indx, values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib2f(int indx, float x, float y) {
|
public void vertexAttrib2f(int indx, float x, float y) {
|
||||||
glVertexAttrib2f(indx, x, y);
|
glVertexAttrib2f(indx, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib2fv(int indx, FloatBuffer values) {
|
public void vertexAttrib2fv(int indx, FloatBuffer values) {
|
||||||
glVertexAttrib2fv(indx, values);
|
glVertexAttrib2fv(indx, values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib3f(int indx, float x, float y, float z) {
|
public void vertexAttrib3f(int indx, float x, float y, float z) {
|
||||||
glVertexAttrib3f(indx, x, y, z);
|
glVertexAttrib3f(indx, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib3fv(int indx, FloatBuffer values) {
|
public void vertexAttrib3fv(int indx, FloatBuffer values) {
|
||||||
glVertexAttrib3fv(indx, values);
|
glVertexAttrib3fv(indx, values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib4f(int indx, float x, float y, float z, float w) {
|
public void vertexAttrib4f(int indx, float x, float y, float z, float w) {
|
||||||
glVertexAttrib4f(indx, x, y, z, w);
|
glVertexAttrib4f(indx, x, y, z, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttrib4fv(int indx, FloatBuffer values) {
|
public void vertexAttrib4fv(int indx, FloatBuffer values) {
|
||||||
glVertexAttrib4fv(indx, values);
|
glVertexAttrib4fv(indx, values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride,
|
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride,
|
||||||
Buffer ptr) {
|
Buffer ptr) {
|
||||||
glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
|
glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride,
|
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride,
|
||||||
int ptr) {
|
int ptr) {
|
||||||
glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
|
glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
|
||||||
|
|||||||
@@ -187,6 +187,7 @@ public class GwtInput implements Input {
|
|||||||
return justPressedKeys[key];
|
return justPressedKeys[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getTextInput(TextInputListener listener, String title, String text, String hint) {
|
public void getTextInput(TextInputListener listener, String title, String text, String hint) {
|
||||||
TextInputDialogBox dialog = new TextInputDialogBox(title, text, hint);
|
TextInputDialogBox dialog = new TextInputDialogBox(title, text, hint);
|
||||||
final TextInputListener capturedListener = listener;
|
final TextInputListener capturedListener = listener;
|
||||||
|
|||||||
@@ -12,18 +12,22 @@ public class MyAttributes implements Attributes {
|
|||||||
map = n.getAttributes();
|
map = n.getAttributes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getValue(int i) {
|
public String getValue(int i) {
|
||||||
return map.item(i).getNodeValue();
|
return map.item(i).getNodeValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getLength() {
|
public int getLength() {
|
||||||
return map.getLength();
|
return map.getLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getLocalName(int i) {
|
public String getLocalName(int i) {
|
||||||
return map.item(i).getNodeName();
|
return map.item(i).getNodeName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getValue(String string) {
|
public String getValue(String string) {
|
||||||
Node n = map.getNamedItem(string);
|
Node n = map.getNamedItem(string);
|
||||||
if (n == null)
|
if (n == null)
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ public class LwHttp implements HttpEngine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
if (mHttpRequest == null)
|
if (mHttpRequest == null)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public class BitmapTileSource extends UrlTileSource {
|
|||||||
super(null, "/{Z}/{X}/{Y}.png");
|
super(null, "/{Z}/{X}/{Y}.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public BitmapTileSource build() {
|
public BitmapTileSource build() {
|
||||||
return new BitmapTileSource(this);
|
return new BitmapTileSource(this);
|
||||||
}
|
}
|
||||||
@@ -115,6 +116,7 @@ public class BitmapTileSource extends UrlTileSource {
|
|||||||
RootPanel.get().add(img);
|
RootPanel.get().add(img);
|
||||||
|
|
||||||
img.addLoadHandler(new LoadHandler() {
|
img.addLoadHandler(new LoadHandler() {
|
||||||
|
@Override
|
||||||
public void onLoad(LoadEvent event) {
|
public void onLoad(LoadEvent event) {
|
||||||
TileLoader.postLoadDelay(new LoadDelayTask<Image>(tile, sink, img) {
|
TileLoader.postLoadDelay(new LoadDelayTask<Image>(tile, sink, img) {
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public class JsonTileDataSource implements ITileDataSource {
|
|||||||
//builder.setCallbackParam("json_callback");
|
//builder.setCallbackParam("json_callback");
|
||||||
|
|
||||||
mRequestHandle = builder.requestObject(url, new AsyncCallback<JavaScriptObject>() {
|
mRequestHandle = builder.requestObject(url, new AsyncCallback<JavaScriptObject>() {
|
||||||
|
@Override
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
|
|
||||||
mSink.completed(FAILED);
|
mSink.completed(FAILED);
|
||||||
@@ -95,6 +96,7 @@ public class JsonTileDataSource implements ITileDataSource {
|
|||||||
//mRequestHandle.cancel();
|
//mRequestHandle.cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onSuccess(JavaScriptObject jso) {
|
public void onSuccess(JavaScriptObject jso) {
|
||||||
if (mTile.state(State.NONE)) {
|
if (mTile.state(State.NONE)) {
|
||||||
log.debug("tile cleared {}", url);
|
log.debug("tile cleared {}", url);
|
||||||
|
|||||||
@@ -155,6 +155,7 @@ public class MapTile extends Tile {
|
|||||||
|
|
||||||
protected abstract void dispose();
|
protected abstract void dispose();
|
||||||
|
|
||||||
|
@Override
|
||||||
public TileData next() {
|
public TileData next() {
|
||||||
return (TileData) next;
|
return (TileData) next;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ public class OsmTileLayer extends VectorTileLayer {
|
|||||||
new TagReplacement(Tag.KEY_MIN_HEIGHT)
|
new TagReplacement(Tag.KEY_MIN_HEIGHT)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@Override
|
||||||
protected TagSet filterTags(TagSet tagSet) {
|
protected TagSet filterTags(TagSet tagSet) {
|
||||||
Tag[] tags = tagSet.getTags();
|
Tag[] tags = tagSet.getTags();
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ public class LabelLayer extends Layer implements Map.UpdateListener, TileManager
|
|||||||
mLabelPlacer.cleanup();
|
mLabelPlacer.cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public synchronized boolean isRunning() {
|
public synchronized boolean isRunning() {
|
||||||
return mRunning;
|
return mRunning;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -659,6 +659,7 @@ public class ExtrusionBucket extends RenderBucket {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ExtrusionBucket next() {
|
public ExtrusionBucket next() {
|
||||||
return (ExtrusionBucket) next;
|
return (ExtrusionBucket) next;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ public final class LineTexBucket extends LineBucket {
|
|||||||
this.evenSegment = true;
|
this.evenSegment = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addLine(GeometryBuffer geom) {
|
public void addLine(GeometryBuffer geom) {
|
||||||
addLine(geom.points, geom.index, -1, false);
|
addLine(geom.points, geom.index, -1, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ public class MeshBucket extends RenderBucket {
|
|||||||
//tess.addContour2D(geom.index, geom.points);
|
//tess.addContour2D(geom.index, geom.points);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void prepare() {
|
protected void prepare() {
|
||||||
if (tess == null)
|
if (tess == null)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ public class TextureBucket extends RenderBucket {
|
|||||||
compileVertexItems(vboData);
|
compileVertexItems(vboData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void clear() {
|
protected void clear() {
|
||||||
while (textures != null)
|
while (textures != null)
|
||||||
textures = textures.dispose();
|
textures = textures.dispose();
|
||||||
|
|||||||
@@ -194,6 +194,7 @@ public class TextureItem extends Inlist<TextureItem> {
|
|||||||
/**
|
/**
|
||||||
* Retrieve a TextureItem from pool.
|
* Retrieve a TextureItem from pool.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public synchronized TextureItem get() {
|
public synchronized TextureItem get() {
|
||||||
TextureItem t = super.get();
|
TextureItem t = super.get();
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public final class ThemeUtils {
|
|||||||
final AtomicBoolean isMapsforgeTheme = new AtomicBoolean(false);
|
final AtomicBoolean isMapsforgeTheme = new AtomicBoolean(false);
|
||||||
try {
|
try {
|
||||||
new XMLReaderAdapter().parse(new DefaultHandler() {
|
new XMLReaderAdapter().parse(new DefaultHandler() {
|
||||||
|
@Override
|
||||||
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
|
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
|
||||||
if (localName.equals("rendertheme")) {
|
if (localName.equals("rendertheme")) {
|
||||||
isMapsforgeTheme.set(uri.equals("http://mapsforge.org/renderTheme"));
|
isMapsforgeTheme.set(uri.equals("http://mapsforge.org/renderTheme"));
|
||||||
|
|||||||
@@ -289,6 +289,7 @@ public class AreaStyle extends RenderStyle<AreaStyle> {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public AreaStyle build() {
|
public AreaStyle build() {
|
||||||
return new AreaStyle(this);
|
return new AreaStyle(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ public final class CircleStyle extends RenderStyle<CircleStyle> {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CircleStyle build() {
|
public CircleStyle build() {
|
||||||
return new CircleStyle(this);
|
return new CircleStyle(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -176,6 +176,7 @@ public class ExtrusionStyle extends RenderStyle<ExtrusionStyle> {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ExtrusionStyle build() {
|
public ExtrusionStyle build() {
|
||||||
return new ExtrusionStyle(this);
|
return new ExtrusionStyle(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -334,6 +334,7 @@ public final class LineStyle extends RenderStyle<LineStyle> {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public LineStyle build() {
|
public LineStyle build() {
|
||||||
return new LineStyle(this);
|
return new LineStyle(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -206,6 +206,7 @@ public final class SymbolStyle extends RenderStyle<SymbolStyle> {
|
|||||||
return self();
|
return self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public SymbolStyle build() {
|
public SymbolStyle build() {
|
||||||
return new SymbolStyle(this);
|
return new SymbolStyle(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ public final class TextStyle extends RenderStyle<TextStyle> {
|
|||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public TextStyle build() {
|
public TextStyle build() {
|
||||||
TextStyle t = new TextStyle(this);
|
TextStyle t = new TextStyle(this);
|
||||||
t.fontHeight = t.paint.getFontHeight();
|
t.fontHeight = t.paint.getFontHeight();
|
||||||
|
|||||||
@@ -255,6 +255,7 @@ public class LwHttp implements HttpEngine {
|
|||||||
throw new IOException("No Socket");
|
throw new IOException("No Socket");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public synchronized InputStream read() throws IOException {
|
public synchronized InputStream read() throws IOException {
|
||||||
checkSocket();
|
checkSocket();
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public class BitmapTileSource extends UrlTileSource {
|
|||||||
super(null, "/{Z}/{X}/{Y}.png");
|
super(null, "/{Z}/{X}/{Y}.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public BitmapTileSource build() {
|
public BitmapTileSource build() {
|
||||||
return new BitmapTileSource(this);
|
return new BitmapTileSource(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ public class OSciMap4TileSource extends UrlTileSource {
|
|||||||
overZoom(17);
|
overZoom(17);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public OSciMap4TileSource build() {
|
public OSciMap4TileSource build() {
|
||||||
return new OSciMap4TileSource(this);
|
return new OSciMap4TileSource(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,9 +129,11 @@ public class BitmapPacker {
|
|||||||
public static class GuillotineStrategy implements PackStrategy {
|
public static class GuillotineStrategy implements PackStrategy {
|
||||||
Comparator<Bitmap> comparator;
|
Comparator<Bitmap> comparator;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void sort(ArrayList<Bitmap> Bitmaps) {
|
public void sort(ArrayList<Bitmap> Bitmaps) {
|
||||||
if (comparator == null) {
|
if (comparator == null) {
|
||||||
comparator = new Comparator<Bitmap>() {
|
comparator = new Comparator<Bitmap>() {
|
||||||
|
@Override
|
||||||
public int compare(Bitmap o1, Bitmap o2) {
|
public int compare(Bitmap o1, Bitmap o2) {
|
||||||
return Math.max(o1.getWidth(), o1.getHeight()) - Math.max(o2.getWidth(), o2.getHeight());
|
return Math.max(o1.getWidth(), o1.getHeight()) - Math.max(o2.getWidth(), o2.getHeight());
|
||||||
}
|
}
|
||||||
@@ -140,6 +142,7 @@ public class BitmapPacker {
|
|||||||
Collections.sort(Bitmaps, comparator);
|
Collections.sort(Bitmaps, comparator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public PackerAtlasItem pack(BitmapPacker packer, Object key, Rect rect) {
|
public PackerAtlasItem pack(BitmapPacker packer, Object key, Rect rect) {
|
||||||
GuillotineAtlasItem atlasItem;
|
GuillotineAtlasItem atlasItem;
|
||||||
if (packer.packerAtlasItems.size() == 0) {
|
if (packer.packerAtlasItems.size() == 0) {
|
||||||
@@ -236,9 +239,11 @@ public class BitmapPacker {
|
|||||||
public static class SkylineStrategy implements PackStrategy {
|
public static class SkylineStrategy implements PackStrategy {
|
||||||
Comparator<Bitmap> comparator;
|
Comparator<Bitmap> comparator;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void sort(ArrayList<Bitmap> images) {
|
public void sort(ArrayList<Bitmap> images) {
|
||||||
if (comparator == null) {
|
if (comparator == null) {
|
||||||
comparator = new Comparator<Bitmap>() {
|
comparator = new Comparator<Bitmap>() {
|
||||||
|
@Override
|
||||||
public int compare(Bitmap o1, Bitmap o2) {
|
public int compare(Bitmap o1, Bitmap o2) {
|
||||||
return o1.getHeight() - o2.getHeight();
|
return o1.getHeight() - o2.getHeight();
|
||||||
}
|
}
|
||||||
@@ -247,6 +252,7 @@ public class BitmapPacker {
|
|||||||
Collections.sort(images, comparator);
|
Collections.sort(images, comparator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public PackerAtlasItem pack(BitmapPacker packer, Object key, Rect rect) {
|
public PackerAtlasItem pack(BitmapPacker packer, Object key, Rect rect) {
|
||||||
int padding = packer.padding;
|
int padding = packer.padding;
|
||||||
int atlasWidth = packer.atlasWidth - padding * 2, atlasHeight = packer.atlasHeight - padding * 2;
|
int atlasWidth = packer.atlasWidth - padding * 2, atlasHeight = packer.atlasHeight - padding * 2;
|
||||||
|
|||||||
@@ -290,6 +290,7 @@ public class RTree<T> implements SpatialIndex<T>, Iterable<T> {
|
|||||||
releaseRect(r);
|
releaseRect(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void insert(Box box, T item) {
|
public void insert(Box box, T item) {
|
||||||
Rect r = getRect();
|
Rect r = getRect();
|
||||||
r.set(box);
|
r.set(box);
|
||||||
@@ -312,6 +313,7 @@ public class RTree<T> implements SpatialIndex<T>, Iterable<T> {
|
|||||||
return removed;
|
return removed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean remove(Box box, T item) {
|
public boolean remove(Box box, T item) {
|
||||||
Rect r = getRect();
|
Rect r = getRect();
|
||||||
r.set(box);
|
r.set(box);
|
||||||
@@ -342,6 +344,7 @@ public class RTree<T> implements SpatialIndex<T>, Iterable<T> {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean search(Box bbox, SearchCb<T> cb, Object context) {
|
public boolean search(Box bbox, SearchCb<T> cb, Object context) {
|
||||||
Rect r = getRect();
|
Rect r = getRect();
|
||||||
r.set(bbox);
|
r.set(bbox);
|
||||||
@@ -352,6 +355,7 @@ public class RTree<T> implements SpatialIndex<T>, Iterable<T> {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public List<T> search(Box bbox, List<T> results) {
|
public List<T> search(Box bbox, List<T> results) {
|
||||||
if (results == null)
|
if (results == null)
|
||||||
results = new ArrayList<T>(16);
|
results = new ArrayList<T>(16);
|
||||||
@@ -370,6 +374,7 @@ public class RTree<T> implements SpatialIndex<T>, Iterable<T> {
|
|||||||
* Count the data elements in this container. This is slow as no internal
|
* Count the data elements in this container. This is slow as no internal
|
||||||
* counter is maintained.
|
* counter is maintained.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int size() {
|
public int size() {
|
||||||
int[] count = {0};
|
int[] count = {0};
|
||||||
countRec(mRoot, count);
|
countRec(mRoot, count);
|
||||||
@@ -393,6 +398,7 @@ public class RTree<T> implements SpatialIndex<T>, Iterable<T> {
|
|||||||
/**
|
/**
|
||||||
* Remove all entries from tree.
|
* Remove all entries from tree.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void clear() {
|
public void clear() {
|
||||||
/* Delete all existing nodes */
|
/* Delete all existing nodes */
|
||||||
reset();
|
reset();
|
||||||
@@ -913,6 +919,7 @@ public class RTree<T> implements SpatialIndex<T>, Iterable<T> {
|
|||||||
return new Stack();
|
return new Stack();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean clearItem(Stack item) {
|
protected boolean clearItem(Stack item) {
|
||||||
if (item.tos != 0) {
|
if (item.tos != 0) {
|
||||||
item.tos = 0;
|
item.tos = 0;
|
||||||
@@ -1007,6 +1014,7 @@ public class RTree<T> implements SpatialIndex<T>, Iterable<T> {
|
|||||||
|
|
||||||
/* Find the next data element */
|
/* Find the next data element */
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@Override
|
||||||
public T next() {
|
public T next() {
|
||||||
assert (isNotNull());
|
assert (isNotNull());
|
||||||
StackElement curTos = stack[tos - 1];
|
StackElement curTos = stack[tos - 1];
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public abstract class AsyncTask extends Task {
|
|||||||
*
|
*
|
||||||
* @return Task.DONE on success, Task.ERROR otherwise
|
* @return Task.DONE on success, Task.ERROR otherwise
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public abstract int go(boolean canceled);
|
public abstract int go(boolean canceled);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -186,6 +186,7 @@ public class BoxTree<T extends BoxItem<E>, E> extends TileIndex<BoxNode<T>, T> {
|
|||||||
return new Stack<BoxNode<T>>();
|
return new Stack<BoxNode<T>>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected boolean clearItem(Stack<BoxNode<T>> item) {
|
protected boolean clearItem(Stack<BoxNode<T>> item) {
|
||||||
if (item.tos != 0) {
|
if (item.tos != 0) {
|
||||||
item.tos = 0;
|
item.tos = 0;
|
||||||
@@ -678,6 +679,7 @@ public class BoxTree<T extends BoxItem<E>, E> extends TileIndex<BoxNode<T>, T> {
|
|||||||
root.refs = 0;
|
root.refs = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int size() {
|
public int size() {
|
||||||
return root.refs;
|
return root.refs;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user