If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
-
VeneX
- Posts: 228
- Joined: Sun Nov 30, 2003 3:32 pm
- Location: The Netherlands
-
Contact:
Post
by VeneX »
What is wrong when I get the error
error C2065: 'sprintf' : undeclared identifier
Code:
Code: Select all
core::array<video::ITexture*> textures;
for (s32 g=1; g<22; ++g)
{
char tmp[64];
sprintf(tmp, "textures\\star_%d.jpg", g);
video::ITexture* t = driver->getTexture(tmp);
textures.push_back(t);
}
Visit my
website @
www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
-
VeneX
- Posts: 228
- Joined: Sun Nov 30, 2003 3:32 pm
- Location: The Netherlands
-
Contact:
Post
by VeneX »
BTW, is it good to make several billboards on node, or do you advice to add a new scene::IBillboardSceneNode* bill = 0;
Visit my
website @
www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
-
Tyn
- Posts: 932
- Joined: Thu Nov 20, 2003 7:53 pm
- Location: England
-
Contact:
Post
by Tyn »
Try swprintf()

-
VeneX
- Posts: 228
- Joined: Sun Nov 30, 2003 3:32 pm
- Location: The Netherlands
-
Contact:
Post
by VeneX »
I copied this code right from the techdemo, I was searching for undeclaired indentifiers but I couldn't find them...
Visit my
website @
www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
-
VeneX
- Posts: 228
- Joined: Sun Nov 30, 2003 3:32 pm
- Location: The Netherlands
-
Contact:
Post
by VeneX »
I forgot to include
#include <stdio.h> 
Visit my
website @
www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP