There are some functions that have malformed declarations. When I came
across some of them I just went in and edited OpenGL.jl directly to add
them and filed an issue. Basically just figure out what the datatype is
supposed to be in the C API and change "Ptr" to "Ptr{glFloat}", or whatever
the datatype is supposed to be.

https://github.com/rennis250/OpenGL.jl/issues/7


On Mon, Mar 17, 2014 at 2:47 PM, Marcus Appelros
<[email protected]>wrote:

> Modified NeHe tut 2 to draw circles and now trying to save them to a file.
> Have tried multiple combinations of the code below and also asked on IRC.
>
> pix=Array(GLubyte,width*height*3)#Ptr{GLubyte}
> glReadPixels(0,0,width,height,GL_RGB,GL_UNSIGNED_BYTE,pix)
>
> Result: ERROR: error compiling DrawGLScene: ccall: argument type Ptr
> should have an element type, Ptr{T}
>
> Suggestions?
>

Reply via email to