[MacRuby-devel] [MacRuby] #520: Confusion in data type names for Core OpenGL

MacRuby ruby-noreply at macosforge.org
Wed Feb 10 09:35:58 PST 2010


#520: Confusion in data type names for Core OpenGL
----------------------------------+-----------------------------------------
 Reporter:  sojastar07@…          |       Owner:  lsansonetti@…                           
     Type:  defect                |      Status:  new                                     
 Priority:  blocker               |   Milestone:                                          
Component:  MacRuby               |    Keywords:  pointer Core OpenGL data types confusion
----------------------------------+-----------------------------------------

Comment(by martinlagardette@…):

 I reduced the code, but haven't been able to find what exactly is causing
 the problem. The issue arise at the last line, when trying to dereference
 `*CGLRendererInfoObject` to `CGLRendererInfoObject` (aka
 `^{_CGLRendererInfoObject}` to `{_CGLRendererInfoObject}`)
 {{{
 $ cat test.rb
 framework 'Cocoa'

 renderer_info = Pointer.new_with_type("^{_CGLRendererInfoObject}")
 renderer_count = Pointer.new_with_type("i")
 CGLQueryRendererInfo(1, renderer_info, renderer_count)
 renderer_info[0]

 $ ./miniruby test.rb
 /tmp/test.rb:1:in `<main>': unrecognized runtime type
 `{_CGLRendererInfoObject}' (TypeError)
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/520#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list