Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-04-03 | Add 'centered' and 'undefined' pos options to sdl_window:create/6 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:get_max_size/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:get_id/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:is_input_grabbed/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:get_flags/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:get_display_index/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:get_brightness/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:create_window_and_renderer/3 | Loïc Hoguin | |
2014-04-02 | Add CPU feature detection functions | Loïc Hoguin | |
Now requiring SDL 2.0.3+. | |||
2014-04-02 | Add the SDL filesystem functions | Loïc Hoguin | |
The one giving you a safe path to save data is particularly important for writing games. | |||
2014-04-02 | Add sdl_power:get_info/0 function to retrieve battery info | Loïc Hoguin | |
2014-04-02 | Add clipboard functions | Loïc Hoguin | |
2014-04-02 | Add functions to retrieve SDL version and revision | Loïc Hoguin | |
2014-04-02 | Add a bullet engine example | Loïc Hoguin | |
A function sdl_renderer:set_logical_size/3 has been added. All the functions relative to the window, the renderer, textures and events now run in a separate thread inside the NIF. A few helper functions and macros have been added in order to abstract this out. The code reads like it is doing call or cast to the main thread. In the case of call, the result is then sent back to the calling process as a message (Erlang side catches it directly before returning). The functions relative to SDL init and surfaces have not been threaded yet. It may still be needed from the point of view of SDL or Erlang, but it seems to work fine as it is so they were left alone for now. The bullet example originally came from my submission to Spawnfest 2011, and has been reactualized to work with a modern Erlang, and SDL2. | |||
2014-03-18 | Initial commit | Loïc Hoguin | |