Bug 18: Separated SpriteBatch and BitmapFont
This commit is contained in:
parent
ebceaf1cbb
commit
971a1d0795
@ -68,35 +68,45 @@ public class AppLibGDXImpl implements App {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void log(String msg) {
|
||||
public void log(String tag, String msg) {
|
||||
Application app = Gdx.app;
|
||||
if (app != null) {
|
||||
Gdx.app.log(getClass().getName(), msg);
|
||||
Gdx.app.log(tag, msg);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void error(String msg) {
|
||||
public void error(String tag, String msg) {
|
||||
|
||||
Application app = Gdx.app;
|
||||
if (app != null) {
|
||||
Gdx.app.error(getClass().getName(), msg);
|
||||
Gdx.app.error(tag, msg);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void debug(String msg) {
|
||||
public void debug(String tag, String msg) {
|
||||
Application app = Gdx.app;
|
||||
if (app != null) {
|
||||
Gdx.app.debug(getClass().getName(), msg);
|
||||
Gdx.app.debug(tag, msg);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void warn(String msg) {
|
||||
public void warn(String tag, String msg) {
|
||||
log(msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fatal(String tag, String msg) {
|
||||
error(tag, msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void trace(String tag, String msg) {
|
||||
debug(tag, msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAppName(String appNameIn) {
|
||||
if (appNameIn != null) {
|
||||
@ -160,4 +170,6 @@ public class AppLibGDXImpl implements App {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -32,34 +32,34 @@ public class FilesLibGDXImpl implements Files {
|
||||
Storage assetsStorage = null;
|
||||
|
||||
@Override
|
||||
public Storage local() {
|
||||
public Storage localStorage() {
|
||||
return StorageFactory.getStorage();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Storage assets() {
|
||||
public Storage assetsStorage() {
|
||||
if(assetsStorage == null) {
|
||||
assetsStorage = new AssetsLibGDXStorage();
|
||||
}
|
||||
return assetsStorage; }
|
||||
|
||||
@Override
|
||||
public Storage external() {
|
||||
public Storage externalStorage() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public Storage relative() {
|
||||
public Storage relativeStorage() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public Storage absolute() {
|
||||
public Storage absoluteStorage() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public Storage tmp() {
|
||||
public Storage tmpStorage() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
|
@ -22,9 +22,12 @@ package com.pixelgamelibrary.backend.libgdx;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.Graphics;
|
||||
import com.pixelgamelibrary.api.PixelException;
|
||||
import com.pixelgamelibrary.api.graphics.BitmapFontFactory;
|
||||
import com.pixelgamelibrary.api.graphics.Cursor;
|
||||
import com.pixelgamelibrary.api.graphics.Monitor;
|
||||
import com.pixelgamelibrary.api.graphics.Pixmap;
|
||||
import com.pixelgamelibrary.api.graphics.SpriteBatchFactory;
|
||||
import com.pixelgamelibrary.api.graphics.TextureFactory;
|
||||
import com.pixelgamelibrary.backend.libgdx.graphics.LibGdxMonitor;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -93,4 +96,19 @@ public class GraphicsLibGDXImpl implements com.pixelgamelibrary.api.interfaces.G
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public TextureFactory getTextureFactory() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpriteBatchFactory newSpriteBatchFactory() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public BitmapFontFactory newBitmapFontFactory() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -133,6 +133,36 @@ class DesktopAndroidStorageTest {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fatal(String tag, String msg) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public void error(String tag, String msg) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public void log(String tag, String msg) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public void warn(String tag, String msg) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public void debug(String tag, String msg) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
@Override
|
||||
public void trace(String tag, String msg) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user