aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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-05-02Move nif_helpers into their own projectLoïc Hoguin
2017-04-19Update commentLoïc Hoguin
2017-04-19Improve C++ compatibilityLoïc Hoguin
Changes imported from a customer project.
2017-04-19Fix warnings in preparation for splitting nif_helpers outLoïc Hoguin
2017-03-20Add cppcheck and scan-build to the MakefileLoïc Hoguin
2017-03-20Remove two unused variables found by cppcheckLoïc Hoguin
2017-03-20Add .gitignoreLoïc Hoguin
2017-03-20Add esdl2.app for rebar3 compatibilityzsoci
2016-11-25Fix an uninitialized value found by Clang analyzerLoïc Hoguin
2016-11-22Update list of unimplemented featuresLoïc Hoguin
2015-12-14Update erlang.mkLoïc Hoguin
Fixes Linux/OSX that I just broke.
2015-12-14Include the sys/queue.h header for WindowsLoï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-12-14Update Erlang.mk to bleeding edge versionLoïc Hoguin
2015-10-21Add sdl_hints:add_callback/3 functionLoï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-20Add sdl_keyboard with 3 text input related functionsLoï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-20Implement sdl:which_subsystems/0Loïc Hoguin
2015-10-20Remove the .app.src fileLoïc Hoguin
2015-10-20Don't crash on code reloadingLoïc Hoguin
2015-10-20We are in 2015Loïc Hoguin
2015-10-20Replace a few ;; with ;Loïc Hoguin
2015-10-20Add esdl2.d to .gitignoreLoïc Hoguin
2015-10-20Add sdl_gl:create_context/1 and sdl_gl:swap_window/1Loï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-18Add details about what remains to be done to the READMELoïc Hoguin
2015-10-18Remove access to the SDL_INIT_NOPARACHUTE optionLoï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-17Always enable SMP in the examplesLoïc Hoguin
2015-10-17Fix various warnings from recent GCCLoïc Hoguin
2015-10-17Fix conditionals for detecting OSXLoïc Hoguin
2015-10-16Steal the main thread on OSXLoï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.
2015-10-16LDFLAGS should be LDLIBSLoïc Hoguin
2015-10-16Update gitignoreLoïc Hoguin
2015-10-16Update Erlang.mkLoïc Hoguin
2014-06-10Use erlang.mk with newly added NIF support!Loï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-10Add clicks value to mouse button events (SDL >= 2.0.2)Loïc Hoguin
2014-04-09Add ideas to the READMELoïc Hoguin
2014-04-09Remove an arg check in sdl_renderer, use dialyzer instead!Loï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-09Fix flag type in sdl_rendererLoïc Hoguin
2014-04-09Add typespecs to the sdl_version moduleLoïc Hoguin
2014-04-09Add typespecs to the sdl_texture moduleLoïc Hoguin
2014-04-09Add typespecs to the sdl_surface moduleLoïc Hoguin
2014-04-09Add typespecs to the sdl_renderer moduleLoïc Hoguin
2014-04-09Add typespecs to the sdl_power moduleLoïc Hoguin
2014-04-09Add typespecs to the sdl_filesystem moduleLoïc Hoguin
Again the interface had to change a little to better distinguish errors.
2014-04-09Add typespecs to the sdl_events moduleLoïc Hoguin
2014-04-08Add typespecs to the sdl_cpu_info moduleLoïc Hoguin
2014-04-08Add typespecs to the sdl_clipboard moduleLoïc Hoguin
The interface for sdl_clipboard:get_text/0 changed to be easier to use as errors can happen.