Forums > Dev

unnamed stucts in jit.vecmath.h

May 11, 2007 | 5:39 pm

The t_jit_vec3 type is declared in jit.vecmath.h as follows:

typedef union _jit_vec3
{
struct {
float x,y,z;
};
struct {
float s,t,r;
};
float vals[3];

} t_jit_vec3;

however when I use the following code:

t_jit_vec3 vector;

vector.x = 1;
vector.y = 2;
vector.z = 3;

the compiler shoots me this error:

error: t_jit_vec3′ has no member named ‘x’
error: t_jit_vec3′ has no member named ‘y’
error: t_jit_vec3′ has no member named ‘z’

I am confused….
Light anyone ?

Thank you.

- Luigi

————————————————————
THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
————————————————————

Don’t get soaked. Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.

http://tools.search.yahoo.com/shortcuts/#loc_weather


May 12, 2007 | 1:34 am

To Luigi Castelli – please stop hijacking threads by replying to an existing thread and changing the subject. Take a look at the web forum to see what that does.

Please start a new topic by creating a new email message, not a reply.


Viewing 2 posts - 1 through 2 (of 2 total)