Re: [racket] question on OpenGL support

2011-04-11 Thread Jay Kominek
On Mon, Apr 11, 2011 at 1:32 PM, Stephan Houben wrote: > This function fills array "params" with some data. > The length of params depends on pname and is not directly specified. > > I now wrap this as follows: > > (_fun (target : _int32) (level : _int32) (pname : _int32) (params : > _pointer) ->

Re: [racket] question on OpenGL support

2011-04-11 Thread Jay McCarthy
I looked into this. Through the .spec files, there's reference to COMPSIZE which is meant to explain what the size of the array is computed with. And the spec files don't give any further details on this. I looked in the written spec for glGetTexLevelParameteriv and it has some explanation for tha

Re: [racket] question on OpenGL support

2011-04-11 Thread Stephan Houben
Hi list, On 04/09/2011 05:51 AM, Jay Kominek wrote: The OpenGL APIs, all the versions, all the extensions, are described in some fairly parseable files available fromhttp://www.opengl.org/registry/ - look for the .spec files towards the bottom. I'm pretty sure you should be able to generate the

Re: [racket] question on OpenGL support

2011-04-08 Thread Jay Kominek
On Fri, Apr 8, 2011 at 1:38 PM, Jay McCarthy wrote: > I think that's pretty accurate. I do a relatively large amount of GL > programming and our library does not cover very much of it at all. My > personal opinion is that it is better invest time in to good FFI > generation tools (parsing C header

Re: [racket] question on OpenGL support

2011-04-08 Thread Jay McCarthy
I think that's pretty accurate. I do a relatively large amount of GL programming and our library does not cover very much of it at all. My personal opinion is that it is better invest time in to good FFI generation tools (parsing C headers and interactively generating an API), then brute-force gene

Re: [racket] question on OpenGL support

2011-04-08 Thread John Clements
On Apr 8, 2011, at 11:43 AM, Stephan Houben wrote: > Hi list, > > As described in the documentation, the OpenGL support > in Racket does not include the vertex array API > (glVertexPointer etc.). > > Can I ask why this is? > I noticed in gl.rkt that it is present but outcommented, so > I suppos

[racket] question on OpenGL support

2011-04-08 Thread Stephan Houben
Hi list, As described in the documentation, the OpenGL support in Racket does not include the vertex array API (glVertexPointer etc.). Can I ask why this is? I noticed in gl.rkt that it is present but outcommented, so I suppose the reason is not lack of time but rather that it didn't work on som