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++.
Loading...
Searching...
No Matches
assets.h File Reference

Asset routines for the ASW library. More...

#include <string>
#include "./types.h"
#include "./util.h"
Include dependency graph for assets.h:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Asset routines for the ASW library.

Author
Allan Legemaate (alege.nosp@m.maat.nosp@m.e@gma.nosp@m.il.c.nosp@m.om)
Date
2023-09-20

Definition in file assets.h.