moai/moai-dev — pull request #782 by seebs (2013-09-17 01:09:13+00:00)
Title: Seebs/grid dev2

Okay, this is sort of partial at best, but this is about as much as I know enough to do.

This is a rework of the previous grid design, but this time using separate grids of different types. So, the base MOAIGrid type behaves the same way it used to, but we now also have a MOAIFloatGrid and MOAIColorGrid available, which use float and ZLColorVec respectively. MOAIProp gets new SetColorGrid and SetScaleGrid (and Get...) members, and the sample is updated.

To merge this usefully, you would also have to add the MOAIColorGrid.cpp and MOAIFloatGrid.cpp (and .h) files to the various projects (xcodeproj, etcetera). I did this locally for xcode, but don't have the other tools to test against any of the others.

The documentation is NOT correctly updated, but I don't really know how to do that correctly.