[Gambas-devel] My first attempts to extend GL and GLU components.

Tomek tommyline at ...670...
Mon Jul 4 14:28:03 CEST 2011


Hello to all Hero Programmers!
Since I got intersted in OpenGL programming in Gambas, I begun to search for source files and add some functions I felt I could use.
I'm not a C programmer, I just understand some code, so using analogy I tried to attach Evaluators to GL. It works ok, but my question is if copying the array and then pointing to it is the only method to pass a pointer to the array from gambas to library? It slows down the process greatly. I would be really happy if someone could point me to some documentation about how the combination of Gambas and C works in components.
I attach my files and chcnaged GL.c file, so you can evaluate them, little Bezier curve project and please don't be too harsh on me, I'm just a beginner :)

Regards 
Tomek

----------------------------------------------------------------
Dom marzen - kup lub wynajmij taniej niz myslisz!
Szukaj >> http://linkint.pl/f29e5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GL.c
Type: text/x-csrc
Size: 42683 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20110704/4c1a7310/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GLeval.c
Type: text/x-csrc
Size: 7337 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20110704/4c1a7310/attachment-0001.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GLeval.h
Type: text/x-chdr
Size: 1655 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20110704/4c1a7310/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bezier.tar
Type: application/x-tar
Size: 10677 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20110704/4c1a7310/attachment.tar>


More information about the Devel mailing list