I've made a module with this function
Function AmbientLight( R, G, B)
Local ambL#[4]
ambL#(0)=(R*5)/255
ambL#(1)=(G*5)/255
ambL#(2)=(B*5)/255
ambL#(3)=1
glLightfv(GL_LIGHT0, GL_AMBIENT, ambL)
End Function
and when I compile, I've got this error message
Compiling:engine.bmx
[ERROR]: Compile Error:Expression of type 'Float Array' cannot be invoked
[ERROR]: [e:\blitzmaxbeta103\mod\tess.mod\engine.mod/engine.bmx;1027;2]
[ERROR]: Build Error: failed to compile e:/blitzmaxbeta103/mod/tess.mod/engine.mod/engine.bmx
I really don't understand, if someone can help me! ;)
Function AmbientLight( R, G, B)
Local ambL#[4]
ambL#(0)=(R*5)/255
ambL#(1)=(G*5)/255
ambL#(2)=(B*5)/255
ambL#(3)=1
glLightfv(GL_LIGHT0, GL_AMBIENT, ambL)
End Function
and when I compile, I've got this error message
Compiling:engine.bmx
[ERROR]: Compile Error:Expression of type 'Float Array' cannot be invoked
[ERROR]: [e:\blitzmaxbeta103\mod\tess.mod\engine.mod/engine.bmx;1027;2]
[ERROR]: Build Error: failed to compile e:/blitzmaxbeta103/mod/tess.mod/engine.mod/engine.bmx
I really don't understand, if someone can help me! ;)