ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
|
Asset routines for the ASW library. More...
Go to the source code of this file.
Namespaces | |
namespace | asw |
namespace | asw::assets |
Functions | |
asw::Texture | asw::assets::loadTexture (const std::string &filename) |
Loads a texture from a file. Formats supported are PNG, ICO, CUR, BMP, GIF, JPG, LBM, PCX, PNM, TIF, XCF, XPM, XV, and WEBP. This will abort if the file is not found. | |
asw::Font | asw::assets::loadFont (const std::string &filename, float size) |
Loads a TTF font from a file. This will abort if the file is not found. | |
asw::Sample | asw::assets::loadSample (const std::string &filename) |
Loads a sample from a file. Formats supported are WAV, AIFF, RIFF, OGG and VOC. This will abort if the file is not found. | |
asw::Music | asw::assets::loadMusic (const std::string &filename) |
Loads a music file from a file. Formats supported are WAV, AIFF, RIFF, OGG and VOC. This will abort if the file is not found. | |
asw::Texture | asw::assets::createTexture (int w, int h) |
Create a Texture given the specified dimensions. | |
Asset routines for the ASW library.
Definition in file assets.h.