Skip to content
Tangent 128 edited this page Mar 28, 2015 · 3 revisions

API Reference

The following categories are the available group of SDL functions. They all belong to the SDL module.

Module

local SDL = require "SDL" 

Categories

Basics

Category Description
Initialization Initialize SDL and its modules
Errors Error management and reporting
Logging Logging functions
Hints Hints

Video and display

Category Description
Display Display management
Window Window management
Texture Texture creation and manipulation
Surface Surface object
Renderer Renderer management
GL OpenGL management

System and filesystem

Category Description
Platform Platform inspection
Power Power management
RWops Portable file management
Filesystem File system

Threading

Category Description
Threads Threads
Channels Per thread messages
Timer Timers

Audio

Category Description
Audio Audio management

Input and events

Category Description
Events General events functions
Mouse Mouse handling
Keyboard Keyboard handling and input
Joystick Joystick input
Haptic Force feedback support

Geometry and basic types

Category Description
Rectangle How to manage SDL_Rect
Color How to deal with colors
Point How to use points
Line Line management

Clone this wiki locally