Bundle SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.
Filesystem
Filesystem helper functions
Operations
GetBasePath # function
Get the directory where the application was run from. This is where the application data directory is.
function : GetBasePath() ~ StringReturn
| Type | Description |
|---|---|
| String | an absolute path in UTF-8 encoding to the application data directory |
GetPrefPath # function
Use this function to get the "pref dir". This is meant to be where the application can write personal files (Preferences and save games, etc.) that are specific to the application. This directory is unique per user and per application.
function : GetPrefPath(org:String, app:String) ~ StringParameters
| Name | Type | Description |
|---|---|---|
| org | String | the name of your organization |
| app | String | the name of your application |
Return
| Type | Description |
|---|---|
| String | UTF-8 string of the user directory in platform-dependent notation |