yes, I can confirm that the parser is choking on this.
Printable View
yes, I can confirm that the parser is choking on this.
Problem is that since 2007 thinBasic has changed the way it passes arrays to external functions.
It expect the initial element to which pass the reference
If you want to make it working with current 1.8.x version change from
[code=thinbasic]
glTexImage2D(%GL_TEXTURE_2D, 0, %GL_RGB, %SIZEX, %SIZEY, 0, %GL_RGB, %GL_UNSIGNED_BYTE, texture)
[/code]
to
[code=thinbasic]
glTexImage2D(%GL_TEXTURE_2D, 0, %GL_RGB, %SIZEX, %SIZEY, 0, %GL_RGB, %GL_UNSIGNED_BYTE, texture(1))
[/code]
when you pass an array as parameter to an external function.
I will see if I can improve.
Eros
I think I've fixed.
If no (x) is specified in passing an array/matrix, (1) will be assumed.
Will be present in next update
Thanks Mike and Eros.
updated first post