Here is what I have: UINT w,h which are initialized with width and height of the image like so:
w = img->GetWidth();
h = img->GetHeight();
Now initializing an array like so:
D3DCOLOR c[w][h];
does not compile.C:\Projects\Engine\Engine.cpp(42) : error C2057: expected constant expression
C:\Projects\Engine\Engine.cpp(42) : error C2466: cannot allocate an array of constant size 0
I know that w and h get initialised to the right width and height. Please assist!