v0.7.4b: Initial LibGDX commit! more details below:
Large sections of game logic are now working through libgdx instead of android libraries. There is still work to do but this is the first major step. Big changes include: - Graphics code is now through LibGDX (except for text rendering) - Initialization and screen-handling logic is now mostly through LibGDX - Audio is now through LibGDX - Input handling is now through LibGDX - Most misc functions are now through LibGDX
This commit is contained in:
@@ -21,27 +21,26 @@
|
||||
|
||||
package com.watabou.utils;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Rect;
|
||||
import com.badlogic.gdx.graphics.Pixmap;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class BitmapFilm {
|
||||
|
||||
public Bitmap bitmap;
|
||||
public Pixmap bitmap;
|
||||
|
||||
protected HashMap<Object,Rect> frames = new HashMap<Object, Rect>();
|
||||
|
||||
public BitmapFilm( Bitmap bitmap ) {
|
||||
public BitmapFilm( Pixmap bitmap ) {
|
||||
this.bitmap = bitmap;
|
||||
add( null, new Rect( 0, 0, bitmap.getWidth(), bitmap.getHeight() ) );
|
||||
}
|
||||
|
||||
public BitmapFilm( Bitmap bitmap, int width ) {
|
||||
public BitmapFilm( Pixmap bitmap, int width ) {
|
||||
this( bitmap, width, bitmap.getHeight() );
|
||||
}
|
||||
|
||||
public BitmapFilm( Bitmap bitmap, int width, int height ) {
|
||||
public BitmapFilm( Pixmap bitmap, int width, int height ) {
|
||||
this.bitmap = bitmap;
|
||||
int cols = bitmap.getWidth() / width;
|
||||
int rows = bitmap.getHeight() / height;
|
||||
|
||||
Reference in New Issue
Block a user