ios - How to change values inside GLKMatrix4 -
i want know how alter values within glkmatrix4. mean in static.
if 1 knows explain me.if tutorial larn or understand opengl reply me link... except raywenderlich tutorial. because had gone through it...
have looked @ headers?
#if defined(__strict_ansi__) struct _glkmatrix4 { float m[16]; } __attribute__((aligned(16))); typedef struct _glkmatrix4 glkmatrix4; #else union _glkmatrix4 { struct { float m00, m01, m02, m03; float m10, m11, m12, m13; float m20, m21, m22, m23; float m30, m31, m32, m33; }; float m[16]; } __attribute__((aligned(16))); typedef union _glkmatrix4 glkmatrix4; #endif
it varies bit based on build environment , target platform/device, long story short: of glkit math types plain-old-data structs (or unions), , can access members directly.
ios iphone opengl-es
No comments:
Post a Comment