ashwin.sudhir Posted February 28, 2012 Share Posted February 28, 2012 The documentation doesn't seem to mention how containers should be passed as function arguments. I tried C-style syntax int shape[] = ( vec3( 1.f, 1.f, 0.f ), vec3( 0.f, 1.f, 0.f ) ); Shape( shape ); but the interpreter complains saying "arrays can't be used in expressions" What's the right way of doing this? EDIT: Sorry, my bad. Didn't realize "Shape" was a keyword. Mods, please remove this topic if you so wish; I can't seem to find how to Delete a topic. Link to comment
Recommended Posts