What the docs don’t tell you about glDrawArrays
A classic case of spending a day’s worth of work on a bugfix, resulting in a single changed line of code.
What they don’t tell you in any of the related docs for glDrawArrays is that if you are using VBOs and are not resetting the buffers, geometry drawn with glDrawArrays will be draw corrupted.
Fortunately there is a solution – they need to be set to zero with glBindBuffer(GL_ARRAY_BUFFER, 0);
Useful Core Graphics tip
This is a very useful tip on how to transform the core graphics coordinate space to the iphone.
iPhone fonts
- useful list of all fonts with font-names (save you running the code yourself)
- useful list of font families with samples (nb. to actually use these you may need to get the actual font name, not the family name – see previous link).
- useful iPhone hello world sample (UILabel example) i like the name of the web site, I’ve always thought the “for dummies” was a bit… dumb.
First iPhone build
Got my first iPhone sample app compiled, running and single-step debugging on the iPhone just now… woo
The code signing setup is a real pain, way more complex than running XNA code was on the Xbox360 – you have to generate certificate signing requests, get several certificates, register the device and then finally apply this fix

