Re: Redisplaying the Window
Re: Redisplaying the Window
- Subject: Re: Redisplaying the Window
- From: David Dunham <email@hidden>
- Date: Fri, 15 Dec 2006 21:01:55 -0800
On 15 Dec 2006, at 20:39, Adam wrote:
"invalid types 'GLfloat[7][14][GLfloat]' for array subscript"
I know this has OpenGL code in it, but this isn't GL-specific, so I
felt that these lists are more appropriate for this question.
This list is for the use of the Xcode development system, not really
for specific development questions. (Those belong on Carbon or mac-
games-dev or similar lists.)
But I'll take a stab at yours: you're using a floating point variable
for an index. This isn't good C practice. Change your GLfloat to
"int" and you'll probably get a happier result. (What would
arr_tetris_screen[0.5][1.3] represent?)
David Dunham A Sharp, LLC
Voice/Fax: 206 783 7404 http://a-sharp.com
"People seem to misinterpret complexity as sophistication" -- Niklaus
Wirth
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden