Welcome to PGD
If this is your first visit, be sure to check out the FAQ by clicking the link above. You have to register before you can post.
If you have recently signed up, please make sure you log in so that your activity is registered. This is required for automatic promotions to work and to ensure your account is not deleted during the registration process.
AthenaOfDelphi
Originally Posted by Carver413 Code: TFlt4 = packed record case Integer of 0:(X,Y,Z,W:Single); 1:(S:Array [0..3] of Single); 2:(R,G,B,A:Single); 3:(X1,Y1,X2,Y2:Single); end; as I have said these record type arrays are opengl friendy you can pass them like this @Points[0] Should I use packed records for this purpose? the interweb says it has slower access performance than 'unpacked'
TFlt4 = packed record case Integer of 0:(X,Y,Z,W:Single); 1:(S:Array [0..3] of Single); 2:(R,G,B,A:Single); 3:(X1,Y1,X2,Y2:Single); end;
Forum Rules
Bookmarks