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: understanding the OpenGL matrix implementation



At 22:27 -0500 2000-12-11, James Lee wrote:
I'm trying to understand OpenGL's matrix implementation. The spec suggests
m[16] instead of m[i][j]. Seeing that an array starts at 0, are we discarding
m[0] or m[16]?

If you declare an array like m[16] in C [this is not secific toOpenGL], the only valid index values are 0 to 15. Accessing m[16] is a no-no. So under C, you "discard" m[16].

Reid


References: 
 >understanding the OpenGL matrix implementation (From: "James Lee" <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.