aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
AgeCommit message (Collapse)Author
2013-07-31support for stb-imageAlon Zakai
2013-07-26Merge pull request #1393 from fhd/sdl-surface-refcountAlon Zakai
Implement SDL_Surface refcounting
2013-07-25Don't leak the last surface and improve SDL_surface refcount testFelix H. Dahlke
2013-07-24Merge pull request #1386 from michaeljbishop/sdl_rwopsAlon Zakai
Add support for `SDL_RWFromConstMem()` for .ogg files.
2013-07-22Made getMimetype() a public method of the Browser module and used itMichael J. Bishop
inside the SDL module.
2013-07-22Added mime type information to SDL_rwops in `SDL_RWFromFile` as a hintMichael J. Bishop
to processing down the line. Changed the `Pointer_stringify()` call to occur in `SDL_RWFromFile` instead of downstream which makes more sense. Cleaned up formatting.
2013-07-19Formatting cleanup.Michael J. Bishop
2013-07-19handle out param in SDL_GetKeyboardState; fixes #1404Alon Zakai
2013-07-17Fix SDL_surface refcount test and initialise refcount to 1Felix H. Dahlke
2013-07-17Implement SDL_Surface refcountingFelix H. Dahlke
2013-07-15Made sure that `IMG_Load_RW` is also aware that it should receiveMichael J. Bishop
`SDL_RWops *` generated from `SDL_RWFromFile()`.
2013-07-15Updated with kripken's suggestions.Michael J. Bishop
2013-07-15Merge pull request #1385 from fhd/zoom-if-360Alon Zakai
Just zoom the surface if the angle is divisible by 360
2013-07-15Added support for loading .ogg audio files using a combination ofMichael J. Bishop
`SDL_RWFromConstMem()` + `Mix_LoadMUS/WAV_RW()`. `SDL_RWFromConstMem()` now returns an opaque reference that corresponds to a Javascript-side object which retains the information passed in. The same for `SDL_RWFromFile()` but it saves different information. When `Mix_LoadMUS/WAV_RW()` is called, it now expects a reference to one of those Javascript-side objects and from it, either uses a pre-loaded Audio, or reads bytes from the file-system to make one, or uses the bytes originally passed into `SDL_RWFromConstMem()` to create one. Note that with this change you can now simply embed sound files in your app, you do not need to preload them.
2013-07-16Just zoom the surface if the angle is divisible by 360Felix H. Dahlke
2013-07-16Implement TTF_FontHeightFelix H. Dahlke
2013-07-12only push proper canvases to canvas poolAlon Zakai
2013-07-11Merge pull request #1354 from fhd/fix-gc-pausesAlon Zakai
Fix GC pauses by reusing canvas elements
2013-07-11Add missing bracesFelix H. Dahlke
2013-07-11Document canvasPoolFelix H. Dahlke
2013-07-10Merge pull request #1363 from dtc/sdl-touchAlon Zakai
Add basic touch support that translates to mouse events.
2013-07-11Update the AUTHORS file, and address some code style issues.Douglas T. Crosher
2013-07-10Add comment.Jez Ng
2013-07-10Cast signedness in library_SDL functions.Jez Ng
2013-07-10Wrap gfx helpers in a $SDL_gfx object.Jez Ng
2013-07-10Add (failing) test for gfx primitives.Jez Ng
2013-07-10Avoid noisy error logs.Jez Ng
2013-07-10Add workaround for FF.Jez Ng
2013-07-10Implement ellipse drawing and refactor rect code.Jez Ng
2013-07-10Fix negative surface zooming.Jez Ng
2013-07-10Add basic touch support that translates to mouse events.Douglas T. Crosher
2013-07-09Bunch of changes to support Syobon Action.Jez Ng
2013-07-08Fix GC pauses by reusing canvas elementsFelix H. Dahlke
2013-06-24Removed unnecessary "audio.paused = " statements.Michael J. Bishop
2013-06-19Fixed error where SDL_Mixer would run out of channels because soundMichael J. Bishop
instances weren't removed when they were finished playing.
2013-06-17Fix SDL color encoding.Jez Ng
Little-endian + RGBA means that red is located at the lowest-order bits, not the highest. The hello_world_sdl test is now portable, because we no longer write to individual bytes. We also add a test for a completely blank screen, which should be black, not red. Closes #1287, #761, #765.
2013-06-17Merge pull request #1283 from juj/SDL_CreateRGBSurfaceFromAlon Zakai
Don't throw when SDL_CreateRGBSurfaceFrom is called, but at least give a...
2013-06-16Merge pull request #1282 from juj/sdl_addtimerAlon Zakai
Fix SDL_AddTimer dyncall signature. The timer callback is of form 'typed...
2013-06-13Add no-op SDL_WM_SetIcon.Jukka Jylänki
2013-06-13Don't throw when SDL_CreateRGBSurfaceFrom is called, but at least give an ↵Jukka Jylänki
uninitialized surface.
2013-06-13Fix SDL_AddTimer dyncall signature. The timer callback is of form 'typedef ↵Jukka Jylänki
Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval, void *param);'.
2013-06-08 - Fix for mod property of SDL key eventsAnthony Pesch
- Added misc SDL functions (SDL_GetKeyName, SDL_GetAppState, SDL_SetGammaRamp) - Added modifiers to test_sdl_key
2013-06-07better erroring in SDL_Delay; issue #1255Alon Zakai
2013-06-05sdl fixes; fixes #1251Alon Zakai
2013-06-05return the best we can from SDL_OpenAudio, fixes #1253Alon Zakai
2013-05-29Free old surface before creating new oneAnthony Pesch
2013-05-22do not call code-running callbacks if ABORTing; fixes #1191Alon Zakai
2013-05-20Make looping behavior on effects match background music.James Gregory
2013-05-20According to http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.pdf, 0 ↵James Gregory
is the only value for the loop argument that does not cause looping on Mix_PlayMusic. Update Emscripten's implementation to respect this.
2013-05-16fix test_sdl_alloctextAlon Zakai