- getPathToAsset
string getPathToAsset(string path)
NOTE: probably redo it for 1.0.0, or make a system that bypasses it.
- getPathToLocalizationFile
string getPathToLocalizationFile(string country, string language, string filename)
- loadBitmapFromFile
T loadBitmapFromFile(string filename)
Loads a bitmap from disk.
Currently supported formats: *.tga, *.png, *.bmp
- loadBitmapFromImage
T loadBitmapFromImage(Image img)
Loads a bitmap from Image.
- loadBitmapSheetFromFile
T[] loadBitmapSheetFromFile(string filename, int x, int y)
Loads a bitmap sheet from file.
This one doesn't require TGA devarea extensions.
- loadBitmapSheetFromImage
T[] loadBitmapSheetFromImage(Image img, int x, int y)
Creates a bitmap sheet from an image file.
This one doesn't require embedded data.
- loadBitmapSliceFromImage
T loadBitmapSliceFromImage(Image img, int x, int y, int w, int h)
Loads a bitmap slice from an image.
Ideal for loading sprite sheets.
- loadImage
Image loadImage(F file)
Loads an Image from a File or VFile.
Automatically detects format from file extension.
- loadPaletteFromFile
Color[] loadPaletteFromFile(string filename)
Loads a palette from a file.
- loadPaletteFromImage
Color[] loadPaletteFromImage(Image img)
Loads a palette from image.
- padScanLine
size_t[] padScanLine(ubyte[] scanline)
Pads a scanline to be on size_t's bounds.