Package | Description |
---|---|
com.b3dgs.lionengine |
Main engine core types and utility classes.
|
com.b3dgs.lionengine.audio |
Audio dedicated package.
|
com.b3dgs.lionengine.core |
Lower level classes related, close to the engine.
|
com.b3dgs.lionengine.core.drawable |
Classic drawable classes for a ready to use image manipulation.
|
com.b3dgs.lionengine.graphic |
Graphic basic dedicated package.
|
com.b3dgs.lionengine.io |
Input interface package.
|
Modifier and Type | Method and Description |
---|---|
Media |
Config.getIcon()
Get the application icon.
|
Modifier and Type | Method and Description |
---|---|
Collection<Media> |
Media.getMedias()
Get the medias in the media path.
|
Constructor and Description |
---|
Config(Resolution output,
int depth,
boolean windowed,
Media icon)
Create a configuration.
|
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 |
---|---|
AudioVoid |
AudioVoidFormat.loadAudio(Media media) |
T |
AudioFormat.loadAudio(Media media)
Load an audio file and prepare it to be played.
|
static Audio |
AudioFactory.loadAudio(Media media)
Load an audio file and prepare it to be played.
|
static <A extends Audio> |
AudioFactory.loadAudio(Media media,
Class<A> type)
Load an audio file and prepare it to be played.
|
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.
|
static Media |
Medias.getWithSuffix(Media media,
String suffix)
Get the media with an additional suffix, just before the dot of the extension if has.
|
Modifier and Type | Method and Description |
---|---|
static List<Media> |
Medias.getByExtension(File jar,
String fullPath,
int prefixLength,
String extension)
Get all media by extension found in the direct JAR path (does not search in sub folders).
|
static List<Media> |
Medias.getByExtension(String extension,
Media folder)
Get all media by extension found in the direct path (does not search in sub folders).
|
Modifier and Type | Method and Description |
---|---|
static List<Media> |
Medias.getByExtension(String extension,
Media folder)
Get all media by extension found in the direct path (does not search in sub folders).
|
static Media |
Medias.getWithSuffix(Media media,
String suffix)
Get the media with an additional suffix, just before the dot of the extension if has.
|
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 |
---|---|
Media |
RasterImage.getFile()
Get the raster file.
|
Modifier and Type | Method and Description |
---|---|
static ImageHeader |
ImageInfo.get(Media media)
Get the image info of the specified image media.
|
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 boolean |
ImageInfo.isImage(Media media)
Check if the media is a valid image.
|
static Raster |
Raster.load(Media media)
Load raster from media.
|
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 |
---|
RasterImage(ImageBuffer surface,
Media rasterFile,
int rasterHeight,
boolean smooth)
Create a rastered image.
|
RasterImage(Media media,
Media rasterFile,
int rasterHeight,
boolean smooth)
Create a rastered image.
|
Modifier and Type | Method and Description |
---|---|
void |
Xml.save(Media media)
Save an XML tree to a file.
|
Constructor and Description |
---|
FileReading(Media media)
Internal constructor.
|
FileWriting(Media media)
Internal constructor.
|
Xml(Media media)
Create node from media.
|
XmlReader(Media media)
Create node from media.
|
Copyright © 2017 Byron 3D Games Studio. All rights reserved.