aboutsummaryrefslogtreecommitdiffstats
path: root/c_src/sdl_renderer.c
AgeCommit message (Collapse)Author
2018-01-07Add a bunch of sdl_renderer functionsLoïc Hoguin
2018-01-05Add the remaining keyboard functionsLoïc Hoguin
Also adds defines for all the keycode and scancode in SDL 2.0.7.
2018-01-02Welcome to 2018Loïc Hoguin
2017-12-25Add everything from sdl_blend_mode.hLoïc Hoguin
2017-12-21Add sdl_cursor along with all its related functionsLoïc Hoguin
2017-12-20Add the sdl_mouse module implementing half of sdl_mouse.hLoïc Hoguin
The latter half will be part of sdl_cursor. This depends on some changes to nif_helper. The sdl_gl part of the code is probably slithly broken now, the dependency on the window is gone. This will be resolved later on.
2017-04-19Fix warnings in preparation for splitting nif_helpers outLoïc Hoguin
2017-03-20Remove two unused variables found by cppcheckLoïc Hoguin
2016-11-25Fix an uninitialized value found by Clang analyzerLoïc Hoguin
2015-10-20We are in 2015Loïc Hoguin
2014-05-01Make sure the window is never released before the rendererLoïc Hoguin
Tentative fix for an OSX VM crash when the owner process dies.
2014-04-09Remove an arg check in sdl_renderer, use dialyzer instead!Loïc Hoguin
2014-04-07Add sdl_renderer:set_draw_blend_mode/2Loïc Hoguin
2014-04-07Add sdl_renderer:is_target_supported/1Loïc Hoguin
2014-04-07Add sdl_renderer:set_viewport/{2,5}Loïc Hoguin
2014-04-07Add sdl_renderer:set_scale/3Loïc Hoguin
2014-04-07Add sdl_renderer:set_clip_rect/{2,5}Loïc Hoguin
2014-04-07Add sdl_renderer:get_viewport/1Loïc Hoguin
2014-04-07Add sdl_renderer:get_scale/1Loïc Hoguin
2014-04-07Add sdl_renderer:get_logical_size/1Loïc Hoguin
2014-04-07Add sdl_renderer:get_clip_rect/1Loïc Hoguin
2014-04-05Add sdl_renderer:fill_rects/2Loïc Hoguin
2014-04-05Add sdl_renderer:fill_rect/{2,5}Loïc Hoguin
2014-04-05Add sdl_renderer:draw_rects/2Loïc Hoguin
2014-04-05Add sdl_renderer:draw_rect/{2,5}Loïc Hoguin
2014-04-05Add sdl_renderer:draw_points/2Loïc Hoguin
2014-04-05Add sdl_renderer:draw_point/{2,3}Loïc Hoguin
2014-04-04Add sdl_renderer:draw_lines/2Loïc Hoguin
2014-04-04Add sdl_renderer:draw_line/{3,5}Loïc Hoguin
2014-04-04Fix potential memory leaks and other small improvementsLoïc Hoguin
2014-04-04Add sdl_renderer:copy/7Loïc Hoguin
2014-04-04Add sdl_renderer:get_output_size/1Loïc Hoguin
2014-04-04Add sdl_renderer:get_draw_color/1Loïc Hoguin
2014-04-03Add sdl_renderer:get_draw_blend_mode/1Loïc Hoguin
Also changed a little the count_drivers/0 function to return the result directly instead of {ok, Count}. Let it crash!
2014-04-03Add sdl_renderer:count_drivers/0Loï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