Hey Dan,

Had compile issues =/ (windows)
What is nekobind?

$ gcc -shared -lneko -lGL -fPIC -I. -o GL.ndll GL_wrap.c cptr.c
GL_wrap.c:1: warning: -fPIC ignored for target (all code is position independent
)
GL_wrap.c: In function `glCreateTexture':
GL_wrap.c:19: error: `GL_BGRA' undeclared (first use in this function)
GL_wrap.c:19: error: (Each undeclared identifier is reported only once
GL_wrap.c:19: error: for each function it appears in.)
GL_wrap.c: In function `glTexSubImage2D_BGRA_BYTE':
GL_wrap.c:34: error: `GL_BGRA' undeclared (first use in this function)
GL_wrap.c: In function `glTexSubImage2D_BGR_BYTE':
GL_wrap.c:48: error: `GL_BGR' undeclared (first use in this function)
GL_wrap.c: In function `glTexSubImage2D_BGRA_BYTE_PART':
GL_wrap.c:93: error: `GL_BGRA' undeclared (first use in this function)
GL_wrap.c: In function `neko_glProgramCallbackMESA':
GL_wrap.c:5316: error: `GLprogramcallbackMESA' undeclared (first use in this fun
ction)
GL_wrap.c:5316: error: parse error before "c_callback"
GL_wrap.c:5318: error: `c_callback' undeclared (first use in this function)
cptr.c:1: warning: -fPIC ignored for target (all code is position independent)




On Thu, 01 Jun 2006 00:41:54 +0800, daniel fischer <[EMAIL PROTECTED]> wrote:

Jarrad,

"Jarrad Hope" <[EMAIL PROTECTED]> (on Wed, 31 May 2006 22:57:53 +0800):
  > I was wondering how the opengl wrapper project is going?
  > I can see so much potential having this :|

here's a preliminary version:
        http://iterative.org/neko/gl/neko-gl-0.0.1.tbz2

it doesnt wrap GLU or GLUT, so it might be of limited use, as it provides no way to open a window (I currently use SDL for that). I've been using xslt and a haxe/neko script to generate the bindings from swig's XML output, which i will also publish on interest (or if its 'finished').

you'll need approximately this line to build (on loonix):
gcc -shared -lneko -lGL -fPIC -I. -o GL.ndll GL_wrap.c cptr.c

also included are two haxe classes, GL__.hx and GL.hx. GL__.hx should be compiled to GL__.n, GL.hx "imports" it. The separation considerably speeds up compilation time.

let me know how it works out for you or if you have any questions. I'm still working on better packaging and such.

-dan




--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to