[MacRuby] #1112: Allowing pointers to be created and initialised directly with an integer

MacRuby ruby-noreply at macosforge.org
Wed Jan 12 18:15:03 PST 2011


#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/>



More information about the macruby-tickets mailing list