org.oscim.backend: docs and cleanups

This commit is contained in:
Hannes Janetzek
2013-09-25 05:30:34 +02:00
parent a9d9c97bff
commit 2db1cf8b6c
17 changed files with 171 additions and 105 deletions

View File

@@ -58,7 +58,7 @@ public class GwtBitmap implements Bitmap {
}
@Override
public int uploadToTexture(boolean replace) {
public void uploadToTexture(boolean replace) {
Gdx.gl.glTexImage2D(GL10.GL_TEXTURE_2D, 0, pixmap.getGLInternalFormat(), pixmap.getWidth(),
pixmap.getHeight(), 0,
@@ -71,8 +71,6 @@ public class GwtBitmap implements Bitmap {
if (image != null)
RootPanel.get().remove(image);
}
return 1;
}
}

View File

@@ -41,23 +41,11 @@ public class GwtCanvasAdapter extends CanvasAdapter {
return new GwtBitmap(fileName);
}
@Override
public int getColor(Color color) {
// TODO Auto-generated method stub
return 0;
}
@Override
public Paint getPaint() {
return new GwtPaint();
}
@Override
public int parseColor(String colorString) {
// TODO Auto-generated method stub
return 0;
}
@Override
public Bitmap getBitmap(int width, int height, int format) {
return new GwtBitmap(width, height, format);