public class JmeSystem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JmeSystem.StorageFolderType |
Constructor and Description |
---|
JmeSystem() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFullName() |
static Platform |
getPlatform() |
static java.net.URL |
getPlatformAssetConfigURL() |
static java.net.URL |
getResource(java.lang.String name) |
static java.io.InputStream |
getResourceAsStream(java.lang.String name) |
static SoftTextDialogInput |
getSoftTextDialogInput() |
static java.io.File |
getStorageFolder() |
static java.io.File |
getStorageFolder(JmeSystem.StorageFolderType type) |
static void |
initialize(AppSettings settings) |
static boolean |
isLowPermissions() |
static AssetManager |
newAssetManager() |
static AssetManager |
newAssetManager(java.net.URL configFile) |
static AudioRenderer |
newAudioRenderer(AppSettings settings) |
static JmeContext |
newContext(AppSettings settings,
JmeContext.Type contextType) |
static void |
setLowPermissions(boolean lowPerm) |
static void |
setSoftTextDialogInput(SoftTextDialogInput input) |
static void |
setSystemDelegate(JmeSystemDelegate systemDelegate) |
static void |
showErrorDialog(java.lang.String message)
Displays an error message to the user in whichever way the context
feels is appropriate.
|
static boolean |
showSettingsDialog(AppSettings sourceSettings,
boolean loadFromRegistry) |
static void |
showSoftKeyboard(boolean show)
Displays or hides the onscreen soft keyboard
|
static boolean |
trackDirectMemory() |
static void |
writeImageFile(java.io.OutputStream outStream,
java.lang.String format,
java.nio.ByteBuffer imageData,
int width,
int height)
Compresses a raw image into a stream.
|
public static void setSystemDelegate(JmeSystemDelegate systemDelegate)
public static java.io.File getStorageFolder()
public static java.io.File getStorageFolder(JmeSystem.StorageFolderType type)
public static java.lang.String getFullName()
public static java.io.InputStream getResourceAsStream(java.lang.String name)
public static java.net.URL getResource(java.lang.String name)
public static boolean trackDirectMemory()
public static void setLowPermissions(boolean lowPerm)
public static boolean isLowPermissions()
public static void setSoftTextDialogInput(SoftTextDialogInput input)
public static void showSoftKeyboard(boolean show)
show
- If true, the keyboard is displayed, if false, the screen is hidden.public static SoftTextDialogInput getSoftTextDialogInput()
public static void writeImageFile(java.io.OutputStream outStream, java.lang.String format, java.nio.ByteBuffer imageData, int width, int height) throws java.io.IOException
outStream
- The stream where to write the image data.format
- The format to use, either "png" or "jpg".imageData
- The image data in Image.Format.RGBA8
format.width
- The width of the image.height
- The height of the image.java.io.IOException
- If outStream throws an exception while writing.public static AssetManager newAssetManager(java.net.URL configFile)
public static AssetManager newAssetManager()
public static boolean showSettingsDialog(AppSettings sourceSettings, boolean loadFromRegistry)
public static Platform getPlatform()
public static JmeContext newContext(AppSettings settings, JmeContext.Type contextType)
public static AudioRenderer newAudioRenderer(AppSettings settings)
public static java.net.URL getPlatformAssetConfigURL()
public static void showErrorDialog(java.lang.String message)
message
- The error message to display. May contain new line
characters.public static void initialize(AppSettings settings)