Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-24 Thread Jonathan Waddilove
John, Thanks very much for the help. The "data = CGBitmapContextGetData(context)" had me confused, I was wondering if the Pointer type need a change, so you view that it's a bug is very helpful. Yes, I now have IcePhage working. I'll start trying to collate what has been written about Pointer a

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-24 Thread John Shea
Hi Jonathan, yes i discovered that yesterday too. Changing all of the "i" s to "I"s was not too hard - i do not know if this is a change in Pointer types or whatever. The bigger issue is that this call: data = CGBitmapContextGetData(context) no longer seems to return the correct data type (typ

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-23 Thread Jordan K. Hubbard
Why stop there? As we start to accumulate a growing collection of code samples and "conventional wisdom" about how to solve certain types of problems, it would be nice to get all of that information properly categorized and up on the project web site (specifically somewhere linked from https:

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-23 Thread Julien Jassaud
Jonathan, > I'm trying to teach myself openGL using the superbible and other web > resources. To keep things simple I wanted to build the superbible examples in > MacRuby - this should give me an easy to use platform for just trying to get > my mind around the openGL paradigms. Same here. >

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-23 Thread Jonathan Waddilove
John, I've just started to look at your IcPhage9 and CarNage8. Neither runs 'out of the box' under MacRuby Beta.5(2). There are various problems with the Pointer support having evolved (I think), e.g.: errors like "Pointer of type `i', got `l'" - I'm working to correct these and see if I can ma

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-23 Thread Jonathan Waddilove
Julien, Thank you for the response. I'm not sure that ticket#520 is my problem. I don't think that the glut framework on 10.6.2 has been processed by bridge support. I'm trying to teach myself openGL using the superbible and other web resources. To keep things simple I wanted to build the super

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-22 Thread John Shea
Thank you again for offering the additional resources. It would be great if you wanted to add them to your idisc.sure.I did find a copy of your excellent presentation "Building Games with MacRuby and OpenGL", I must work through the slides again. Did you consider sharing your game tools? The pre

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-22 Thread Julien Jassaud
Jonathan, The MacRuby-Cocoa-OpenGL sample code you mention in your first post is not complete. The reason might be a Bridgesupport problem, reported in ticket #520. I recently bought the SuperBible to better understand the OpenGL sample code I was porting to MacRuby. What example are you tryin

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-22 Thread Jonathan Waddilove
John, Thank you again for offering the additional resources. It would be great if you wanted to add them to your idisc. I did find a copy of your excellent presentation "Building Games with MacRuby and OpenGL", I must work through the slides again. Did you consider sharing your game tools? The

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-22 Thread John Shea
Jonathan, I made some games in opengl this time last year (which now seem quite naive, as i did not know opengl or cocoa, so they could do with a good refactor). I do not know if they work with the current version of macruby but they are on my idisk: www.johnmacshea.org navigate thru M

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-22 Thread Jonathan Waddilove
John, Thank you for the response. GLUT won't be my first choice but I'm trying to follow the examples in the SuperBible. I'm wondering what the plan is to support all the 'standard' frameworks in MacRuby is? Should I be able to process the GLUT.framework with gen_bridge_metadata? Meanwhile I

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-21 Thread John Shea
Yes as far as I know bridge support does not support GLUT. So you (obviously) have two other options other than gen_bridge_metadata (which I gave up on after a few tries) : - don't use GLUT - use the equivalent (set of) non GLUT openGL calls - place the GLUT calls in an ObjC class - and call out

[MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-20 Thread Jonathan Waddilove
Hi, I'm back to using MacRuby again and I'm confused about Bridge Support. I have been using the excellent sojaster port of the Cocoa OpenGL example to help develop an OpenGL playpen. However, when I started using glut calls (glutBitmapCharacter, glutStrokeString, etc) I started to get problems.