summaryrefslogtreecommitdiffhomepage
path: root/ext
AgeCommit message (Collapse)Author
2017-06-05Bump version to 0.4.0v0.4.0Tom Black
2017-05-20Remove trailing whitespace everywhereTom Black
It's what all the kids are doing
2017-05-20Call extensions explicitlyTom Black
No more are extension methods magically added to Ruby classes. Now, classes must explicitly call web and native extensions using methods with the naming convention `ext_<class>_<method>`.
2017-05-19introduce lineslstrzebinczyk
2017-04-28Store image width and height on creationTom Black
Since images are loaded asynchronously on the web and the width and height might have already been set by the user, set them only if they are nil.
2017-04-28Add `File.exists?` to MRubyTom Black
This also enables file checking to the `Image` class for MRI and MRuby (on the web, a “failed to load resource” already appears). Also, all exceptions will now be printed in MRuby, yay!
2017-04-13Add mouse events, introduce event structsTom Black
2017-04-02Fixes for Windows / MinGWTom Black
In Rakefile, can’t use semicolons to separate commands, using “&&” instead; for the web, use `start` command to open browser. In `extconf.rb`, use `bash` explicitly when calling `simple2d` with flags; make experience consistent with Linux.
2017-04-02Implement Text#height and Text#widthlstrzebinczyk
2017-04-01remove unneeded linelstrzebinczyk
2017-03-27Text#text= will inspect it's inputlstrzebinczyk
2017-03-08Bump version to 0.3.0v0.3.0Tom Black
And Simple 2D version to 0.5.1
2017-03-07Update to C11 standard for native extensionTom Black
2017-03-02Update controller testTom Black
2017-02-28Opal extension updatesTom Black
Rename `$SELF` to `$R2D_WINDOW` for clarity and name spacing. Set background color. Use `get` DSL method to retrieve window attributes. Read and set viewport.
2017-02-28Simplify native viewport logicTom Black
2017-02-17Update native extensionTom Black
Improvements for both MRuby and CRuby, support new features of Ruby 2D classes, performance enhancements.
2017-02-17Update web native extensionTom Black
Extend Ruby 2D classes with native methods, add new API features
2017-02-17Minor cleanupTom Black
2016-11-27Initial Opal SupportTom Black
2016-11-27Initial MRuby supportTom Black
2016-10-10Read `window->fps` as a doubleTom Black
2016-10-09Add `on_controller` input blockTom Black
Also add `which` to the controller callback
2016-10-09Add `on_key_up` callbackTom Black
2016-10-09Update extconf.rbTom Black
Bump minimum Simple 2D version required, add install case for Windows / MinGW.
2016-10-09Add spritesTom Black
Also namespace `type_id` definitions
2016-08-28Merge pull request #18 from mikeappell/change-text-dynamicallyTom Black
Made Text objects changeable dynamically
2016-08-28Made Text objects changeable dynamicallyMichael Appell
Modified text.rb so that the text= method modifies the instance variable Modified ruby2d.c so that before rendering Text objects, it sets their value to whatever their @text variable is Modified textcard.rb to demonstrate that Text objects can be dynamically changed
2016-08-28Update `on_controller` parametersTom Black
2016-07-23Use latest version of Simple 2DTom Black
2016-07-18Clean up window attributesTom Black
2016-07-18Set viewport sizeTom Black
2016-07-18Set window flagsTom Black
2016-07-18Set background colorTom Black
2016-07-17Add `close` to DSLTom Black
2016-07-16Make funcs and vars static, where possibleTom Black
2016-04-25General tidying upTom Black
2016-04-21Use S2D_FreeWindow instead of S2D_CloseTom Black
Simple 2D’s `S2D_Close` now just exits the window loop, doesn’t actually free anything
2016-04-19Updating ruby.cTom Black
Improving some style conventions, add `flags` variable to `S2D_CreateWindow` in preparation for actual flags to be passed
2016-04-19Updating extconf.rbTom Black
- Adding minimum required Simple 2D version - Better control flow checking whether Homebrew and Simple 2D are installed - Added -std=c99 to CFLAGS for GCC - Removed mingw case, since we’re not officially supporting Windows (yet) - General clean up
2016-03-13Update simple2d usage to latest interfaceJulian Simioni
Commit [890aa1c](https://github.com/simple2d/simple2d/commit/890aa1cdeacccac97d6512019f02e43d9fb1943d) in simple2d makes some backwards-incompatible interface changes. This should bring ruby2d back up to date with them.
2016-01-01Add `--no-brew` optionTom Black
Used to skip Homebrew on OS X, also some extconf cleanup
2015-12-29Update Simple 2D using Homebrew when installedTom Black
Also more extconf.rb cleanup
2015-12-28Fixing `S2D_CreateWindow` API callTom Black
Flags should be Uint32
2015-12-28Cleaning up extconf.rbTom Black
2015-12-25Updating to match Simple 2D API changesTom Black
2015-12-25Store frame rateTom Black
2015-11-13Cleaning up `extconf.rb`Tom Black
2015-11-13Adding controller callbackTom Black
2015-10-07Adding some comments to `ruby2d.c`Tom Black