aboutsummaryrefslogtreecommitdiffstats
path: root/src/sdl_window.erl
AgeCommit message (Collapse)Author
2018-02-02Add utf-8 support for the window titleLoïc Hoguin
2018-01-17Add the SDL_SetWindowHitTest callbackLoïc Hoguin
2018-01-10Add most remaining window functionsLoïc Hoguin
2018-01-07Add more window functionsLoïc Hoguin
2018-01-07Add missing SDL_WindowFlags valuesLoïc Hoguin
2018-01-02Welcome to 2018Loïc Hoguin
2018-01-02Add many events and event functionsLoïc Hoguin
2015-10-20We are in 2015Loïc Hoguin
2014-04-09Use a "better" type for the resourcesLoïc Hoguin
2014-04-09Add typespecs to the sdl_window moduleLoïc Hoguin
2014-04-07Alphabetical order for the public interface modulesLoïc Hoguin
2014-04-03Add sdl_window:show/1Loïc Hoguin
2014-04-03Add sdl_window:set_title/2Loïc Hoguin
2014-04-03Add sdl_window:set_size/3Loïc Hoguin
2014-04-03Add sdl_window:set_pos/3Loïc Hoguin
2014-04-03Add sdl_window:set_min_size/3Loïc Hoguin
2014-04-03Add sdl_window:set_max_size/3Loïc Hoguin
2014-04-03Add sdl_window:set_icon/2Loïc Hoguin
The surface needs to be kept around and not GC otherwise it crashes.
2014-04-03Add sdl_window:grab_input/2Loïc Hoguin
2014-04-03Add sdl_window:set_fullscreen/2Loïc Hoguin
2014-04-03Add sdl_window:set_brightness/2Loïc Hoguin
2014-04-03Add sdl_window:set_bordered/2Loïc Hoguin
2014-04-03Add sdl_window:restore/1Loïc Hoguin
2014-04-03Add sdl_window:raise/1Loïc Hoguin
2014-04-03Add sdl_window:minimize/1Loïc Hoguin
2014-04-03Add sdl_window:maximize/1Loïc Hoguin
2014-04-03Add sdl_window:hide/1Loïc Hoguin
2014-04-03Add sdl_window:get_title/1Loïc Hoguin
2014-04-03Add sdl_window:get_size/1Loïc Hoguin
2014-04-03Add sdl_window:get_pos/1Loïc Hoguin
2014-04-03Add sdl_window:get_min_size/1Loïc Hoguin
2014-04-03Add sdl_window:get_max_size/1Loïc Hoguin
2014-04-03Add sdl_window:get_id/1Loïc Hoguin
2014-04-03Add sdl_window:is_input_grabbed/1Loïc Hoguin
2014-04-03Add sdl_window:get_flags/1Loïc Hoguin
2014-04-03Add sdl_window:get_display_index/1Loïc Hoguin
2014-04-03Add sdl_window:get_brightness/1Loïc Hoguin
2014-04-03Add sdl_window:create_window_and_renderer/3Loïc Hoguin
2014-04-02Add a bullet engine exampleLoï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-18Initial commitLoïc Hoguin