Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 | We are in 2015 | 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. | |||
2014-04-10 | Add clicks value to mouse button events (SDL >= 2.0.2) | Loïc Hoguin | |
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 | Use enif_is_identical for comparing atoms instead of strcmp | Loïc Hoguin | |
Requires us to create more atoms at startup but makes things much simpler and potentially safer and faster. | |||
2014-04-04 | Add sdl_renderer:copy/7 | Loïc Hoguin | |
2014-04-04 | Add sdl_renderer:get_output_size/1 | Loïc Hoguin | |
2014-04-04 | Add sdl_renderer:get_draw_color/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_renderer:get_draw_blend_mode/1 | Loï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-03 | Add sdl_renderer:count_drivers/0 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:show/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:set_title/2 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:set_size/3 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:set_pos/3 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:set_min_size/3 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:set_max_size/3 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:set_icon/2 | Loïc Hoguin | |
The surface needs to be kept around and not GC otherwise it crashes. | |||
2014-04-03 | Add sdl_window:grab_input/2 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:set_fullscreen/2 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:set_brightness/2 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:set_bordered/2 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:restore/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:raise/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:minimize/1 | Loïc Hoguin | |
2014-04-03 | Add sdl_window:maximize/1 | Loïc Hoguin | |