public class RoboAssets extends Assets
| Constructor and Description |
|---|
RoboAssets(RoboPlatform plat) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getBytesSync(java.lang.String path) |
Sound |
getMusic(java.lang.String path) |
Image |
getRemoteImage(java.lang.String url,
int width,
int height) |
Sound |
getSound(java.lang.String path) |
java.lang.String |
getTextSync(java.lang.String path) |
void |
setPathPrefix(java.lang.String pathPrefix)
Configures the prefix prepended to asset paths before fetching them from the app directory.
|
getBytes, getImage, getImageSync, getRemoteImage, getTextpublic RoboAssets(RoboPlatform plat)
public void setPathPrefix(java.lang.String pathPrefix)
public Image getRemoteImage(java.lang.String url, int width, int height)
getRemoteImage in class Assetspublic java.lang.String getTextSync(java.lang.String path)
throws java.lang.Exception
getTextSync in class Assetsjava.lang.Exceptionpublic java.nio.ByteBuffer getBytesSync(java.lang.String path)
throws java.lang.Exception
getBytesSync in class Assetsjava.lang.ExceptionCopyright © 2019. All Rights Reserved.