Skip to content

Instantly share code, notes, and snippets.

View jwbuurlage's full-sized avatar

Jan-Willem Buurlage jwbuurlage

View GitHub Profile
// -----------------------------------------------------------------------------
// BYN SOFTWARE, COPYRIGHT 2012
//
// Author: Jan-Willem Buurlage et al.
// Contact: j.buurlage@students.uu.nl
//
// Part of the Starry project, an astronomy application for the regular user,
// for the iPad and iPhone.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// BYN SOFTWARE, COPYRIGHT 2012
//
// Author: Jan-Willem Buurlage et al.
// Contact: j.buurlage@students.uu.nl
//
// Part of the Starry project, an astronomy application for the regular user,
// for the iPad and iPhone.
// -----------------------------------------------------------------------------
header = UILabel.alloc.initWithFrame([[20, 260], [view.frame.size.width - 20 * 2, 40]])
#=> expected instance of `CGPoint', got `20' (Fixnum) (TypeError)
void Terrain::generateIndices() {
// we calculate the amount of levels and make the index buffers
int level_max = log2(patch_size - 1);
indexCount = new GLuint[level_max + 1];
indexBuffer = new GLuint[level_max + 1];