Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Structs versus Vectors



On Thu, May 8, 2008 at 11:35 AM, Wesley Smith <email@hidden> wrote:
>  You can always do:
>
>  NSPoint p;
>  glVertex2fv((float *)&p);

Careful, NSPoint is a typedef of CGPoint in 64-bit (and optionally in
32-bit) with the 10.5 SDK, and CGFloat is a double in 64-bit.

-Keith
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden

References: 
 >Structs versus Vectors (From: Richard Somers <email@hidden>)
 >Re: Structs versus Vectors (From: "Wesley Smith" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.