fix mesh elements buffer wrong size calculation
make size fields in Mesh specify elements and not triangles

- before the size/alloc/used fields would mean whole faces (in most
  cases triangles)
- now these specify elements (indices), so instead of saying that the
  mesh consists of x triangles, these now mean x indices (of which three
  might make up a triangle)
grid test section in Makefile
rought first version of mesh_map/unmap functions
fucking naming things is hard
switch uint32_t with uint64_t
add grid.c/h octree grid datastructure thing
added wire shader files (not working yet)
remove unused NUM_MESHES define
Merge branch 'iso-rpg' of github.com:rakete/cute3d into iso-rpg

Conflicts:
	geometry.c
	render.c
add grid top integer which specifies topmost level of octree
trying to come up with a nice interface for hierachical grids
working on the grid, slowly getting there

- I need to decide what a Cube datastructure is, ideally just an 32/64
  bit int, but then how do I set individual bits, do operations, etc
- alternatively: make Cube a struct, with a void*, so user can decide
  what he puts into grid, adds complexity I'd rather not like dealing
  with
fixed multiple bugs introduced a while ago

- just changing everything to uin64_t was a spectacularily stupid idea
- use appropiate GL types for all sizes, offsets, etc.
- make mesh_dump output buffer contents
- fix bug mesh->index buffer would not by resized correctly
grid implementation release candidate

- rather simple implementation that uses plain arrays as a base
- grid cells contain bitfields that the user has to use to store his
  data
- the implementation offers functions to set/clear cells, as well as
  operate on the bitfields (and,or,shift)
- grids are hierachical and have multiple levels, and can be divided
  into memory chunks called pages
- there are functions to allocate/free levels and pages
- all pages,levels and cells are contained in a single three dimensional
  c-style array (in struct GridPages), to compute the indices into the
  array from a given set of grid coordinates or grid index the functions
  grid_xyz and grid_index can be used
- the grid_size function can compute the size of the grid or a level of
  a page in cells along the axis x,y,z, or as array size
- functionality for pageing in or out chunks of the grid is still
  missing but planned
- there is no way to allocate all pages/levels at once
started implementing run-length encoding needed for grid paging
put test mains into seperate files

- include common functionality to open a context etc. in allegro.h/c
- add world component where the first thing I am going to implement is a
  function to create some kind of a simple block world from grids
add c collection implementations from manvscode bitbucket

- https://bitbucket.org/manvscode/libcollections/src
- author name: Joseph A. Marrero
Merge branches 'iso-rpg' and 'master'
renamed *-test to test-*