COP planes in VEX

   2837   2   1
User Avatar
Member
196 posts
Joined: July 2005
Offline
Hi,

I'm writing a COP2 VEx function. I need to be able to change planes other than C and A. Namely, the depth plane Pz.

Current best attempt:


if(PNAME==“Pz”){
C1=0.5;
}
And the compiler tells me :

“Zhenry.vfl” line 11 WARNING (2005) Implicit casting failed for set().
This is because there are multiple versions of the function
and the compiler cannot determine which version to use
based solely on the arguments given.
The compiler has chosen “float set(float)” instead of:
matrix3 set(float)
matrix set(float)
int set(float)
vector set(float)
vector4 set(float)
C1=0.5;

^
“Zhenry.vfl” line 11 ERROR (1008) Undefined symbol “C1”
C1=0.5;

^
REMARK (3003) 1 error and 1 warning encountered
REMARK (3007) No output is generated due to errors in the source code


whats wrong? the docs tell me C1 is a predefined writable float.

??

Thanks
Henster
User Avatar
Member
7710 posts
Joined: July 2005
Online
Hmm. Try Cr. At least, that's what the VEX Builder generates.
User Avatar
Member
196 posts
Joined: July 2005
Offline
That got it working.

Do the docs need changing?

Thanks Edward
Henster
  • Quick Links