class Object

Constants

SDL2_FFI

Simple ALIAS of SDL2

Sdl2_Ffi

The SDL2 Map of API Prototypes


Stub for SDL_assert.h, Unsure if we should translate or borrow existing functionality. TODO: Review for future implementation











sdl_error.h - Error handling routines.






















































## SDL2 Mouse Support




SDL_pixels.h API





2D Accelerated Rendering

API Supports these primitives:

  • Single Pixel Points

  • Single Pixel Lines

  • Filled Rectangles

  • Texture Images

Rendered in Opaque, Blended, or Additive modes. Textures have additional tint or alpha modulation, and the API supports stretching, rotation, or mirroring. NOTE: THIS API IS NOT THREAD SAFE




SDL_rwops.h => sdl2/rwops.rb

  • RWops Structs







require ‘sdl2/pixel_format’


SDL_syswm.h - “Include file for SDL custom system window manager hooks.”

Your application has access to a special type of event ::SDL_SYSWMEVENT,
which contains window-manager specific information and arrives whenever
an unhandled window event occurs.  This event is ignored by default, but
you can enable it with SDL_EventState().



Stub for now.. need to implement!!!