Back to project page tetris-android.
The source code is released under:
MIT License
If you think the Android project tetris-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.badlogic.androidgames.framework; // w w w . j av a2 s .com public interface Graphics { public static enum PixmapFormat { ARGB8888, ARGB4444, RGB565 } public Pixmap newPixmap(String fileName, PixmapFormat format); public void clear(int color); public void drawPixel(int x, int y, int color); public void drawLine(int x, int y, int x2, int y2, int color); public void drawRect(int x, int y, int width, int height, int color); public void drawPixmap(Pixmap pixmap, int x, int y, int srcX, int srcY, int srcWidth, int srcHeight); public void drawPixmap(Pixmap pixmap, int x, int y); public int getWidth(); public int getHeight(); }