Package nl.colorize.multimedialib.scene
Class MediaCache
- java.lang.Object
-
- nl.colorize.multimedialib.scene.MediaCache
-
- All Implemented Interfaces:
MediaLoader
@Deprecated public class MediaCache extends java.lang.Object implements MediaLoader
Deprecated.The functionality of this class has been replaced by theMediaManager, which serves a similar purpose, but allows to identify media by name instead of the underlying files(s).Wrapper around aMediaLoaderthat caches all media, that when the same file is multiple times the results are retrieved from the cache.
-
-
Constructor Summary
Constructors Constructor Description MediaCache(MediaLoader delegate)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsResourceFile(FilePointer file)Deprecated.Returns whether the specified resource file is available.voidinvalidate()Deprecated.AudioloadAudio(FilePointer file)Deprecated.Loads an audio clip from a file.TTFontloadFont(FilePointer file, java.lang.String family, int size, ColorRGB color, boolean bold)Deprecated.Loads a TrueType font from a.ttffile and converts it to a format that can be used by the renderer.ImageloadImage(FilePointer file)Deprecated.Loads an image from a file.PolygonMeshloadMesh(FilePointer file)Deprecated.Loads a polygon mesh from the specified file.java.lang.StringloadText(FilePointer file)Deprecated.Loads a text-based resource file using UTF-8 encoding.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nl.colorize.multimedialib.renderer.MediaLoader
loadDefaultFont, loadFont, loadSpriteSheetCSV, loadTextLines
-
-
-
-
Constructor Detail
-
MediaCache
public MediaCache(MediaLoader delegate)
Deprecated.
-
-
Method Detail
-
loadImage
public Image loadImage(FilePointer file)
Deprecated.Description copied from interface:MediaLoaderLoads an image from a file. JPEG and PNG images are guaranteed to be supported, though other image formats may also be supported depending on the platform.- Specified by:
loadImagein interfaceMediaLoader
-
loadAudio
public Audio loadAudio(FilePointer file)
Deprecated.Description copied from interface:MediaLoaderLoads an audio clip from a file. OGG and MP3 files are guaranteed to be supported, though other audio formats may be also be supported depending on the platform.- Specified by:
loadAudioin interfaceMediaLoader
-
loadFont
public TTFont loadFont(FilePointer file, java.lang.String family, int size, ColorRGB color, boolean bold)
Deprecated.Description copied from interface:MediaLoaderLoads a TrueType font from a.ttffile and converts it to a format that can be used by the renderer.- Specified by:
loadFontin interfaceMediaLoader
-
loadText
public java.lang.String loadText(FilePointer file)
Deprecated.Description copied from interface:MediaLoaderLoads a text-based resource file using UTF-8 encoding.- Specified by:
loadTextin interfaceMediaLoader
-
loadMesh
public PolygonMesh loadMesh(FilePointer file)
Deprecated.Description copied from interface:MediaLoaderLoads a polygon mesh from the specified file. Only the FBX file format is supported by all renderer implementations.- Specified by:
loadMeshin interfaceMediaLoader
-
containsResourceFile
public boolean containsResourceFile(FilePointer file)
Deprecated.Description copied from interface:MediaLoaderReturns whether the specified resource file is available.- Specified by:
containsResourceFilein interfaceMediaLoader
-
invalidate
public void invalidate()
Deprecated.
-
-