
-----------------------------------
AsianSensation
Fri May 21, 2004 6:07 pm

declaring pictures
-----------------------------------
i want to declare a bunch of pictures, so I declare an array of glTexture and generate a for loop to get all the pictures. But I encountered some problems. 

glTexture TexMap [16];
CString picID;

	for (k = 0; k < 16; k++){
		itoa (k, picID, 10);
      picID += ".bmp";
		TexLoader -> LoadTextureFromDisk(picID, &TexMap[k]);
	}

but I can't seem to declare a CString,

any better way to do this? Cuz I tried strings, but even with string.c_str(), it doesn't work, and array of char is really hard to work with.

-----------------------------------
AsianSensation
Fri May 21, 2004 6:32 pm


-----------------------------------
nevermind, I figured it out with just array of chars.
