Quote:The pointer is "consumed" when you use the index
I think I get it.
Quote:// 40 MB of fresh memory initialized to 0
how do you know thats 40 MByte of memory?
Is this how I create 65 thousand slots in the container
vector<color> LightMap;
for(int z =0; z < 65536; z++)
{
color C;
LightMap.push_back(C);
}
[Edited by - Calin on August 1, 2009 12:38:26 PM]