Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-05-02 | Move nif_helpers into their own project | Loïc Hoguin | |
2017-04-19 | Update comment | Loïc Hoguin | |
2017-04-19 | Improve C++ compatibility | Loïc Hoguin | |
Changes imported from a customer project. | |||
2017-04-19 | Fix warnings in preparation for splitting nif_helpers out | Loïc Hoguin | |
2017-03-20 | Remove two unused variables found by cppcheck | Loïc Hoguin | |
2016-11-25 | Fix an uninitialized value found by Clang analyzer | Loïc Hoguin | |
2015-12-14 | Include the sys/queue.h header for Windows | Loïc Hoguin | |
Windows/MSYS2 does not have this header available, so we need to include it in the repository. The new c_src/compat/ directory can in the future be used for cases like this. | |||
2015-10-21 | Add sdl_hints:add_callback/3 function | Loïc Hoguin | |
This also sets up esdl2 to start accepting callbacks. The module/process esdl2_callbacks must always be running for that purpose, so esdl2 was made an OTP application instead of a simple library. Implementation of the rest of SDL_hints will follow in subsequent commits. | |||
2015-10-20 | Add sdl_keyboard with 3 text input related functions | Loïc Hoguin | |
The following functions were added: * sdl_keyboard:start_text_input() * sdl_keyboard:stop_text_input() * sdl_keyboard:is_text_input_active() Calling sdl_keyboard:stop_text_input() at the beginning of the program allows not receiving unwanted textinput events. | |||
2015-10-20 | Implement sdl:which_subsystems/0 | Loïc Hoguin | |
2015-10-20 | Don't crash on code reloading | Loïc Hoguin | |
2015-10-20 | We are in 2015 | Loïc Hoguin | |
2015-10-20 | Replace a few ;; with ; | Loïc Hoguin | |
2015-10-20 | Add sdl_gl:create_context/1 and sdl_gl:swap_window/1 | Loïc Hoguin | |
These functions are the bare minimum needed to experiment with OpenGL. My experiments so far rule out reusing the gl and glu modules found in the wx application. It seems that any OpenGL call from a different thread than the window's thread won't work, at least on Linux. I'm afraid that implementing OpenGL in the future will require duplicating the work done in the wx application. OpenGL support is not a priority however, so it's not a big deal just yet. | |||
2015-10-18 | Remove access to the SDL_INIT_NOPARACHUTE option | Loïc Hoguin | |
It is ignored by SDL2 and only kept for compatibility purposes. We don't need to worry about that, so removing it. | |||
2015-10-17 | Fix various warnings from recent GCC | Loïc Hoguin | |
2015-10-17 | Fix conditionals for detecting OSX | Loïc Hoguin | |
2015-10-16 | Steal the main thread on OSX | Loïc Hoguin | |
Should fix issues with events not being handled properly, and possibly other things. Taken from Erlang's wx, which is proven to work. The function used is unfortunately undocumented. Not 100% sure everything is good with just that, it looks good enough on my VM, but I still have issues probably due to trying this on a VM. | |||
2014-06-10 | Use erlang.mk with newly added NIF support! | Loïc Hoguin | |
2014-05-01 | Make sure the window is never released before the renderer | Loïc Hoguin | |
Tentative fix for an OSX VM crash when the owner process dies. | |||
2014-04-10 | Add clicks value to mouse button events (SDL >= 2.0.2) | Loïc Hoguin | |
2014-04-09 | Remove an arg check in sdl_renderer, use dialyzer instead! | Loïc Hoguin | |
2014-04-09 | Add typespecs to the sdl_filesystem module | Loïc Hoguin | |
Again the interface had to change a little to better distinguish errors. | |||
2014-04-08 | Add typespecs to the sdl_clipboard module | Loïc Hoguin | |
The interface for sdl_clipboard:get_text/0 changed to be easier to use as errors can happen. | |||
2014-04-08 | Make sdl_surface:img_load/1 run in the main thread | Loïc Hoguin | |
While this and other surface functions don't need to, depending on the backend or flags the surface may not be in system memory and therefore may not be thread safe. | |||
2014-04-08 | Make the sdl module C code use the main thread | Loïc Hoguin | |
All video operations should be on the main thread, including initialization. This makes no difference on my system, but might on others. There is no cost doing this as these functions are very rarely called, and usually before/after everything else. | |||
2014-04-07 | Add sdl_texture:set_color_mod/4 | Loïc Hoguin | |
2014-04-07 | Add sdl_texture:set_blend_mode/2 | Loïc Hoguin | |
2014-04-07 | Add sdl_texture:set_alpha_mod/2 | Loïc Hoguin | |
2014-04-07 | Add sdl_texture:get_color_mod/1 | Loïc Hoguin | |
2014-04-07 | Add sdl_texture:get_blend_mode/1 | Loïc Hoguin | |
2014-04-07 | Add sdl_texture:get_alpha_mod/1 | Loïc Hoguin | |
2014-04-07 | Add sdl_renderer:set_draw_blend_mode/2 | Loïc Hoguin | |
2014-04-07 | Add sdl_renderer:is_target_supported/1 | Loïc Hoguin | |
2014-04-07 | Add sdl_renderer:set_viewport/{2,5} | Loïc Hoguin | |
2014-04-07 | Add sdl_renderer:set_scale/3 | Loïc Hoguin | |
2014-04-07 | Add sdl_renderer:set_clip_rect/{2,5} | Loïc Hoguin | |
2014-04-07 | Add sdl_renderer:get_viewport/1 | Loïc Hoguin | |
2014-04-07 | Add sdl_renderer:get_scale/1 | Loïc Hoguin | |
2014-04-07 | Add sdl_renderer:get_logical_size/1 | Loïc Hoguin | |
2014-04-07 | Add sdl_renderer:get_clip_rect/1 | Loïc Hoguin | |
2014-04-05 | Add sdl_renderer:fill_rects/2 | Loïc Hoguin | |
2014-04-05 | Add sdl_renderer:fill_rect/{2,5} | Loïc Hoguin | |
2014-04-05 | Add sdl_renderer:draw_rects/2 | Loïc Hoguin | |
2014-04-05 | Add sdl_renderer:draw_rect/{2,5} | Loïc Hoguin | |
2014-04-05 | Add sdl_renderer:draw_points/2 | Loïc Hoguin | |
2014-04-05 | Add sdl_renderer:draw_point/{2,3} | Loïc Hoguin | |
2014-04-04 | Add sdl_renderer:draw_lines/2 | Loïc Hoguin | |
2014-04-04 | Add sdl_renderer:draw_line/{3,5} | Loïc Hoguin | |
2014-04-04 | Fix potential memory leaks and other small improvements | Loïc Hoguin | |