Is this a function - or is this a variable?
BlitzMax Forums/BlitzMax Programming/Is this a function - or is this a variable?
| ||
See pub.mod/glew.mod/glew.bmx Global glCopyTexSubImage3D(target_:Int,level_:Int,xoffset_:Int,yoffset_:Int,zoffset_:Int,x_:Int,y_:Int,width_:Int,height_:Int)="__glewCopyTexSubImage3D" Ok this was a function-pointer. but what is this: Global GL_VERSION_1_1:Byte="__GLEW_VERSION_1_1" i think this is a byte pointer - and that was set to __GLEW_VERSION_1_1 is this true? if i call print GL_VERSION_1_1 this works but print GL_VERSION_1_1() do not work, so i think that this is not a function... |
| ||
it looks to be a string of bytes. ie a cstring (ie ansicode uses a byte per character), since blitzmax's normal strings a wstring. (ie unicode, uses a short per character). cause if it was a byte ptr you wouldn't be able to set it to equal a string. |
| ||
Global GL_VERSION_1_1:Byte="__GLEW_VERSION_1_1" work only inside extern-blocks. in normal sources this produce a error-message |