Permalink
Commits on May 5, 2014
  1. Version 0.4.8

    nilium committed May 5, 2014
    - Fix my sloppy refactoring in Monitor#gamma_ramp. (@jstenhouse #7)
    - Fix missing ALLOC assignment in rb_monitor_video_modes.
      (@jstenhouse #6).
    - Add error checking for getting gamma ramps.
    - Update readme according to opengl-core 2.0 naming. (@jstenhouse #5)
  2. Fix GL module reference from opengl-core in readme.

    jstenhouse authored and nilium committed May 3, 2014
    Previously referred to the 1.x Gl module in opengl-core. This was
    renamed to GL (uppercase L) as of 2.x.
    
    (Message updated by @nilium)
  3. Fix access to ramp pointer ahead of it being acquired.

    nilium committed May 5, 2014
    As far as I can tell, this was an accident when refactoring a while ago
    to get better C89 compatibility -- the end result is that a variable
    initialization got moved but I forgot to initialize it in the right
    place after moving it. D'oh.
    
    Closes #7.
  4. Add check for NULL gamma ramp result (error result).

    nilium committed May 5, 2014
    Returns nil if a ramp isn't returned.
  5. Fix missing ALLOC assignment in rb_monitor_video_modes.

    nilium committed May 5, 2014
    I have no idea. Just no idea.
    
    Fixes #6.
Commits on Apr 29, 2014
  1. Version 0.4.7

    nilium committed Apr 29, 2014
    Fixes use of rb_num2uint.
  2. Use NUM2UINT in place of rb_num2uint. Fixes #4.

    nilium committed Apr 29, 2014
    @FenixFyreX reported that rb_num2uint is only present for environments
    where sizeof(int) < sizeof(long) -- should've used NUM2UINT which is
    properly defined for the given environment.
Commits on Apr 4, 2014
  1. Version 0.4.6

    nilium committed Apr 4, 2014
    - Bug fixes.
    - Fix most compiler warnings.
    - Remove lambda wrappers around callbacks. Whether a callback is enabled
      is now entirely dependent on whether the provided callback responds
      to :call. This also means you don't have to define all arguments of
      a callback anymore.
    - A few safety nets for crappy behavior (e.g., passing the wrong type
      of argument).
    - All classes but Glfw::Window inherit from Data now. This shouldn't
      affect anything and is just there for consistency. I'm assuming
      nobody is relying on Object being the direct superclass of Monitor
      and such, anyway, which'd be kind of weird.
  2. Make most classes inherit from Data.

    nilium committed Apr 4, 2014
    Only exception to this is Window, which is a fancy wrapper around
    InternalWindow instances.
  3. Add Q_IS_A macro, check if objects are what they should be.

    nilium committed Apr 4, 2014
    Only used in rb_monitor_set_gamma_ramp and rb_window_new at the moment.
  4. Test if callbacks respond to :call.

    nilium committed Apr 4, 2014
    Callbacks shouldn't be enabled if this returns false, but I suppose
    there's the off chance someone's doing something terrible with Ruby's
    metaprogramming abilities. Either way, avoid calling a method that
    doesn't exist.
  5. Wrap all rb_funcall calls in tests for whether rb_func is non-nil/false.

    nilium committed Apr 4, 2014
    This doesn't prevent you from passing in non-procs, but it at least
    keeps things semi-sane.
  6. Silence mixed declaration/code warnings.

    nilium committed Apr 4, 2014
    Also switch to simple index/count loops for rb_monitor_video_modes,
    rb_monitor_set_gamma_ramp, rb_glfw_get_joystick_axes, and
    rb_glfw_get_joystick_buttons.
    
    rb_lookup_window and some callbacks made slightly safer.
    rb_window_get_current_context no longer duplicates rb_lookup_window's
    code.
  7. Mark a few functions as static.

    nilium committed Apr 4, 2014
    Silences warnings for no prior decls.
  8. Remove unneeded statement.

    nilium committed Apr 4, 2014
Commits on Feb 14, 2014
  1. Update version to 0.4.5

    nilium committed Feb 14, 2014
    - Fix Glfw::Window.current_context -- needed to be a singleton method.
  2. Make current_context a singleton method.

    nilium committed Feb 14, 2014
    Should've been that way to start.
Commits on Sep 27, 2013
  1. Merge pull request #2 from davll/rbx-build

    nilium committed Sep 27, 2013
    Fix Failure on Rubinius (no rb_num2ushort -- use rb_num2uint)
Commits on Sep 24, 2013
  1. fix rbx-build

    davll committed Sep 24, 2013
Commits on Sep 21, 2013
  1. Update README.md

    nilium committed Sep 21, 2013
    Remove bit about the FreeBSD project from the README.
Commits on Aug 12, 2013
Commits on Jul 28, 2013
  1. Version 0.4.4

    nilium committed Jul 28, 2013
    Fix callback bugs. See the commit log leading up to this version for
    the details.
  2. Fix window position, size, and framebuffer size callbacks.

    nilium committed Jul 28, 2013
    Was setting their enabled status using incorrect method names. The size
    callback was working previously, so I'm not entirely sure what happened
    there. Possibly using an older version by accident.
  3. Fix calls for scroll and cursor pos callbacks.

    nilium committed Jul 28, 2013
    They were for some reason expecting 4 arguments instead of three, which
    is weird enough as it is. Weirder still is this was _working_, which is
    just scary.
Commits on Jul 24, 2013
  1. Version 0.4.3

    nilium committed Jul 24, 2013
    Just fixing the gemspec.
  2. Fix rdoc copy/paste title.

    nilium committed Jul 24, 2013
Commits on Jul 19, 2013
  1. Remove use of line comments.

    nilium committed Jul 19, 2013
    Mostly for C89 compatibility, though I'm pretty sure it's still not
    valid C89.
  2. Remove unused s_rb_glfw_error.

    nilium committed Jul 19, 2013
Commits on Jul 17, 2013
  1. Version 0.4.2

    nilium committed Jul 17, 2013
    - Fix crash on call to Glfw::terminate.
  2. Fix return value for rb_glfw_terminate

    nilium committed Jul 17, 2013
    Was for some reason returning Qundef, which is, uh, very bad. Why the
    hell was that there?
Commits on Jul 6, 2013
  1. Version 0.4.1

    nilium committed Jul 6, 2013
    Also fix the date.