wgl.go does not compile
The generator attempts to generate a return when the function has no return type. For example the following code is generated for DeleteBufferRegionARB which has no return type.
func DeleteBufferRegionARB(hRegion Pointer) { return ()(C.goglDeleteBufferRegionARB((C.HANDLE)(hRegion))) }
The problem lies in line 399 and 432 of generator.go (a check for VOID must be added). Maybe I'll fix this today, but there are still some other issues with the wgl/glx code generation.
Still does not compile for me.
github.com/chsc/gogl/wgl
1: error: 'GLsync' undeclared (first use in this function) 1: note: each undeclared identifier is reported only once for each function it appears in 1: error: 'float32' undeclared (first use in this function) 1: error: 'unsigned_long' undeclared (first use in this function) 1: error: 'uint32' undeclared (first use in this function) 1: error: 'GLsizeiptr' undeclared (first use in this function) 1: error: 'GLuint64' undeclared (first use in this function) 1: error: 'GLchar' undeclared (first use in this function) 1: error: 'GLintptr' undeclared (first use in this function) 1: error: 'GLint64' undeclared (first use in this function)
Is there any update to the compilation problem?
Sorry, currently I don't have much time for this. This issue needs much more work. Also WGL (and GLX) binding generation is trickier than I first thought.