Rendering a rect-based minimap
===

Cocos2d-iPhone, 1.0.1.

My game has a map. And I have an array containing `NSValues` (`CGRects`) that basically represent the collisions in the map. Anyway, what I need is to literally create a texture which is pretty much a grey background with black-filled rectangles representing my rects, and later I'll use this texture to create my minimap.

Anyway, the problem is the texture-creation part. I want to know about this, because creating `CCSprites` to represent my rectangles is a bit impossible (they're hundreds per map!). I also considered drawing primitives with stuff like `CCDrawLine` and such, but I'm not so sure about this.

What do you recommend? How would you create a texture?