go-gl/glh — pull request #13 by jteeuwen (2012-10-25 01:29:02+00:00)
Title: Adds a MeshBuffer type and helper function (Sizeof).

This patch implements the `MeshBuffer`, `Mesh` and `MeshDescriptor` types.

A MeshBuffer allows us to buffer multiple meshes and render them
efficiently. A Mesh supports vertices, normals, colors, texture-coords and indices.

The helper function needed by this is `glh.Sizeof`. Which returns the byte size for the given GL type in the current implementation.

Also fixes README to add notes about the texture Atlas and MeshBuffer.

A side note: The MeshBuffer might benefit from merging all of its, currently separate, vertex, color, normal, texture and index buffers into a single interleaved buffer. This is something I am looking at now.

I am also not entirely sure how this compares to the existing ColorVertex type.
Is there overlap here?

An example program will be provided if/when this is accepted.