Add an optional color parameter to the WriteQuad() routines

Preparation for adding nicer color controls in various
places: We add an optional color parameter to all four WriteQuad()
calls in MOAIGfxDevice, and an alternative TransformAndWriteQuad()
which takes that color and uses it instead of the unmodified
final color. This is always multiplicative; it's mFinalColor *
color. Add the corresponding operator* to ZLColorVec.

Similarly, the Draw() and DrawIndex() functions get an (optional)
additional invocation option which specifies a color. So, for
instance, if MOAIGridDeck2D were to specify a color when calling
this->mDeck->Draw(), the color would propagate down to the final
drawing operation.

Signed-off-by: seebs <seebs@seebs.net>
Create new "fancy" grid type with scale and color features

This patch adds a "MOAIGridFancy" type which allows tinting of grid
items using a palette of colors, as well as variable drawing scale for
each item in the grid. The intent is to allow for the use of tile maps
in cases where some amount of slight modification of tiles (such as dimming
them out, or making them partially transparent) would be desireable,
without the need to duplicate the entire tile set multiple times.

Included also is a trivial sample illustrating how to use the new features.

Signed-off-by: seebs <seebs@seebs.net>
Add MOAIGridFancy* to the Xcode project.

This patch is separated out because I have low confidence that xcode
won't have somehow garbled the Xcode project.

Signed-off-by: seebs <seebs@seebs.net>
Cleanup/bug fixes, add alpha channel to GridFancy

It is occasionally desireable to be able to control alpha
independently from the rest of the color channels. To this
end, add a separate Alpha field to the GridFancy, make the
alpha component optional (defaulting to 1.0) in SetPalette,
and add utility functions to ZLColorVec to scale the alpha
or color channels by a fixed amount.

Signed-off-by: Seebs <seebs@seebs.net>
MOAIBox2DBody:setGravityScale and :getGravityScale added. See Box2D documentation for usage.
Merge branch '1.5-development' into 1.5-stable
Merge branch '1.5-development' into 1.5-stable
Merge branch 'master' into 1.5-stable
Merge branch 'master' into 1.5-stable
Merge branch 'master' into 1.5-stable
Merge branch 'master' into 1.5-development
Merge branch 'cmake-1.5-development' into 1.5-stable
Merge branch 'cmake-1.5-development' into 1.5-development
Organize the unit test code
Fixed a small bug
Merge branch 'master' into 1.5-development
Merge branch 'master' into 1.5-development
Merge branch 'master' into 1.5-stable
Bug fix: MOAITransform::_addPiv
Added unit tests.