Package | Description |
---|---|
com.b3dgs.lionengine |
Main engine core types and utility classes.
|
com.b3dgs.lionengine.core |
Lower level classes related, close to the engine.
|
com.b3dgs.lionengine.drawable |
Classic drawable classes for a ready to use image manipulation.
|
com.b3dgs.lionengine.graphic |
Graphic related package.
|
com.b3dgs.lionengine.stream |
Stream dedicated package, for binary and XML handling.
|
Constructor and Description |
---|
LionEngineException(Media media,
String... messages)
Create an exception related to a media and messages if has.
|
LionEngineException(Throwable exception,
Media media,
String... messages)
Create an exception related to an existing exception and a media, plus additional messages if has.
|
Modifier and Type | Method and Description |
---|---|
static Media |
Medias.create(String... path)
Create a media.
|
Media |
FactoryMediaDefault.create(String separator,
Class<?> loader,
String... path) |
Media |
FactoryMedia.create(String separator,
Class<?> loader,
String... path)
Create a media from an abstract path.
|
Media |
FactoryMediaDefault.create(String separator,
String resourcesDir,
String... path) |
Media |
FactoryMedia.create(String separator,
String resourcesDir,
String... path)
Create a media from an abstract path.
|
static Media |
Medias.get(File file)
Get a media from an existing file descriptor.
|
Media |
Config.getIcon()
Get the application icon.
|
Modifier and Type | Method and Description |
---|---|
static ImageBuffer |
Graphics.getImageBuffer(Media media)
Get an image buffer from an image file.
|
ImageBuffer |
FactoryGraphic.getImageBuffer(Media media)
Get an image buffer from an image file.
|
static void |
Graphics.saveImage(ImageBuffer image,
Media media)
Save an image into a file.
|
void |
FactoryGraphic.saveImage(ImageBuffer image,
Media media)
Save an image into a file.
|
Constructor and Description |
---|
Config(Resolution output,
int depth,
boolean windowed,
Media icon)
Create a configuration.
|
Modifier and Type | Method and Description |
---|---|
static Image |
Drawable.loadImage(Media media)
Load an image from a file.
|
static Sprite |
Drawable.loadSprite(Media media)
Load a sprite from a file.
|
static SpriteAnimated |
Drawable.loadSpriteAnimated(Media media,
int horizontalFrames,
int verticalFrames)
Load an animated sprite from a file, giving horizontal and vertical frames.
|
static SpriteFont |
Drawable.loadSpriteFont(Media media,
Media data,
int letterWidth,
int letterHeight)
Load a font based on an image.
|
static SpriteParallaxed |
Drawable.loadSpriteParallaxed(Media media,
int linesNumber,
int startWidth,
int startHeight)
Load a parallaxed sprite, for parallax effect.
|
static SpriteTiled |
Drawable.loadSpriteTiled(Media media,
int tileWidth,
int tileHeight)
Load a tiled sprite from a file, giving tile dimension.
|
Modifier and Type | Method and Description |
---|---|
static ImageInfo |
ImageInfo.get(Media media)
Get the image info of the specified image media.
|
static boolean |
ImageInfo.isImage(Media media)
Check if the media is a valid image.
|
static Raster |
Raster.load(Media media)
Load raster from media.
|
Modifier and Type | Method and Description |
---|---|
static FileReading |
Stream.createFileReading(Media media)
Open a binary file as read only.
|
static FileWriting |
Stream.createFileWriting(Media media)
Open a binary file as write only.
|
static XmlNode |
Xml.load(Media media)
Load an XML file.
|
static void |
Xml.save(XmlNode root,
Media media)
Save an XML tree to a file.
|
Copyright © 2016 Byron 3D Games Studio. All rights reserved.