• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Redisplaying the Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Redisplaying the Window (From: Adam <email@hidden>)

  • Prev by Date: Redisplaying the Window
  • Next by Date: Re: Redisplaying the Window
  • Previous by thread: Redisplaying the Window
  • Next by thread: Re: Redisplaying the Window
  • Index(es):
    • Date
    • Thread