union?
-
Hi,
ich habe eine frage zu union:
class foo union { struct { float _11, _12, _13, _14, _21, _22, _23, _24, _31, _32, _33, _34, _41, _42, _43, _44; }; float Matrix[16]; }; };
was macht da dieses union?
-
Die ist aus den DirectX headern, richtig?
Die Frage kam hier min 2mal, benutze mal die Suche, weiß gerade nicht mehr ob
man überhaupt zu nem Ergebnis kam.
Prnzipiell kannst du so aber einfach wählen wie du die Elemente ansprechen willst.
-
d.h.
CFoo test;
test[15] = 33.0f;
ist äquivalent zu
test._44 = 33.0f;
???
-
blub33 schrieb:
d.h.
CFoo test;
test[15] = 33.0f;
ist äquivalent zu
test._44 = 33.0f;
???
genau