Thanks, works a treat. Dave. On 13 Jan 2011, at 02:15, MacRuby wrote:
#1112: Allowing pointers to be created and initialised directly with an integer ----------------------------------------+----------------------------------- Reporter: dave.baldwin@… | Owner: lsansonetti@… Type: enhancement | Status: closed Priority: minor | Milestone: MacRuby 0.9 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------------+----------------------------------- Changes (by lsansonetti@…):
* status: new => closed * resolution: => fixed * milestone: => MacRuby 0.9
Comment:
I added Pointer.magic_cookie in r5160.
In your case, you can pass Pointer.magic_cookie(13) as the last argument of glVertexPointer().
Note that Pointer.magic_cookie will only accept Numeric values that can fit in a C long type (otherwise, an exception will be raised).
-- Ticket URL: <http://www.macruby.org/trac/ticket/1112#comment:2> MacRuby <http://macruby.org/>
_______________________________________________ macruby-tickets mailing list macruby-tickets@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-tickets